player = game.Players.LocalPlayer
money = player.leaderstats.Captures
price = 0
tool = game.ServerStorage: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)
This is a local script! I dont know whats wrong with it! Its a Local Script! I added the guns in Server Storage! But its still not working! The gun is named Burst

3 comments
Local scrips do not have access to ServerStorage
Try rep storage
ok