Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can anyone fix my script that gives tools to players?

https://imgur.com/a/Bc8t8Xm

Please note these things that aren't shown in the image

contestants = (game.Players:GetPlayers())

beast = contestants[math.random(1,#contestants)]

1 answer

✓ Accepted answer

What I saw right off the bat is that you're checking if 'beast' exists, not if it's the same player. Since it's players (and no 2 players have the same name), you can compare the names in your loop. You can also compare the instance (i.e. if beast == player). Tht way, it checks if the player is the 'beast', not if the beast actually exists in players.

1 comment

0

This fixed it!! Thank you so much!!

This discussion is preserved as it was. New answers, comments, and votes are closed.