local saber = game.ServerStorage.Saber saber:Clone() local p = game:GetService("Players") script.Parent.MouseButton1Click:Connect(function() saber.Parent = p.Backpack end)
here's the script i don't know what is wrong at line 5 any help would be apriciated
You should put the Saber into ReplicatedStorage and make the script a local script. You also didn't get the player who clicked the button so your script is finding Backpack in game.Players
This should work.
local player = game:GetService("Players").LocalPlayer local saber = game:GetService("ReplicatedStorage"):WaitForChild("Saber") script.Parent.MouseButton1Click:connect(function() saber:Clone().Parent = player.Backpack end)