The problem is it keeps telling me the parent is locked. Please notie the coregui's are removed so it goes to character and works only if i copy and paste it in the character.
tools = "Bronze Sword"
plr = game:GetService("Players")
gui = plr.LocalPlayer.PlayerGui
function onClick()
tool = game:GetService("ReplicatedStorage")
tool:FindFirstChild(tools):clone()
tool.Parent = plr.LocalPlayer.Character
end
script.Parent.MouseButton1Down:connect(onClick)

1 comment
Is this a Script or a LocalScript?