Basic Admin Essentials - Teleport to Player in click

local Plugin = function(...)
	local Data = {...}

	-- Included Functions and Info --
	local remoteEvent = Data[1][1]
	local remoteFunction = Data[1][2]
	local returnPermissions = Data[1][3]
	local Commands = Data[1][4]
	local Prefix = Data[1][5]
	local actionPrefix = Data[1][6]
	local returnPlayers = Data[1][7]
	local cleanData = Data[1][8] -- cleanData(Sender,Receiver,Data)
	-- Practical example, for a gui specifically for a player, from another player
	-- cleanData(Sender,Receiver,"hi") -- You need receiver because it's being sent to everyone
	-- Or for a broadcast (something everyone sees, from one person, to nobody specific)
	-- cleanData(Sender,nil,"hi") -- Receiver is nil because it is a broadcast

	-- Plugin Configuration --
	local pluginName = 'PTS'
	local pluginPrefix = actionPrefix
	local pluginLevel = 0
	local pluginUsage = "" -- leave blank if the command has no arguments
	local pluginDescription = "Asks question."

	-- Example Plugin Function --
	local function pluginFunction(Args) -- keep the name of the function as "pluginFunction"
		local Player = Args[1]
		for i,v in pairs(game.Players:GetChildren()) do
			if returnPermissions(v) >= 1 then
				if game.ReplicatedStorage.PTSENABLED.Value == true then
					remoteEvent:FireClient(v,"Notif",Player.Name, Player.Name..' called a PTS!',{'PTS','Username: '..Player.Name,' 	'})
					remoteEvent:FireClient(Player,"Notif","PTS", 'Success',{'PTS','Success',' 	'})
					
				else
					remoteEvent:FireClient(Player,"Notif","PTS", 'Disabled',{'PTS','Disabled',' 	'})
				end
			end	
		end

	end

	-- Return Everything to the MainModule --
	local descToReturn
	if pluginUsage ~= "" then
		descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
	else
		descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription
	end

	return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription}
end

return Plugin

Hi, so basically everything above works, however Iā€™m not really familiar with BAE, I just wanna make it so that
image
Once you click in this ^, itā€™ll teleport you infront of the Playerā€™s Character.

1 Like

What are these acronyms? BAE? PTS?

Anyways, if you created the GUI for ā€œcalled a PTSā€, why not just attach a activate event to it and just teleport the player to the target character?

2 Likes

bae is basic admin essentials and pts is permission to speak basically just wanting to ask or say something and i already mentioned im not familiar with bae so im not sure where to attach this event

Hey, I was wondering if itā€™s possible to change the PTS to be like !help, and if I would change that would I need to change anything else not to break it?

Hey, I recommend not using random code you find on the dev forum and try yourself! Also the code provided does not function correctly. No, changing the title would not break it but the code does not work anyway! If you canā€™t do it after you attempt you may commission someone or request help on the dev forum. If you would like to talk to me my discord is BodieBlox

Okay, thanks for notifying me but sadly I am not a scripter but Iā€™ll try to find a person who can help me.

If you would like to commission someone you can dm me! I have lots of experience with basic admin

Thanks for the offer, and sorry for the late reply but If Iā€™ll need help Iā€™ll remember to contact you.

Hey, there so I would like you to help me out!

So Iā€™ve noticed that when you use the ;fly command it makes you fly but you still collide with parts etcā€¦ But are you able to maybe create a plugin where if you use ;fly command it would make you able to fly thru walls?

still need help? iā€™ve done these ā€˜supportā€™/ā€˜ptsā€™ systems several times for all sorts of places, along with modified features

My Contacts

Discord: MACBO0KS

or message on devforum

(sorry for 36 day bump btw)