So I have a JoJo's bizzare adventure game that was uncopylocked and I took it, so now im trying to make an admin gui for my game and i want it to give my my own stand when i click a button or say something, rn im trying to make it when i click a button, i dont know how im supposed to make this script work.

function OnClicked()
local owo = game.ReplicatedStorage.Stands.Tusk3:Clone()
owo.Parent = game.Players.LocalPlayer.Backpack
end

script.Parent.MouseButton1Click:Connect(OnClicked)

please help me fix it

3 comments

0

Did you script this in a LocalScript?

0

No

0

it doesnt work in a localscript either