I need help with this Local Script! Its not loading Properly in the Player Mode! The gun "Burst" is located in Rep Storage (Becuase I think that it will not work in Server Storage), What did I do wrong? Its loading the Tool name, but not the Name or any of the Functions i Scripted it to do!
player = game.Players.LocalPlayer
if not player.leaderstats then wait() end
money = player.leaderstats.Captures
price = 0
tool = game.ReplicatedStorage:findFirstChild("Burst")
function buy()
if money.Value >= price then
money.Value = money.Value - price
local a = tool:clone()
a.Parent = player.Backpack
local b = tool:clone()
b.Parent = player.StarterGear
end
end
script.Parent.MouseButton1Down:connect(buy)

1 comment
This is not a request site. The best way to get better help is to make your question as clear and easy to follow as possible.