I'm testing my abilities with RemoteEvents and I already suck at this. Basically I'm just trying to make a Part that when clicked on, disables CanCollide only for the user who clicked on it.
I assume to do this you need a Server to Client RemoteEvent. Or am I mistaken?
I put a Part into Workspace, and put a ClickDetector, Script, and LocalScript inside.
Part > ClickDetector, Script, LocalScript
Script:
local plr = game.Players.Player
script.Parent.ClickDetector.MouseClick:Connect(function()
game.ReplicatedStorage.TestEvent:FireClient(plr)
end)
LocalScript:
game.ReplicatedStorage.TestEvent.OnClientEvent:Connect(function()
script.Parent.CanCollide = false
end)
I really just dunno why I can't get something as simple as this to work...

1 comment
Make sue the door is welded it will go through the ground