Why doesn't this roblox script work?

The following scripts are intended for a progress bar for my Obby.

The progress bar works as it should (when I change the value in the explorer, the bar changes as it should). The problem is that the stage.Value value doesn't change when the part is touched.

This is a local script which is in StarterPlayerScripts and barblock is a local which is defined above (cut out of the image) with a Part(block)

This is a normal script which is in serverscriptservice

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
8 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Devrunrik
5 months ago

You only use the playerAdded event in sever scripts. In local scripts you simply write: local plr = game.players.localplayer

Devrunrik
5 months ago

I would make a 2nd serverside script. They’ll do everything with the stages.

Devrunrik
5 months ago

So if you write player after connect into the () and correct the error at .Touched, it would work.

To fix the error, you only have to write in after the touched hit and then if hit:findfirstchild(“Humanoid”) then.