I made a key and a door script. I'm using a local script that is in StarterPlayerScripts. But, when the key touches the door. It works fine, the only issue is that it unlocks for everyone. Making it so everyone can walk through the door. And also not only that, the server sees the door itself as closed.
local SPS = script.Parent local here = game.Workspace["House!"].Diningroom.Door local function touch(p) if p.Parent.Name == "Key1" then here.Transparency = 0.5 here.CanCollide = false end end here.Touched:Connect(touch)
So does that mean I would need to use something like a remote event, so it can fire on one client instead on all of them?
Everything you need to know is right here: Collision Filtering Team Doors
You can try doing
OnClientEvent using a
RemoteEvent here is an example:
RemoteEvent.OnClientEvent:Connect(function(returnedData) --put your door script lines in here end)
hope this helps! Keep noted that i'm NOT good at remote events so this is just an Attempt in helping.