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)
First Thing I would check If I was you would be to make sure the script is not disabled and make sure its located in the Tool or Gun. Also make sure Tool is Enabled Go to Properties->State->Enabled make sure the Box to the right of it is showing check mark, If not then click the box and then test it out. If nothing what I said did not help you in any way then Down Vote this Answer. If it helped then Up Vote it.