Every thing it works but the cloneing part. I know that cloning from within local scripts doesnt work so how do I fix this?
local button = script.Parent.Parent.Gatorade local gui = script.Parent.Parent.Parent local players = game:GetService("Players") local player = script.Parent.Parent.Parent.Parent.Parent local backpack = script.Parent.Parent.Parent.Parent.Parent.Backpack local gat = script.Parent.Parent.Parent.GatoradeEvent
button.MouseButton1Click:Connect(function() if player.leaderstats.Cash.Value >= 2 then local cash = player.leaderstats.Cash
cash.Value = cash.Value - 2
gat:Fire()
print("gatfired")
end end)

1 comment
Please post the section of the code that clones the tool please.