I'm making a camping game and when they sit in the car and go through the teleport part, there is no error saying cant teleport in studio. I tried making a kill part so that when they touch it they die and then they will be collidable so they will be teleported but they dont die when they touch the kill brick. How do I fix this?
heres the code for the kill brick
script.Parent.Touched:Connect(function(hit)
if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end)

1 comment
Try Humanoid:TakeDamage(100)