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
You only use the playerAdded event in sever scripts. In local scripts you simply write: local plr = game.players.localplayer
So instead of playeradded:Connect…
plr: Connect…
And beyond the function
Local plr = game.Players.LocalPlayers
?
I would make a 2nd serverside script. They’ll do everything with the stages.
Oh, into the clip
Touched.hit?
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.
The problem is when it comes to serverscript service all players share the same bar
Would the script work as it is?