I have a part with a SurfaceGUI, and it has a button that is supposed to clone into the player's inventory. Here is the structure of it:
Model> Part> SurfaceGUI> ScrollingFrame> TextButton> LocalScript
And this is inside the localscript:
local function OnClicked()
local copy = game.Lighting.Meatball:Clone()
copy.Parent = game.Players.LocalPlayer.Backpack
end
script.Parent.MouseButton1Click:connect(OnClicked)
When I click on the GUI button, it wont do anything. It would be useful if someone could help :D
