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

how to make a hide and go seek game with the timer and player chooser?

I don't know how to add a timer in this game I am making a hide and go seek game but I don't know how to make a random player chooser and a timer of when they get released to find the other players.

2 comments

0

Be more specific. Can you edit your post and say everything you have so far?

0

yeah

1 answer

✓ Accepted answer

you could add a screen gui to the starter gui and edit it to whatever u want, then add a text label to that screen gui and then add this local script to the screen gui. This will only help with the timer, give me time as a think of a solution for the others.

local gui =  script.Parent
local text = script.Parent.TextLabel 

while true do
	wait(1) --change ONLY this number to how long 1 game will last, in seconds
	gui.Enabled = true
	text.Text = 1
	wait(1)
	text.Text = 2
	wait (1)
	text.Text = 3
	wait(1)
	text.Text = 4
	wait(1)
	text.Text = 5
	wait(1)
	text.Text = 6
	wait(1)
	text.Text = 7
	wait (1)
	text.Text = 8
	wait(1)
	text.Text = 9
	wait(1)
	text.Text = 10
	gui.Enabled = false

end 

this SHOULD create a 10 second timer on someone screens, I have not tested it myself, and this will certainly not be good since its not linked to the rest of the game if it doesnt work remember im still a novice scripter. lmk in the comments

6 comments

1

Def not gonna work, clients will have different time

0

not really sure what is the purpose of timer variable, oh by the way there's still a lot to improve so good luck, also use loops for timer

0

i have upvoted your post, good luck on scripting

1

by the way you can index TextLabel directly, not use GetChildren, GetChildren returns table, just do script.Parent.TextLabel

0

oh ok ty, i didnt know that also the timer variable was just in case

0

okay thanks for trying I could figure it out soon but I still need help with it

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