Well this is the first script of the tool event. how do i fix this? What i am trying to make is when a tool is clicked, it gives me money... but i have this problem that i can do it on button gui, i want it to be on a tool. so how do i fix or re-script this?
script.Parent.Activated:connect(function()
workspace.Events.AddSpins:FireServer()
script.Parent.Active = false
wait(.2)
script.Parent.Active = true
end)
please Explain it to me and add me in roblox for more info.

15 comments
please Comment if u have questions and more info about the problem
yes, what is script.Parent.Active? Is it a bool value you added in?
because tools don't have an "Active" property
idk i just took this script from the Text button gui *not activated tho but it was mousebutton1 something
are you getting any errors in the output?
yes, active is not a valid member of the tool
and what is the problem, is it not giving you money?
yeah
can you add the script on the server then?
wut u mean?
Just remove the "script.Parent.Active" thing and it should work, if you want a debounce just make it a variable
Like the code on the server script that listens to the remote event, and gewhrreben, I don't think so, it fires the remote event before those lines of code run
so wat should i do?
well can you first include the code in your server script so we can see what the problem is?
his error is the tool not having an Active property, pretty sure that code is the issue he has