What is wrong with this random player picker?
Can somebody please help me? I have this script here where it picks a random player and selects them to be the seeker. However, I don't know if it's the random player picker or the script that makes them walk faster, but all of the players are getting faster walking speeds. Can somebody please check it over and tell me what's wrong? Thanks!
Here is the script:
02 | local player = game:GetService( "Players" ) |
03 | if workspace.TimeDifference.Value = = 2 and script.SeekerPicked.Value = = 0 then |
04 | local randomPlayer = game.Players:GetPlayers() |
05 | [ math.random( 1 ,#game.Players:GetPlayers()) ] |
06 | script.SeekerName.Value = randomPlayer.Name |
07 | print (script.SeekerName.Value) |
08 | workspace [ script.SeekerName.Value ] .Humanoid.WalkSpeed = 30 |