So I've been working on this for about 3 hours now. I'm trying to clone a sword from ReplicatedStorage to the player's Backpack through a server script. No errors or anything show up when I execute the code, it just does nothing.
local supersword2 = game.ReplicatedStorage.ClassicSword for _,v in pairs{game.Players:GetPlayerFromCharacter(script.Parent)} do supersword2:Clone().Parent = v.Backpack end end;
Why are you using an in pairs() loop?
local supersword2 = game.ReplicatedStorage.ClassicSword local player = game.Players:GetPlayerFromCharacter(script.Parent) local clonedSword = supersword2:Clone() clonedSword.Parent = player.Backpack