I need to disable collision between player and part, but the only thing I know is how to disable collision for everything, this is not what I need.
The thing is, I have a script to grab a part, but the problem is that the player can jump on it and fly.
If use my script, then part can go through walls and floor for a while after touching the player.
How to turn off collide between part and player?
My script:
local function PlayerTouched(Part)
if game.Players:GetPlayerFromCharacter(Part.Parent) then
script.Parent.CanCollide = false
else
script.Parent.CanCollide = true
end
end
script.Parent.Touched:connect(PlayerTouched)

1 comment
Maybe read this article: https://developer.roblox.com/en-us/api-reference/function/BasePart/CanCollideWith