So i am making a fishing pole that casts a line through making them transparent and then not again. So this works great but my problem is, when I want the tool to be activated again after its initial activation, I want the line to real back in. But I don't know how I could make it so the tool can be activated, then activated again, completing a second task.
This is what I have:
Tool.Activated:connect(function()
SlashAnimLoaded:Play()--pay no attention to this stuff, it isn't realavant.
Tool.A.Transparency = 1-- also Tool is script.Parent
Tool.B.Transparency = 0
wait(0.1)
Tool.C.Transparency = 0
Tool.B.Transparency = 1
wait(0.1)
Tool.D.Transparency = 0
Tool.C.Transparency = 1
wait(0.1)
Tool.E.Transparency = 0
Tool.D.Transparency = 1
--Don't know what to put here
Tool.A.Transparency = 0
Tool.B.Transparency = 1
Tool.C.Transparency = 1
Tool.D.Transparency = 1
Tool.E.Transparency = 1
end)

8 comments
dav's way would appear to work as well
Sorry this doesn't work. It says that IntValue isn't a valid member of tool. I'm confused. script.Parent is the tool. is Intvalue supposed to be soemwhere else?
Do you know how to create an IntValue? You need to adjust my Hierarchy. I don't know where your script is or anything else! So you need to make an adjustment to direct the script correctly because I do not know, you didn't provide the information for that.
Lets say you have it like this Tool and inside of tool you have your parts, and the script and the int value. You will go to it by this: script.Parent.IntValue
What exactly is an intValue?
But yes I have my Tool, Inside my tool is the Parts and the Localscript.
IntValue is in "AdvancedObjects" for studio. You can make it with Instance.new("IntValue"). This is usually used like a Variable but it's not in the script so others can easily access it.
Ahh I see. This works! Thanks!