CERTAIN LOCALSCRIPTS NOT WORKING - Events not firing?

Yep they’re all enabled. And zero errors, I’ve checked a load of times but have found nothing

Can you put a print statement before the declaration of the Event listener and the Event firing statement? See if those are outputting to console.

Server

local MatchInfo = Instance.new("RemoteEvent", game.ReplicatedStorage)
MatchInfo.Name = "MatchInfo"
while wait(2) do
	MatchInfo:FireAllClients()
end

Local

local MatchInfo = game.ReplicatedStorage:WaitForChild("MatchInfo")
MatchInfo.OnClientEvent:Connect(function()
	print("Client Event")
end)

Do not use Instance.new("Object", Parent)
It can cause performance issues, you should be setting the Parent property last.

2 Likes

Prove it
I do not believe it causes performance issues

1 Like

Here they are; image

Is it printing on the client as well? That is what I’m more interested in.

Nope that’s all from the server, when the client is fired it should print, the print isn’t there

print("Testing if it reaches this point")
Events.MatchInfo.OnClientEvent:Connect(function()
     print("TESTING MATCH INFO")
end)

Please test and see if that prints

Does this start at the beginning of the code?

Some time ago I had a problem like this and that was why. I solved it by placing a wait () at the beginning of the localscript.

Considering this is in a while true loop I don’t think this is the problem unfortunately. Since it will be repeatedly firing.

I see, its only happening once at the start of the script so I choose less lines rather than performance… I will keep the post you linked in mind when instantiating lots of instances in a small amount of time

Nothing;

(no errors etc)

send a roblox studio place file

This is your problem, something is preventing your client script from reaching the listener. Can you send your client script here please?

Uhh I’d probably need to remove a load of stuff if I were to send the entire file

The script above (in the original post) is the entire client script where it isn’t working

send a model with the full scripts in question

Where is your Client script located? It must be in ReplicatedStorage, ReplicatedFirst, StarterPlayerGui or a Descendant of StarterPlayer