Issue with Server to Client Remote events

I am trying to use FireAllClients, but the function that I’m trying to activate doesn’t run and no errors appear in console.

Server Script

local rs = game:GetService("ReplicatedStorage")
local updateList = rs.RemoteEvents.UpdateList
while true do
   updateList:FireAllClients()
   task.wait(60)
end

local script

local rs = game:GetService("ReplicatedStorage")
local updateList = rs.RemoteEvents.UpdateList
updateList.OnClientEvent:Connect(function()
   print("i dont work at all please help")
end)

Thanks for the help!

where Are the scripts ran at? where are their locations. Also when you did a play test, you waited longer then 60 seconds?

The local script is inside StarterCharacterScripts and the server script is inside ServerScriptStorage, also yes I waited for a couple minutes.

local Scripts Aren’t Ran their as its in the workspace (Since its parented to the character model inside workspace). Instead put the local script in StarterPlayerScripts

Also put the script in ServerScriptService. Server Scripts aren’t ran there I think (Since its a stroage location like Rep. stroage).

2 Likes

Sorry I meant serverscriptservice, also putting the script in starter player scripts worked. Thanks a lot for the help!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.