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

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

Asked by 3 years ago

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.

0
Be more specific. Can you edit your post and say everything you have so far? dylindude 64 — 3y
0
yeah xxaxxaz 42 — 3y

1 answer

Log in to vote
2
Answered by 3 years ago
Edited 3 years ago

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

1
Def not gonna work, clients will have different time Cirillix 110 — 3y
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 Xapelize 2658 — 3y
0
i have upvoted your post, good luck on scripting Xapelize 2658 — 3y
1
by the way you can index TextLabel directly, not use GetChildren, GetChildren returns table, just do script.Parent.TextLabel Xapelize 2658 — 3y
View all comments (2 more)
0
oh ok ty, i didnt know that also the timer variable was just in case dylindude 64 — 3y
0
okay thanks for trying I could figure it out soon but I still need help with it davidbennettlee19 2 — 3y
Ad

Answer this question