How do I make PTS system?

Greetings, everyone! Can someone tell me how do I make a PTS system within a Basic admin Plugins? Or, that system is for model?

Example:
When I say !PTS, that system will say “Your PTS has been sent!” and trainer will click the PTS accept button then trainer will teleport to the PTS requester.

And I don’t understand how to make the Host panel, can someone tell me?
image

2 Likes

Use the .Chatted function in conjunction with Players.PlayerAdded to get when someone chats, then look for the phrase !PTS using string manipulation. You can then have the server do something that lets the requested player accept or deny, if they accept then set their player.Character position to the other player’s position using either CFrames or :moveTo.

For the BAE part, it would just be a plugin with a return message, no code inside it.

Alright. Thank you so much. >3

Uhm, how to do it…? I really not understand.

get players by PlayerAdded, then do something like this:

  • If players rank is higher than MR or HR rank, put a bool value on player called “PTSResponder”
  • Use plr.Chatted function and use string manipulation, something like this
plr.Chatted:Connect(function(msg)
if string.lower(string.sub(msg, 1, 4)) == "!pts" then -- String manipulation
--code
end
end)
  • Go through all the players in a pairs loop and check if they have “PTSResponder” value.
  • If a player has the value, put up a gui that says “plr is requesting PTS! Respond?”
  • If they click yes, teleport them infront of the player and remove the gui from other players.

Thank you. I will try it while I’m at home.

Hii! This is actually a bought system, here is the game link to buy this PTS system and host panel and a lot more!

Hope you find it helpful!