i don’t know about cancelling function calls, but you can pause / cancel tweens if you keep a reference to them when you create them
check out this link and look at the methods; you will see :Pause() and :Cancel()
these can only be called on tween objects though, so when you create them using :Create() from TweenService, keep a reference to them in a variable or something
function AreaName(Name)
label.Text = "["..Name.."]"
script.Enter:Play()
tweenservice:Create(label,TweenInfo.new(0.5),{TextTransparency = 0}):Play()
wait(3)
tweenservice:Create(label,TweenInfo.new(0.5),{TextTransparency = 1}):Play()
end
local Task = task.spawn(AreaName, v.Name) --You can pass references to function values (additional arguments are passed to the referenced function).
task.cancel(Task) --Cancel the current task before starting a new one.