Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a player with a certain amount of points spawn with a custom character?

Asked by 2 years ago
local Avatar = game:GetService("ReplicatedStorage"):FindFirstChild("ArmorBoost").K

game.Players.PlayerAdded:Connect(function(player)
    if player:WaitForChild("leaderstats").Difficulty.Value >= 32 then
        local PlayerAvatar = Avatar:Clone()
        PlayerAvatar.Parent = game:GetService("StarterPlayer")
        PlayerAvatar.Name = "StarterCharacter"
        wait(0.1)
        player:LoadCharacter() 
    end
end)

This is my current script. It does work, but it applies to all players with 0 - 1 points. How do I fix this?

Answer this question