#Script Collide Part
1 messages · Page 1 of 1 (latest)
you want to when a player dies to a part, this part will not be collidable anymore?
yes basically is that possible
uh
i think what you need to do is to disable the property called CanCollide
Part.CanCollide = false
see here im doing some dumb instagram stuff where i add follower, but if it keep colliding it will take forever
yeah then the humanoid wont die
also
next time u send a code
do this
example:
local part = script.Parent
local debounce = {}
part.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid and not debounce[humanoid] then
debounce[humanoid] = true
humanoid:TakeDamage(10)
humanoid.Health = 0
end
end)
d
also i have a question
why do you do humanoid:TakeDamage() if you will set the humanoid health to 0
you can delete humanoid:TakeDamage(10)
so you know how to solve it?
even ai gave up on me
nvm it does work i forgot to turn on collide