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

May i please have help executing this script?

help please

c = game.Players:GetChildren()
--then i want it to randomly select a player who has a PlayerGui.BoolValue which is false          
--then i want to change the value of PlayerGui.NumberValue to 1 
--then change the value of PlayerGui.BoolValue to true

if you can i help me i will be very grateful, thanks

2 answers

This is not a request site. You only did one line of scripting, and it's very simple. You have to make an effort before we're willing to help you. Currently, this is classified as 'Not constructive'.

1 comment

0

I really dont have a clue as to what i can put next if you can give me a website where i can learn lua coding thanks if you cannot find one please help me

For anyone who would like to know the answer to this question i have found SOMEONE GENEROUS PROVIDED ME WITH IT NO THANKS SCRIPTING HELPERS! Here is code:

c = game.Players:GetChildren() --1

repeat --2
randomPlayer = c[math.random(1,#c)]
until (not randomPlayer.PlayerGui.BoolValue.Value) 

randomPlayer.PlayerGui.NumberValue.Value = 1 --3

randomPlayer.PlayerGui.BoolValue.Value = true --4

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