Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Can anyone PLEASE Check my Script? Its not accesing the Gun in Roblox Player

Asked by 7 years ago

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)

0
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. GoldenPhysics 474 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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.

Ad

Answer this question