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

remote event not firing or not being acknowledged?.

Asked by 5 years ago

Hello, I have made a script which is supposed to be enabling a Screen Gui when conditions are met, i am using a remote event and firing it to the client from my script located in server script service and it is being called on from a local script inside the player Gui. my script works perfectly fine in play mode but when i do test mode the remote event either stops being fired or stops being recieved, please help.

I have tried firing the remote event from the server script outside of any other code blocks and it still doesnt get picked up or / fired.

i have used quite afew print statements to find where the error is located (note i don't recieve any errors in the console).

below is the server script firing the client

1for i = 450, 0, -1 do
2            wait(1)
3            print("bruh")
4            roundTimer:FireAllClients(i)
5            print(2345677)
6            if i == 0 then
7                intermissionDebounce = false
8 
9            end

here is the local script responsible for detecting the remote event being fired.

01roundTimer.OnClientEvent:Connect(function(roundTime)
02    print("pie")
03    stormGui.Enabled = true
04    local timeInSeconds = roundTime
05    local minutes = math.floor(timeInSeconds / 60)
06    local remainder = timeInSeconds % 60
07    stormTextLabel.Text = minutes .. ":" .. remainder
08 
09 
10    if timeInSeconds == 0 then
11        stormGui.Enabled = false
12        print("bgr")
13        menuInitiater:FireServer()
14    end
1
In Test-Mode, there is no Player(mean there is no client). So the remote can't be fire. Block_manvn 395 — 5y
0
sorry, but by test mode i mean i started a server through studio Code1400 75 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

i restarted everything from scratch and it works now

Ad

Answer this question