game.Players.PlayerAdded:Connect(function (player) local rs = game.ReplicatedStorage local basic = rs.Scythe local aprentice = rs.AprenticeScythe local magma = rs.MagmaScythe local itemsfolder = player:WaitForChild("items") local item = itemsfolder:WaitForChild("Item") if item.Value == "Basic" then print("weapon cloned") local scythe = basic:Clone() scythe.Parent = player.Backpack end end)
i want it to check a datastore value from my player, that says what kind of item they left off with, in this case im just having it be a basic item for now.
i want it to clone the "scythe" tool into their backpack but it wont do it
this script is located in workspace.
It was just a loading time situation, i added a wait(2) after declaring my variables and it was able to catch after in the if statement.
Its not a
scythe.Parent = player.Backpack
Its
scythe.Parent = player.StarterPack
Anyway delete everything and do this:
game.Players.PlayerAdded:Connect(function(player)
local ScytheClone = game:WaitForChild("ReplicatedStorage").Scythe:Clone() ScytheClone.Parent = player.StarterPack print("Weapon Cloned")
end)