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

Why won't this work?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I'm trying to make it so if you're part of this group and above a certain rank you walk faster.

game.Players.PlayerAdded:connect(function(newPlayer)
    if newPlayer:IsInGroup(689624) and newPlayer:GetRankInGroup(689624) <= 250 then
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150
    end
end

1 answer

Log in to vote
1
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(newPlayer)
    newPlayer.CharacterAdded:connect(function(character)
        if newPlayer:IsInGroup(689624) and newPlayer:GetRankInGroup(689624) <= 250 then
            character.Humanoid.WalkSpeed = 150
        end         
    end)
end)

Try this, everytime a member spawns his walkspeed should be faster.

0
Thanks! CardboardRocks 215 — 10y
Ad

Answer this question