I'm new to game making, so I was wondering how to make a cancollide = false part that turns cancollide = true when a player touches it, but it only goes cancollide = true for that player.
✓ ANSWER ACCEPTED
How to make a cancollide = false object that turns cancollide = true for only that player?
3 answers
✓ Accepted answer
Using a localscript, set the cancollide property to true. Localscripts do everything only for that specific player. A good place to put this localscript would be in startergui.
local part=--your part
part.CanCollide=true
In a local script, set the part's can collide property to true.
heres my script for when a player touchs the part its can collide = true
local part = script.Parent
part.Touched:connect(function(hit)
wait(0.5) -- so the player has time to walk past it
part.CanCollide = true
end)
-- scripted by 14zanderbilt
you can edit it. this script makes it so that whenever you touch the part its cancollide is true
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Use a local script for the only that player part