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.
First of all your probably going to get an error because "Active" is not a valid property of a tool. And you must have a server script that receives the remote event and gives them money. If the money is a Number value of an int value then you can do something like this.
--SERVER SCRIPT
game.ReplicatedStorage.AddSpins.OnServerEvent:connect(function(player) plr.Money.Value = plr.Money.Value +10 end)
Make sure "plr.Money" is your money value and replace 10 with the amount of money you want to give them.
Thanks for asking and you can contact me for more info!