button = script.Parent local item = game:GetService("ReplicatedStorage"):WaitForChild("Sword") local plr = script.Parent.Parent.Parent.Parent.Parent local frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.ItemEquipper.Text = "EquippedTool = Sword" local clone = item:Clone() clone.Parent = plr.Backpack frame.Visible = false plr.Character:MoveTo(game.Workspace.Tp.Position) end)
This works in studio but not in-game. I have defined everything and its in a script so its server sided but Clone() won't work even tho its on a script. To be honest, nothing works after the function.

1 comment
Please post the code in a code block.