Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I am a new scripter trying to use local scripts. Can anybody help me?

Asked by 3 years ago

so im making a script where music stops playing when a part is touched and it needs to be in a local script because only the player who touched it gets the effect and when I put it in a normal script it works but when its in a local script it doesn't and I have no idea what to do. (new scripter btw) script if needed:

game.workspace.Areas.ClearClouds.Shop.door.Touched:connect(function()
    game.Workspace.mainmusic.Playing=false

end)

0
Put that in starterGui and it should work Nguyenlegiahung 1091 — 3y
0
thank you! iiceandfire 4 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Yes i agree put it in Starter gui as a local script.

0
Bruh... iivSnooxy 248 — 3y
0
? Nifemiplayz 32 — 3y
0
? Nifemiplayz 32 — 3y
0
? Nifemiplayz 32 — 3y
View all comments (2 more)
0
So if i do it will only play for the player who touched it correct? iiceandfire 4 — 3y
0
Yes any script in a local script will only function but only occur on the clients screen instead of the whole server Nifemiplayz 32 — 3y
Ad

Answer this question