Whenever I’m changing a parts cancollide it deletes the part entirely, client and server.
I’ve tried looking this up and it doesnt appear anywhere.
Without CanCollide Code: https://gyazo.com/e0709e072f578c740bc0c40de662241f
With CanCollide Code: https://gyazo.com/e0709e072f578c740bc0c40de662241f
The part completely destroys itself on the client and server. (No-errors)
Code:
local Remote = game:GetService("ReplicatedStorage"):WaitForChild("OpenDoor")
Remote.OnServerEvent:Connect(function(Player, Door)
print(Player.Name .. " Has picklocked: " .. Door.Name)
Door.CanCollide = false
Door.Transparency = 1
wait(5)
Door.Transparency = 0
end)