#Script Collide Part

1 messages · Page 1 of 1 (latest)

grim fulcrum
#

i dont understand exactly what you want to do

#

you want to when a player dies to a part, this part will not be collidable anymore?

grim fulcrum
#

uh

#

i think what you need to do is to disable the property called CanCollide

#

Part.CanCollide = false

oak pewter
#

see here im doing some dumb instagram stuff where i add follower, but if it keep colliding it will take forever

oak pewter
grim fulcrum
#

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)
oak pewter
#

d

grim fulcrum
#

why do you do humanoid:TakeDamage() if you will set the humanoid health to 0

#

you can delete humanoid:TakeDamage(10)

oak pewter
#

no idea tbh

#

when i remove that it dont work lol

oak pewter
#

even ai gave up on me

oak pewter