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

How do I make a gui started timer? [closed]

Asked by 4 years ago

I'm pretty mad right now because I thought it was a good idea to try and make a clickable timer gui without testing if other people can see it. Spoiler alert, they can't. I don't know how to use remote events, can someone at least tell me how to use a remote event to show text label changes to everyone in the server?? It wont let me put the whole script soooo yeah

Closed as Not Constructive by WideSteal321, Cynical_Innovation, IAmNotTheReal_MePipe, matiss112233, and raid6n

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

Hello, firstly you should use remote events. If you create one in your GUI as well as a new script that isn't local you can use something like

local GUI_to_change = game.StarterGui.GuiName
local event = game.StarterGui.GuiName.RemoteEvent

local function onFire(player) 
      local time = 10 

     while time > 0 do
           wait(1)
           time = time - 1
           GUI_to_change.TextBox.Text = time
     end
end

Hope this helps, I am not entirely sure if it works because it is midnight here and I wrote this on mobile.

:)

Ad