--localscript in startergui
plr = game.Players.LocalPlayer
if not plr:findFirstChild("Cash") then
Instance.new("NumberValue",plr).Name = "Cash"
end
while wait(1) do
plr.Cash.Value = plr.Cash.Value+1
end
--and localscript in a guibutton
plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
if plr.Cash.Value>NUMBER then plr.Cash.Value = plr.Cash.Value-NUMBER game.Lighting.WEAPONNAME:clone().Parent - plr end
end)
--edit to fit
--lol |