"player" is highlighted
pistol = game.ReplicatedStorage["Cheezburger"]:clone()
function buy()
pistol.Parent = player.Backpack
end
script.Parent.MouseButton1Click:connect(buy)
"player" is highlighted
pistol = game.ReplicatedStorage["Cheezburger"]:clone()
function buy()
pistol.Parent = player.Backpack
end
script.Parent.MouseButton1Click:connect(buy)
I'm guessing this is a developers product am I correct? Try using this as a reference, it might help!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Who is player? You haven't even referenced who this object is. Make sure when you click on objects that it references a click detector.