How to notify player that request is sent? | !pts command

I need help with my PTS command that when an player says !pts, it will notify the player that the request has been send to an MR and that assistance will arrive shortly.

This is the ServerScriptService script I have:

local GroupId = 10558052 --REPLACE 0 WITH YOUR GROUP ID
local LowestStaffRank = 250 --REPLACE 0 WITH THE MINIMUM RANK ID TO RECEIVE PTS NOTIFICATIONS

game.Players.PlayerAdded:Connect(function(Player)
	Player.Chatted:Connect(function(Message)
		if Message == "!pts" then
			for Index, StaffMember in ipairs(game.Players:GetPlayers()) do
				if StaffMember:GetRankInGroup(GroupId) >= LowestStaffRank then
					game.ReplicatedStorage.HelpNotifierEvent:FireClient(StaffMember, Player)
				end
			end
		end
	end)
end)

And this is the StarterGUI script I currently have:

local Player = game.Players.LocalPlayer

game.ReplicatedStorage.HelpNotifierEvent.OnClientEvent:Connect(function(PlayerNeedingHelp)
	local TeleportPlayer = Instance.new("BindableFunction")

	TeleportPlayer.OnInvoke = function()
		Player.Character:SetPrimaryPartCFrame(PlayerNeedingHelp.Character:GetPrimaryPartCFrame())
	end
	
	game.StarterGui:SetCore("SendNotification", {
		Title = PlayerNeedingHelp.Name .. " requested PTS",
		Text = "Click to teleport to this user. Abuse of this system is not allowed.",
		Duration = 15,
		Button1 = "Teleport",
		Callback = TeleportPlayer
	})
end)
1 Like

Normally, I wouldn’t do this, but since I see you’re creating a lot of posts related to a cafe-isk type game, I’ll help you out some. Add me on Discord: bredcrums_ and we’ll discuss further about any more questions! <3

I’ll add you when ever I get home (3:30-3:40 PM EST) because I am currently in school right now.

I have send you a request, thank you for helping me.

I just remembered, I changed my username!! It’s something like fxavorwed

Can you mabe DM me on the forums your discord username, I’ll add you once I get home.

If this is BAE then:


remoteEvent:FireClient("Hint", ‘Feedback’ ‘Your request has been sent . Please expect a reply shortly.’)

If it’s your own custom system, then I need more information for it.

1 Like

Its not BAE, it’s an script made by me.

Done, i have send you my user in your DMs.

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