game.Players.PlayerAdded:Connect(function(Player)
local PlrStats = Player:WaitForChild("PlayerStats")
local Lvl = PlrStats.WandLvl.Value
local SS = game:GetService("ServerStorage")
if Player then
if Lvl == 0 then
local Wand = SS.Wands:WaitForChild("Magic Stick")
Wand:Clone().Parent = Player.Backpack or Player.Character
print("asddsgbdljuhb")
end
end
end)
if Lvl == 0 then
local Wand = SS.Wands:WaitForChild("Magic Stick"):Clone()
Wand.Parent = Player.Backpack or Player.Character
print("asddsgbdljuhb")
end
Make sure the tool is actually in the player’s backpack
game.Players.PlayerAdded:Connect(function(Player)
local PlrStats = Player:WaitForChild("PlayerStats")
local Lvl = PlrStats.WandLvl.Value
local SS = game:GetService("ServerStorage")
if Player then
if Lvl == 0 then
local Wand = SS.Wands:WaitForChild("Magic Stick")
Wand:Clone().Parent = Player.Backpack or Player.Character
for _, child in ipairs(Player.Backpack:GetChildren()) do
print(tostring(child.Name))
end
end
end
end)