when a part touches it what method do you use? please help!
TakeDamage()
Using the the take damage method can subtract health when you touch a platform something like this.
script.Parent.Touched:connect(function(hitPart) local player = game.Players:GetPlayerFromCharacter(hitPart.Parent) if player then for i, part in pairs(player.Character:GetChildren()) do if part:IsA("Humanoid") then part:TakeDamage(10) end end end)
Then the player would take 10 damage on the health it is a bit more efficient then just subtracting it.
TakeDamage(-10)
In this case it would add 10 health.