Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

2 comments

0

Put that in starterGui and it should work

0

thank you!

1 answer

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

6 comments

0

Bruh...

0

?

0

?

0

?

0

So if i do it will only play for the player who touched it correct?

0

Yes any script in a local script will only function but only occur on the clients screen instead of the whole server

This discussion is preserved as it was. New answers, comments, and votes are closed.