I want to make so if someone touches it and has a certain name the part's can collide propertie will be false. Is this script good? ( Can't test it since I'm on the phone )
x = script.Parent x.Touched:connect(function (Part) if Part.Parent:FindFirstChild("Humanoid") ~= nil then if Part.Parent.Name == "brokenrares" x.CanCollide = false wait(3) x.CanCollide = true
Try this
x = script.Parent x.Touched:connect(function(Part) if Part.Parent:FindFirstChild("Humanoid") and Part.Parent.Name == "brokenrares" then --This doesn't work in solo mode because in solo your name is Player1 x.CanCollide = false wait(3) x.CanCollide = true