How to stop a function? PLEASE HELP

how do i stop it from another part of the script like

for example
funtion blah()
blah.blah.blah.blah.blah
end

*Bunch of other code here*



if player.character.humanoid.Health == 10 then
--i need help how to stop the blah() function here
end

:smile: how to do this pls help
edit: I am trying to add slide animation in acs i am almost done but a function is not letting me do it

you use return to end a function early

if player.character.humanoid.Health == 10 then
   return
end

Example of return:

function Add(x, y) -- Arguments
   return x + y -- ends function and returns data
end

local Data = Add(1, 2) -- Data = function Data
print(Data) -- " 3 "

2 Likes

ok i will try it later i gotta go sleep its 3AM or ima get beat up ok gn and happy new year

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.