Admin gui Issue

  1. What do you want to achieve? Keep it simple and clear!
    This is my first time making an admin gui all by myself soo id appreciate if you could give me feedback on what i could do, btw im aware of safety checks soo dont worry about that

  2. What is the issue? Include screenshots / videos if possible!
    My admin gui its almost done the only thing im struggling with its getting the remote event from the commands module script

  3. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    I tried searching on the devforum but i didnt find anything similar

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!


These are the main scripts

Commands Module Script

local rs = game:GetService("ReplicatedStorage")
local AR_Folder = rs:WaitForChild("AdminRemotes")

local commands = {}

commands.Commands = {
	"chaos",
	"explode"
}

commands.Remotes = {
	["chaos"] = AR_Folder:WaitForChild("chaos")
}

return commands

Submitt Local Script

local gui = script.Parent
local container = gui:WaitForChild("Container")
local panel_textbox = container:WaitForChild("Panel")

local commands = require(gui:WaitForChild("Commands"))

panel_textbox.FocusLost:Connect(function(enter)
	if enter then
		for _,command in pairs(commands.Commands) do
			if panel_textbox.Text == command then
				local remote = --part where i struggle
			else
				return
			end
		end
	end
end)

You can just reference commands.remotes[“chaos”]
Or in your case
commands.Remotes[command] — this is the remote event so just Fire:commands.Remotescommand
At least I’m 95% sure I’m on mobile right now so I can’t exactly test it

1 Like

In my opinion, you only need one remote event to handle every command. You don’t need to create a remote event to add another command.

2 Likes

Thank you, this saved me from making like 50 remotes

1 Like

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