Wieso funktioniert dieses roblox-script nicht?

Die folgenden scripte sind für eine progressbar gedacht für mein Obby.

Die progressbar funktioniert wie sie soll(denn wenn ich im explorer den Valuewert ändere verändert sich die bar wie sie soll). Das Problem ist das der Wert stage.Value nicht geändert wird wenn der Part berührt wird.

Das ist ein Localscript welches in StarterPlayerScripts ist und barblock ist ein local welches weiter oben(aus dem bild ausgeschnitten )definiert ist mit einem Part(block)

Dieses ist ein normales Script welches in serverscriptservice ist

(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.