generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: AdminGUI

Previous Thread :: Next Thread 
opperblox24 is not online. opperblox24
Joined: 24 Feb 2010
Total Posts: 591
22 Oct 2011 11:02 AM
Hello,

I'm looking for a good Admin GUI, it has to contain the following:

- Kill
- Kick
- Ban
- Teleport
- Lockdown button, so the server doesn't shutdown, but no more people can join the server.

Preferably no other things, such as FF, walkspeed, setgrav, etc.

If anyone has/knows this kind of an Admin GUI, I would highly appreciate it if you post something on this thread.

Thank you!
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
22 Oct 2011 11:03 AM
Use free models,
I won't do this.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
22 Oct 2011 11:03 AM
No requests

-- nate890 was here Ujelly?--
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
22 Oct 2011 11:04 AM
http://wiki.roblox.com/index.php/How_To:_Admin_Commands

­<'+1 Post. Ujelly?'>
Report Abuse
opperblox24 is not online. opperblox24
Joined: 24 Feb 2010
Total Posts: 591
22 Oct 2011 11:05 AM
Oh no, I don't ask people to make it.
I just wanted to know if someone already has it, and if he wants to share it.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
22 Oct 2011 11:06 AM
Thats really easy to make just read up on wikki you'll get it very quickly.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
22 Oct 2011 11:13 AM
user="nate890"

open=false

pos=.12
numCmd=0

easyCmdsLogo={63906911,63906916}

player=game.Players:FindFirstChild(user)


--Gui creation
easyCmdsSystem=Instance.new("ScreenGui",player.PlayerGui)
easyCmdsSystem.Name="EasyCmds"

easyCmds=Instance.new("Frame",easyCmdsSystem)
easyCmds.Name="EasyCmdsGuis"
easyCmds.Size=UDim2.new(1,0,1,0)
easyCmds.BackgroundTransparency=1

view=Instance.new("ImageButton",easyCmdsSystem)
view.Name="Open"
view.Size=UDim2.new(.03,0,.04,0)
view.Position=UDim2.new(1,0,.725,0)
view.BackgroundTransparency=1
view.Image="rbxasset://textures/ui/playerlist_hidden_small.png"

menu=Instance.new("Frame",easyCmds)
menu.Name="CmdMenu"
menu.Size=UDim2.new(.3,0,.295,0)
menu.Position=UDim2.new(1,0,.602,0) --.62,0,.602,0
menu.Style="RobloxRound"

createCmd=Instance.new("TextButton",menu)
createCmd.Name="CreateCmd"
createCmd.Size=UDim2.new(1,0,.1,0)
createCmd.Style="RobloxButtonDefault"
createCmd.FontSize="Size14"
createCmd.Text="Create new command"
createCmd.TextXAlignment="Left"
createCmd.TextColor3=Color3.new(1,1,1)

logo=Instance.new("Frame",easyCmds)
logoImage=Instance.new("ImageButton",logo)
logo.Name="Logo"
logo.Size=UDim2.new(.15,0,.3,0)
logo.Position=UDim2.new(.84,0,.6,0)
logo.BackgroundTransparency=1

logoImage.Size=UDim2.new(1,0,1,0)
logoImage.Name="LogoImage"
logoImage.BackgroundTransparency=1
logoImage.Image="http://www.roblox.com/asset/?id="..easyCmdsLogo[1]

scriptCmd=Instance.new("Frame",easyCmds)
scriptCmd.Name="ScriptCmd"
scriptCmd.Size=UDim2.new(.25,0,.3,0)
scriptCmd.Position=UDim2.new(0,0,0,0)
scriptCmd.Style="RobloxRound"
scriptCmd.Draggable=true
scriptCmd.Active=true

cancel=Instance.new("TextButton",scriptCmd)
cancel.Name="Cancel"
cancel.Size=UDim2.new(.45,0,.2,0)
cancel.Position=UDim2.new(.55,0,.8,0)
cancel.Style="RobloxButtonDefault"
cancel.Text="Cancel"
cancel.FontSize="Size12"
cancel.TextColor3=Color3.new(1,1,1)

accept=Instance.new("TextButton",scriptCmd)
accept.Name="Accept"
accept.Size=UDim2.new(.45,0,.2,0)
accept.Position=UDim2.new(0,0,.8,0)
accept.Style="RobloxButtonDefault"
accept.Text="Create"
accept.FontSize="Size12"
accept.TextColor3=Color3.new(1,1,1)

code=Instance.new("TextBox",scriptCmd)
code.Name="Code"
code.Size=UDim2.new(.9,0,.5,0)
code.Position=UDim2.new(.05,0,.25,0)
code.Text="Code"
code.FontSize="Size10"
code.BackgroundColor3=Color3.new(0,0,0)
code.TextColor3=Color3.new(1,1,1)
code.TextXAlignment="Left"
code.TextYAlignment="Top"
code.ClearTextOnFocus=false
code.MultiLine=true
code.TextWrap=true
code.BorderSizePixel=0

command=Instance.new("TextBox",scriptCmd)
command.Name="Command"
command.Size=UDim2.new(.9,0,.15,0)
command.Position=UDim2.new(.05,0,0,0)
command.Text="Command"
command.FontSize="Size10"
command.BackgroundColor3=Color3.new(1,1,1)
command.TextColor3=Color3.new(0,0,0)
command.TextXAlignment="Left"
command.BorderSizePixel=0


--Coding
logoImage.MouseEnter:connect(function()
logoImage.Image="http://www.roblox.com/asset/?id="..easyCmdsLogo[2]
logoImage.MouseLeave:wait()
logoImage.Image="http://www.roblox.com/asset/?id="..easyCmdsLogo[1]
end)

logoImage.MouseButton1Down:connect(function()
if not open then
open=true
menu:TweenPosition(UDim2.new(.62,0,.602,0),"Out")
else
open=false
menu:TweenPosition(UDim2.new(1,0,.602,0),"Out")
end
end)

logoImage.MouseButton2Down:connect(function()
easyCmds:TweenPosition(UDim2.new(1,0,0,0),"Out")
view:TweenPosition(UDim2.new(.97,0,.725,0),"Out")
end)

view.MouseEnter:connect(function()
view.Image="rbxasset://textures/ui/playerlist_hidden_small_ovr.png"
view.MouseLeave:wait()
view.Image="rbxasset://textures/ui/playerlist_hidden_small.png"
end)

view.MouseButton1Down:connect(function()
view:TweenPosition(UDim2.new(1,0,.725,0),"Out")
easyCmds:TweenPosition(UDim2.new(0,0,0,0),"Out")
end)

createCmd.MouseButton1Down:connect(function()
scriptCmd.Visible=true
end)

cancel.MouseButton1Down:connect(function()
scriptCmd.Visible=false
end)

accept.MouseButton1Down:connect(function()
newCmd=Instance.new("TextButton",menu)
newCmd.Name="NewCmd"
newCmd.Size=UDim2.new(1,0,.1,0)
newCmd.Position=UDim2.new(0,0,pos,0)
newCmd.Style="RobloxButtonDefault"
newCmd.FontSize="Size14"
newCmd.Text=command.Text
newCmd.TextXAlignment="Left"
newCmd.TextColor3=Color3.new(1,1,1)
pos=pos+.12
player.Chatted:connect(function(msg)
if msg==command.Text then
insertCmd=game:GetService("InsertService"):LoadAsset(63907008)
insertCmd.Parent=workspace
cmdScript=insertCmd.Script:clone()
insertCmd:remove()
cmdScript.codestr.Value=code.Text
cmdScript.Parent=workspace
end
end)
end)


Errr, messy ugly code is messy and ugly. That's something I spend half-an-hour on the other day, it's not done, and basically pointless, depending on what you're doing, but here's how you use it...

Click the logo, and then click "Create new command", a gui should pop up, in the top box, type in what you have to say to trigger the command, in the box below, code what happens once you say what you wrote in the top box...

Example: Top box = Hello
Bottom box = "workspace.nate890:Remove()"

Chat "Hello"

>nate890 from workspace is removed.

..I didn't get to making it so you don't need to create a new command every time (If you create one, then create a new one, it'll over lap the other one -- in other words, the new one would work, the older one wouldn't), but I might spend 5 minutes doing that, because that's all it'd take to make.
Report Abuse
opperblox24 is not online. opperblox24
Joined: 24 Feb 2010
Total Posts: 591
22 Oct 2011 11:17 AM
Thanks a lot for helping out nate.
I can't script yet, I really need to read some wikis about Lua...
Report Abuse
opperblox24 is not online. opperblox24
Joined: 24 Feb 2010
Total Posts: 591
22 Oct 2011 11:21 AM
This is really helping me learn it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image