Remote Event not working

So I ran into problem today. For some reason my Remote isnt firing from client to server
Client script:

local deb = false
script.Parent.MouseButton1Click:Connect(function()
	if not deb then
		deb = true
		game.ReplicatedStorage.Join:FireServer(script.Parent.Value.Value)
		warn(script.Parent.Value.Value)
		wait(5)
		deb = false
	end
end)

Its printing “1” as its supposed to

Server script:

game.ReplicatedStorage.Join.OnServerEvent:Connect(function(plr,lobby)

warn("works")

module:PlayerJoined(plr,lobby)

end)

But here its not printing anything neither errors.
Server script is located inside server script service

1 Like

Try adding a print() statement before you connect your OnServerEvent Event? There’s nothing that I really see wrong, which is odd

It prints, im so confused whats wrong with this

Maybe you set your module variable wrong? I don’t know what else could be causing that

Nope it works on other remote events same variable

Try doing

local rep = game:GetService("ReplicatedStorage")
local event = rep.Join:FindFirstChild("Event")

Can you share all the code involved with this please, the more we can see the clearer we can understand and help you

Do you have a while loop above the OnserverEvent by any chance?

No thats the whole script only thing before that i have is module variable

W h a t

You’re attempting to set the event variable as:

ReplicatedStorage > Event > EVENT PROPERTY W H A T

You only just need to do this:

local rep = game:GetService("ReplicatedStorage")
local event = rep:WaitForChild("Join")

You must be thinking of BindableEvents or something

Only before is module variable

Okay dumb question but just to be safe, do you actually have a RemoteEvent in ReplicatedStorage called Join? That’s really the only thing I could see that could be related since we’ve mentioned almost everything else

I was about to say that, Please send a screen shot of your explorer @srpskic

image yes I do

Okay what type of script are you firing to the RemoteEvent with and where is it located? You only mentioned the location of the script with the OnServerEvent

The only problem I see here is with the module

Local script is inside starter gui (text button)

Jack the Remoteevent isn’t in a folder

His event isn’t in the Ui folder as it is closed in the screen shot

Bruh its not inside of the folder image look better folder is closed