Ad
Log in to vote
0

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

Asked by 3 months 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 — 3mo
0
yeah xxaxxaz 42 — 3mo

1 answer

Log in to vote
2
Answered by 3 months ago
Edited 3 months 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 88 — 3mo
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 1952 — 3mo
0
i have upvoted your post, good luck on scripting Xapelize 1952 — 3mo
1
by the way you can index TextLabel directly, not use GetChildren, GetChildren returns table, just do script.Parent.TextLabel Xapelize 1952 — 3mo
View all comments (2 more)
0
oh ok ty, i didnt know that also the timer variable was just in case dylindude 64 — 3mo
0
okay thanks for trying I could figure it out soon but I still need help with it davidbennettlee19 2 — 3mo
Ad

Answer this question