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

Why does my local script not recieve info from remote event? [SOLVED]

Asked by
Songist 49
5 years ago
Edited by DeceptiveCaster 5 years ago

I have a server script, a local script, and a remote event. Server Script (Tried puting in both workspace and serverscriptservice):

local function fireMe()
local replicatedstorage = game:GetService("ReplicatedStorage")
local event = replicatedstorage.WaitForChild("QueueBoard")
event:FireAllClients()
print("sent")
end

Heres the local script, which is in workspace:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local event = ReplicatedStorage:WaitForChild("QueueBoard")

local function changeBoard()
print("recieved")
end

event.OnClientEvent:Connect(changeBoard)

And finally the remote event is in ReplicatedStorage. I've tried editing this in different ways but keep having trouble. The function is activated fine, but it isn't received by the client. Thank you for the help, sorry if this is a dumb question with a simple fix, just don't know what else to try!

0
LocalScripts will not run in the Workspace nor will they run in the ServerScriptService. DeceptiveCaster 3761 — 5y
0
Wow I feel dumb just moved it to the correct space and it works perfectly. Wasn't thinking. Thank you! Songist 49 — 5y

Answer this question