[ SOLVED ] Admin Commands List error

So firstly I tried it visible then it false auto (Without script) and it’s still not loading

Code:

--/// Command List Info \\--
local title = "Basic Admin"


local titlebutton = script.Parent.TitleCard.TitleClose
titlebutton.MouseButton1Click:Connect(function()
	script.Parent.Parent.Cmds.Visible=false
end)
script.Parent.TitleCard.TitleLabel.Text = title


--/// General Admin Programming \\--

-- Administration In Admin
local AdminList = {"im_sams","ToxicCooling"}
local BanList = {"Noob","Noob2"}
local BanReason = "You have been banned"
local BanAppeal = " | Appeal Appeal at are group wall why should be un-banned"
local IsAdmin = false
local IsBanned = false
-- IsAdmin()
game.Players.PlayerAdded:connect(function(player)
for _, v in pairs(AdminList) do
if player.Name == v then
IsAdmin = true
print("RS ADMIN | IsAdmin() = true")
else
IsAdmin = false
print("RS ADMIN | IsAdmin() = false")
end
end
end)
-- IsBanned()
game.Players.PlayerAdded:connect(function(player)
for _, v in pairs(BanList) do
if player.Name == v then
	player:Kick(BanReason,BanAppeal)
IsBanned = true
print("RS ADMIN | IsBanned() = true")
else
IsBanned = false
print("RS ADMIN | IsBanned() = false")
end
end
end)

-- Command Configuration
--[[
REMOVED DUE TO WELL FOR REAL BUD THIS LIKE THE MAIN THING 
OF THE COMMANDS.  This is all coding of :heal me, :Kick player, :cmds,etc removed
from script due to this is coding review and I know for fact this works
and I don't like people who copy me. or people who copys peoples stuff and
don't do and work at all.



]]






--/// Command List \\--


--//Kick
local Command = script.Parent.CommandList.CommandExample:Clone()
Command.Name = "Command"
Command.Title.Text = "Kick".." -"
Command.Desc.Text = "Kick and player from the server"
Command.Visible=true
--//Cmds
local Command = script.Parent.CommandList.CommandExample:Clone()
Command.Name = "Command"
Command.Title.Text = "Cmds".." -"
Command.Desc.Text = "Opens this gui what your currently viewing"
Command.Visible=true
--//Music
local Command = script.Parent.CommandList.CommandExample:Clone()
Command.Name = "Command"
Command.Title.Text = "Music".." -"
Command.Desc.Text = "Play music in the server"
--//Prefix
local Command = script.Parent.CommandList.CommandExample:Clone()
Command.Name = "Command"
Command.Title.Text = "Prefix".." -"
Command.Desc.Text = "Figure out the Admin commands prefix"
Command.Visible=true

--//Place
local Command = script.Parent.CommandList.CommandExample:Clone()
Command.Name = "Command"
Command.Title.Text = "Place".." -"
Command.Desc.Text = "Teleport players in the server to and game"
Command.Visible=true
--//Announce
local Command = script.Parent.CommandList.CommandExample:Clone()
Command.Name = "Command"
Command.Title.Text = "msg".." -"
Command.Desc.Text = "Broadcast and message across the server"
Command.Visible=true






What is the error in output that the script gives?

Nothing but the Source print from a different script thats not effecting this.
And module assetid is from somthing else I need to update thats not affilated with this script.

image

Is this a serverscript inside a gui?

yes, it’s under the gui. the Commands Script has been moved but commands list is still there

Serverscripts shouldn’t be ran inside Gui objects. Another reason this could be failing is the code where you detect a click for ‘titlebutton’, the server cannot detect this click.

The subject of the post doesn’t really tell me what issue you’re having.

i mean its and localscript image

I think the issue is that it is displayig under it as he has shown me https://cdn.discordapp.com/attachments/593940722814812194/616475462952026132/unknown.png

Ah in that case, .PlayerAdded event is a real bad idea for the client as the event has a really high chance of not firing when the player themselves join, it’ll only fire for other players. Also, the client can only use :Kick onthemselves.

i know, Thats why I moved all the Commands script to a normal script into workspace.

Keep your important scripts out of workspace and put them into serverscriptservice.
Also, is your Gui constantly setting itself to false on its own even by being true before runtime without any other altercations by any other script?

ok, just move the position of the labels so it isnt under the first label?

its still not workin

image

image

What is the exact issue DrxpLoxs?

It’s not cloning and Making and GUI and Changing the text and making it visible.

You are not setting the parent for each commandexample.

Also use something like UDim2.new(1, -10, 0, 0) to change the position each time!

As you are not setting the parent for each commandexample, you’d want to add after you set it to visible below:

Command1.Parent = script.Parent.CommandList
Command2.Parent = script.Parent.CommandList

He’s using a gridlayout or listlayout object.

ty now its working

image