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

Error: FireAllCients is not a valid member of RemoteEvent?

Asked by 4 years ago

Hi all, just had an error that I've tried but failed to resolve.

I'm trying to create an announcement system for a small group game, and I repeatedly receive the error: "FireAllCients is not a valid member of RemoteEvent"

I've tried very little as not much has come to mind, any ideas would be appreciated.

Local script:

local repStore = game:GetService("ReplicatedStorage")
local gui = script.Parent
repStore.sendAnnouncement.OnClientEvent:Connect(function(msg,timer)
    gui.MainFrame.Visible = true
    gui.MainFrame.Background.Message.Text = msg
    wait(timer)
    gui.MainFrame.Visible = false
end)

Server Script:

local repStore = game:GetService("ReplicatedStorage")
local sendAnn = repStore:WaitForChild("sendAnnouncement")

local message = "wag1"
local timer = 5
sendAnn:FireAllCients(message,timer)

1 answer

Log in to vote
0
Answered by 4 years ago

Oh my, it's late.

Spelling error: server script, line 6

Ad

Answer this question