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?

3 comments
So would that mean, if a player had a key. It would still work?
Or a tool/gear in this case
Never mind, I figured out to use it. Thanks!