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

Remote Event Is Not Working In Server Script ??

Asked by 4 years ago

hi thank you for reading my post i have a small problem i send this remote event from the server to a local script inside the playerGui

remotecounter:FireAllClients()

the local script inside the player gui and

remoteEvent.OnClientEvent:Connect(function()
    script.Parent.Parent.Enabled=true
    repeat 
        wait(1)
        counternum.Value=counternum.Value-1
        script.Parent.Text=counternum.Value

    until  counternum.Value==310

    remotemove:FireServer()

    --counternum.Value=360

end)                        

and again this local script sends so another serverscrpt when the timer is up

the other script

remotemove.OnServerEvent:Connect(function(plr)
    -- code when timer is up

end

but remotemove doesn't fire to the server and that is the error thanks for reading this post if you now the solution please answer. and if u have questions feel free to ask thanks

0
you did'nt difine remote event or remotemove marine5575 359 — 4y
0
yes i did it is in the code but i just pastet the important part but thanks . you_success -50 — 4y
0
ok marine5575 359 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Hello. FireClient() requires an argument as a player. For example:

remotecounter:FireClient(game.Players["you_success"])

To do it to all players, use this:

remotecounter:FireAllClients()
0
but how do i do it for all players you_success -50 — 4y
0
I edited it. youtubemasterWOW 2741 — 4y
0
and the player you_success -50 — 4y
Ad

Answer this question