Basically i need help on how to remake this so when the player leaves the part called RightFoot Box, it won't take any damage.It works now even if he leaves its hitbox the player still dies.
Hitboxes['Right Foot Box'].Touched:Connect(function(hit)
if not is_blinded or not is_right_grab or not is_left_grab or not is_stomped or Titan.Humanoid.Health <= 0 then return end
if not is_leftleg_tendon or not is_rightleg_tendon then return end
local char = hit.Parent
local Player = game.Players:GetPlayerFromCharacter(char)
if not Player then return end
if not char:FindFirstChild('Humanoid') then return end
is_stomped = false
local Stomp = Titan.Humanoid:LoadAnimation(Titan.Animations.Stomp)
Stomp:AdjustSpeed(5)
Stomp:Play()
for i, track in pairs(Titan.Humanoid:GetPlayingAnimationTracks()) do
if track.Name == 'Stomp' and not is_stomping then
char.Humanoid:TakeDamage(100)
wait(3)
is_stomped = true
return
end
end
wait(Stomp.Length)
char.Humanoid:TakeDamage(100)
wait(1)
is_stomped = true
end)

7 comments
Pretty self explanatory lol
I tried with that, it didn't seem to work, i have to place everything in right place, can u reorganize the script with your example, im not a scripter, i just need to fix that.
well, the fact you spaced out "Right Foot Box" could be one of the reasons, plus you're supposed to also explain the script. also you made is_stomped true twice lol
Yeah ikr, i am not really experienced thats why i asked for help.
Well just unspace right foot box and make is_stomped = false on line 36. tell me the results then
Doesn't work.
must be smth else all together