Problem with tools pleas help

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    for when the animation stops for the icon to stop, and also so that when change tool it stops the current icon
  2. What is the issue? Include screenshots / videos if possible!
    well when the animation is played it works, it fires everything, but if the player swaps tool it dosen’t stop the previous tools script firing
    as you see in the picture their is currently the previous and the new tool
    error
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i’ve tried looking on the hub, and also around google, but i still couldn’t find out the problem
4 Likes

Try adding this
When the tool is Unequipped,Set the Debounce to false (may vary) and Destroy the Icon.

but even then it still fires the
:arrow_forward: Has Pass, Value 8 (x13) but just no icon

2 Likes

Just make a Debounce so The remote event/function doesnt get spammed

Inside the tool?, the animation?, or in the server script ah?

I did try to add it to the script where its fired

1 Like

Example :

if Debounce == true then
   -- Stuff here
   Debounce = false
   task.wait(0.2) -- Change teh wait time if u want
   Debounce = true
end
1 Like

Okay I’ll give it a go and let you know how it goes

2 Likes

yeah now it dosen’t fire when activated

2 Likes

Set a Variable called Debounce first

local Debounce = true -- You may change this
1 Like