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

My Script wont connect to one of the leaderstats what'd I do wrong?

Asked by 4 years ago

here's my script

game.Players.PlayerAdded:Connect(function(Player)                  
    Player.CharacterAdded:Connect(function(Character)              
        local Stats            = Player:WaitForChild("leaderstats")
        local Level            = Stats:WaitForChild("Level")      
    local Strength         = Stats:WaitForChild("Strength")            

    Strength           = (Level.Value*2)+1

    end)                                                           
end)                                             
0
I also had the same issue, but i solved it with remote events. I dont think the server can manipulate intvalues in a player. rower86 35 — 4y

Answer this question