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

Local .Touched running for whole server rather than Client?

I have made a localscript where when you step on a part and another part disappears. I am not sure where exactly to put this script, I know it doesn't work in ServerScriptService nor in the workspace or anything inside it, I have tried putting it in StarterPlayerScripts but it is still making the part disappear for the whole server. How do I fix this?

local FB = game.Workspace.FirstBlocker

game.Workspace.FirstBlockerUnlock.Touched:Connect(function()
	FB.Transparency = 1
	FB.CanCollide = false
end)

2 comments

0

It disappeared for the whole server in a local script? Last time I heard someone say something like this, they didn't even check to see what the server saw and they just got mixed up with something else. So make sure you are certain it does what you claim.

0

Yes I had a friend test it and it disappeared for me as well.

2 answers

Put in in a localscript rather than a normal script.

1 comment

0

It was already a localscript I edited my question sorry about that

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