I made a clone script for a tool except when 1 player equips it, the other player who already has it equipped loses it? Here is my script:
Local script
local item = script.Parent
local tool = game.ReplicatedStorage.WoodenSword
local clonedTool = tool:Clone()
item.MouseButton1Click:connect(function()
game.ReplicatedStorage.WoodenSwordRE:FireServer()
end)
Server Script
local tool = game.ReplicatedStorage.WoodenSword
local clonedTool = tool:Clone()
game.ReplicatedStorage.WoodenSwordRE.OnServerEvent:Connect(function(Player)
clonedTool.Parent = Player.Backpack
end)
I also have a remote event called WoodenSwordRE
Can anyone help? Thanks!
