Kill brick problems
1 month ago
• By Gusman
WEX 1 month ago
I need help: My script is - - - script.Parent.Touched:Connect(function(collision) if collision:IsA("Player") then collision.Health -= 15 end end) and I'm trying to make it take away health instead of instantly killing you. What seems to be wrong?
instead of collision.health -= 15 do
collision.health = collision.health - 15
8 days ago
• By Index
mog 1 month ago
also im not a coder but shouldnt it be collision.Health = collision.Health - 15?
Correct, Polytoria doesn't have fancy operators that Roblox does.
Change "collision.Health -= 15" to "collision.Health = collision.Health - 15"
^ along with this, you should also add a debounce to delay the next damage.
i'm index if you couldn't tell