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

doors anchored false only on my client?

i just want to make a escape game and i used local script and still not working for only 1 client who break the door with pickaxe

local boom = workspace.Doors["MEME Boom Effect"]

function ontouch(hit)
	if hit.parent.Name == workspace.Doors.ToolRequired.Value then
		boom:Play()
		script.Parent.t.Anchored = false
		wait(0.3)
		script.Parent.l.Anchored = false
		wait(1)
		script.Parent.Anchored = false

	end
end
workspace.Doors.Touched:Connect(ontouch)

1 answer

If you're trying to anchor a door in a localscript, it will only anchor on the client firing the script

If you want the door to be anchored on the server you'll have to use serverscripts

1 comment

0

i try to make only on client and its working but the player can touch the door to unanchor without tool and idk what to do to repair this

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