CanCollide destroying object?

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)

Part is anchored, right?
The two links are the same btw

1 Like

Ah woops, they were unanchored. thanks

1 Like

Don’t forget to mark their reply as the solution.