Help Request RemoteEvent Issue

  1. What do you want to achieve? I want my RemoteEvent to Fire when the script goes through.

  2. What is the issue? The issue is the script isn’t firing but there are no errors in the output. Here’s my LocalScript which “says” what the event is supposed to do.

game.ReplicatedStorage.Events.HelpEvent.OnServerEvent:Connect(function(Player)
	local userId = Player.UserId
	local HelpGui = script.HelpFrame:Clone()
	HelpGui.Name = Player.Name
	HelpGui.Parent = Player.PlayerGui.Waiting
	HelpGui.Visible = false
	local thumbType = Enum.ThumbnailType.HeadShot
	local thumbSize = Enum.ThumbnailSize.Size100x100
	local content, isReady = game.Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)

	-- Profile Script
	HelpGui.HelpFrame.PlayerIcon.Image = content

	-- Player Name Script

	HelpGui.HelpFrame.PlayerName.Text = Player.Name
end)

And here’s my Script that fires the event.

game.Players.PlayerAdded:Connect(function(player)
	player.Chatted:Connect(function(message)
		if string.find(message, "!help") then
			local HelpEvent = game.ReplicatedStorage.Events.HelpEvent
			HelpEvent:FireServer()
		end
	end)

	if player:GetRankInGroup(12556758) >= 8 then
		local PeopleWhoNeedHelp = player:WaitForChild("PlayerGui").Waiting:GetChildren()
		PeopleWhoNeedHelp.Parent = player.PlayerGui.HelpGui.Scroll
	end
end)
  1. What solutions have you tried so far? I haven’t seen any solutions for this although, I have a feeling it has something do with the way I called the Player in the Script. If anyone knows the issue please let me know.
2 Likes

This is supposed to be a server script

1 Like

You can’t use OnServerEvent in localscripts.

1 Like

He’s not, he put code that should be on the server in a local script and then is trying to send the information to the server.

1 Like

It’s in ServerScriptService, if that’s what you mean.

1 Like

What.

You are trying to fire a RemoteEvent from the server to the server then?

That’s not what RemoteEvents are for you can use BindableEvents to do that.

2 Likes

Thanks man, I just combined it all into one script.

2 Likes