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

How Do I Set A Remote Event For A Timer GUI To Activate?

I have a game where I have a timer GUI that begins and appears when a certain value is true, I was wondering how I could make this a remote event so it'll happen on the server side of things rather than a client. Thanks! :)

1 answer

To achieve this, you first need to create a remote event. In this case, I will name the remote event RemoteEvent and put it in ReplicatedStorage.

Local Script:

local event = game.ReplicatedStorage.RemoteEvent
local number = --Enter the variable
local value = --Enter the integer of the variable

if number == value then
	event:FireServer() 
end

Server Script:

local event = game.ReplicatedStorage.RemoteEvent
local gui = --Insert gui name here

event.OnServerEvent:Connect(function(plr)
	gui.Visible = true
end)

If you have any questions post them on this thread.

3 comments

0

If you need assistance with the timer GUI I might be able to help with that too.

0

Where do I put the scripts?

0

I would put the local script in the timer GUI and then the server script in a folder in the workspace.

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