Remote Event not firing from local script

I’m making a pls donate type game and I’m trying to make an option where you can unclaim your stand. I made a remote event that fires when you click the unclaim button but for some reason the server isn’t recieving the signal.

Client:

optionF.Abandon.MouseButton1Click:Connect(function()
	SFX.Click:Play()
	if plr.misc.stand.Value == true then
		event:FireServer()
		print("sent")
	else
		gui.Warn.Visible = true
		wait(1)
		gui.Warn.Visible = false
	end
end)

Server

game.ReplicatedStorage.Events.Stand_Remove.OnServerEvent:Connect(function(plr)
    print("recieved")
	plr.misc.stand.Value = false
	value.Owner.Value = ""
	value.Claim.Value = false
	stand["name of player"].NameGUI.TextLabel.Text = "Owner: Nobody"
	stand.donate.DonateGUI.NoSale.Visible = false
	stand.donate.DonateGUI.Frame.Visible = true
end)

Any feedback is appreciated.

Hi there,

Where is the server script located?

It’s in the ServerScriptService

Anything unusual (any errors) you see in the console regarding the LocalScript & Script in question? It also helps to make sure you’re referencing the correct remotes on your scripts. Does your LocalScript successfully print sent when you click the button under the appropriate condition?

Everything works fine without error which is the unusual part. My local script prints sent but it never prints recieved from the server side. I checked and my spelling was right and I referenced the correct local script.

Sounds to me like your OnServerEvent function is never getting connected to the event at all. Some general debugging can be helpful here if you try printing something right before or after your event listener to check if your code is even reaching those bounds.

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