Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Energy Admin
- by KCROL
- Another for you guys.
- --]]
- local plr = game:GetService("Players").LocalPlayer
- function showCmds()
- --This cmd GUI was converted using GUI to Lua v2.6 by Infortality on ROBLOX
- -- Objects
- local Cmds = Instance.new("ScreenGui")
- local CmdsFrame = Instance.new("Frame")
- local Line1 = Instance.new("TextLabel")
- local Line2 = Instance.new("TextLabel")
- local CloseButton = Instance.new("TextButton")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local _1 = Instance.new("TextLabel")
- local _2 = Instance.new("TextLabel")
- local _3 = Instance.new("TextLabel")
- local _4 = Instance.new("TextLabel")
- local _5 = Instance.new("TextLabel")
- local _6 = Instance.new("TextLabel")
- local _7 = Instance.new("TextLabel")
- local _8 = Instance.new("TextLabel")
- local _9 = Instance.new("TextLabel")
- -- Properties
- Cmds.Name = "Cmds"
- Cmds.Parent = plr.PlayerGui
- CmdsFrame.Name = "CmdsFrame"
- CmdsFrame.Parent = Cmds
- CmdsFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- CmdsFrame.BorderSizePixel = 0
- CmdsFrame.Position = UDim2.new(0.5, -200, 0.5, -200)
- CmdsFrame.Size = UDim2.new(0, 400, 0, 400)
- Line1.Name = "Line1"
- Line1.Parent = CmdsFrame
- Line1.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- Line1.BorderSizePixel = 0
- Line1.Size = UDim2.new(0, 400, 0, 10)
- Line1.Font = Enum.Font.SourceSans
- Line1.Text = ""
- Line1.TextSize = 14
- Line2.Name = "Line2"
- Line2.Parent = CmdsFrame
- Line2.BackgroundColor3 = Color3.new(0.333333, 0.666667, 0)
- Line2.BorderSizePixel = 0
- Line2.Position = UDim2.new(0, 0, 0, 10)
- Line2.Size = UDim2.new(0, 400, 0, 40)
- Line2.Font = Enum.Font.SourceSansSemibold
- Line2.Text = " Energy Commands for "..plr.Name
- Line2.TextColor3 = Color3.new(1, 1, 1)
- Line2.TextSize = 30
- Line2.TextWrapped = true
- Line2.TextXAlignment = Enum.TextXAlignment.Left
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = CmdsFrame
- CloseButton.BackgroundColor3 = Color3.new(1, 1, 1)
- CloseButton.BackgroundTransparency = 1
- CloseButton.Position = UDim2.new(0, 370, 0, 18)
- CloseButton.Size = UDim2.new(0, 25, 0, 25)
- CloseButton.Font = Enum.Font.Cartoon
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.new(1, 1, 1)
- CloseButton.TextScaled = true
- CloseButton.TextSize = 14
- CloseButton.TextWrapped = true
- ScrollingFrame.Parent = CmdsFrame
- ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- ScrollingFrame.BackgroundTransparency = 1
- ScrollingFrame.Position = UDim2.new(0, 0, 0, 100)
- ScrollingFrame.Size = UDim2.new(0, 400, 0, 300)
- ScrollingFrame.BottomImage = "rbxassetid://158362107"
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 3, 0)
- ScrollingFrame.MidImage = "rbxassetid://158362107"
- ScrollingFrame.TopImage = "rbxassetid://158362107"
- _1.Name = "1"
- _1.Parent = ScrollingFrame
- _1.BackgroundColor3 = Color3.new(1, 1, 1)
- _1.BackgroundTransparency = 1
- _1.Size = UDim2.new(0, 385, 0, 45)
- _1.Font = Enum.Font.SourceSans
- _1.Text = " ;cmds"
- _1.TextScaled = true
- _1.TextSize = 14
- _1.TextWrapped = true
- _1.TextXAlignment = Enum.TextXAlignment.Left
- _2.Name = "2"
- _2.Parent = ScrollingFrame
- _2.BackgroundColor3 = Color3.new(1, 1, 1)
- _2.BackgroundTransparency = 1
- _2.Position = UDim2.new(0, 0, 0, 50)
- _2.Size = UDim2.new(0, 385, 0, 45)
- _2.Font = Enum.Font.SourceSans
- _2.Text = " ;god"
- _2.TextScaled = true
- _2.TextSize = 14
- _2.TextWrapped = true
- _2.TextXAlignment = Enum.TextXAlignment.Left
- _3.Name = "3"
- _3.Parent = ScrollingFrame
- _3.BackgroundColor3 = Color3.new(1, 1, 1)
- _3.BackgroundTransparency = 1
- _3.Position = UDim2.new(0, 0, 0, 100)
- _3.Size = UDim2.new(0, 385, 0, 45)
- _3.Font = Enum.Font.SourceSans
- _3.Text = " ;kill"
- _3.TextScaled = true
- _3.TextSize = 14
- _3.TextWrapped = true
- _3.TextXAlignment = Enum.TextXAlignment.Left
- _4.Name = "4"
- _4.Parent = ScrollingFrame
- _4.BackgroundColor3 = Color3.new(1, 1, 1)
- _4.BackgroundTransparency = 1
- _4.Position = UDim2.new(0, 0, 0, 150)
- _4.Size = UDim2.new(0, 385, 0, 45)
- _4.Font = Enum.Font.SourceSans
- _4.Text = " ;ff"
- _4.TextScaled = true
- _4.TextSize = 14
- _4.TextWrapped = true
- _4.TextXAlignment = Enum.TextXAlignment.Left
- _5.Name = "5"
- _5.Parent = ScrollingFrame
- _5.BackgroundColor3 = Color3.new(1, 1, 1)
- _5.BackgroundTransparency = 1
- _5.Position = UDim2.new(0, 0, 0, 200)
- _5.Size = UDim2.new(0, 385, 0, 45)
- _5.Font = Enum.Font.SourceSans
- _5.Text = " ;admin (Idk If works)"
- _5.TextScaled = true
- _5.TextSize = 14
- _5.TextWrapped = true
- _5.TextXAlignment = Enum.TextXAlignment.Left
- _6.Name = "6"
- _6.Parent = ScrollingFrame
- _6.BackgroundColor3 = Color3.new(1, 1, 1)
- _6.BackgroundTransparency = 1
- _6.Position = UDim2.new(0, 0, 0, 250)
- _6.Size = UDim2.new(0, 385, 0, 45)
- _6.Font = Enum.Font.SourceSans
- _6.Text = " ;ungod"
- _6.TextScaled = true
- _6.TextSize = 14
- _6.TextWrapped = true
- _6.TextXAlignment = Enum.TextXAlignment.Left
- _7.Name = "7"
- _7.Parent = ScrollingFrame
- _7.BackgroundColor3 = Color3.new(1, 1, 1)
- _7.BackgroundTransparency = 1
- _7.Position = UDim2.new(0, 0, 0, 300)
- _7.Size = UDim2.new(0, 385, 0, 45)
- _7.Font = Enum.Font.SourceSans
- _7.Text = " ;unff"
- _7.TextScaled = true
- _7.TextSize = 14
- _7.TextWrapped = true
- _7.TextXAlignment = Enum.TextXAlignment.Left
- _8.Name = "8"
- _8.Parent = ScrollingFrame
- _8.BackgroundColor3 = Color3.new(1, 1, 1)
- _8.BackgroundTransparency = 1
- _8.Position = UDim2.new(0, 0, 0, 350)
- _8.Size = UDim2.new(0, 385, 0, 45)
- _8.Font = Enum.Font.SourceSans
- _8.Text = " ;msg"
- _8.TextScaled = true
- _8.TextSize = 14
- _8.TextWrapped = true
- _8.TextXAlignment = Enum.TextXAlignment.Left
- _9.Name = "8"
- _9.Parent = ScrollingFrame
- _9.BackgroundColor3 = Color3.new(1, 1, 1)
- _9.BackgroundTransparency = 1
- _9.Position = UDim2.new(0, 0, 0, 400)
- _9.Size = UDim2.new(0, 385, 0, 45)
- _9.Font = Enum.Font.SourceSans
- _9.Text = " ;rmadmin"
- _9.TextScaled = true
- _9.TextSize = 14
- _9.TextWrapped = true
- _9.TextXAlignment = Enum.TextXAlignment.Left
- CloseButton.MouseButton1Click:connect(function()
- Cmds:Destroy()
- end)
- end
- function TellPlr(plr)
- -- Objects
- local MessageToPlr = Instance.new("ScreenGui")
- local MessageFrame = Instance.new("Frame")
- local Line1 = Instance.new("TextLabel")
- local Line2 = Instance.new("TextLabel")
- local What = Instance.new("TextLabel")
- local Info = Instance.new("TextLabel")
- local Info2 = Instance.new("TextLabel")
- local Agree = Instance.new("TextButton")
- -- Properties
- MessageToPlr.Name = "MessageToPlr"
- MessageToPlr.Parent = plr.PlayerGui
- MessageFrame.Name = "MessageFrame"
- MessageFrame.Parent = MessageToPlr
- MessageFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- MessageFrame.BorderSizePixel = 0
- MessageFrame.Position = UDim2.new(0.5, -200, 0.5, -200)
- MessageFrame.Size = UDim2.new(0, 400, 0, 400)
- Line1.Name = "Line1"
- Line1.Parent = MessageFrame
- Line1.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- Line1.BorderSizePixel = 0
- Line1.Size = UDim2.new(0, 400, 0, 10)
- Line1.Font = Enum.Font.SourceSans
- Line1.Text = ""
- Line1.TextSize = 14
- Line2.Name = "Line2"
- Line2.Parent = MessageFrame
- Line2.BackgroundColor3 = Color3.new(0.333333, 0.666667, 0)
- Line2.BorderSizePixel = 0
- Line2.Position = UDim2.new(0, 0, 0, 10)
- Line2.Size = UDim2.new(0, 400, 0, 40)
- Line2.Font = Enum.Font.SourceSansSemibold
- Line2.Text = " Energy"
- Line2.TextColor3 = Color3.new(1, 1, 1)
- Line2.TextScaled = true
- Line2.TextSize = 14
- Line2.TextWrapped = true
- Line2.TextXAlignment = Enum.TextXAlignment.Left
- What.Name = "What"
- What.Parent = MessageFrame
- What.BackgroundColor3 = Color3.new(1, 1, 1)
- What.BackgroundTransparency = 1
- What.Position = UDim2.new(0, 0, 0, 50)
- What.Size = UDim2.new(0, 400, 0, 45)
- What.Font = Enum.Font.SourceSansLight
- What.Text = "You have been given admin!"
- What.TextColor3 = Color3.new(0, 0, 0)
- What.TextSize = 36
- What.TextWrapped = true
- Info.Name = "Info"
- Info.Parent = MessageFrame
- Info.BackgroundColor3 = Color3.new(1, 1, 1)
- Info.BackgroundTransparency = 1
- Info.Position = UDim2.new(0, 0, 0, 150)
- Info.Size = UDim2.new(0, 400, 0, 75)
- Info.Font = Enum.Font.SourceSansLight
- Info.Text = "To view commands, say ;cmds"
- Info.TextColor3 = Color3.new(0, 0, 0)
- Info.TextSize = 36
- Info.TextWrapped = true
- Info2.Name = "Info2"
- Info2.Parent = MessageFrame
- Info2.BackgroundColor3 = Color3.new(1, 1, 1)
- Info2.BackgroundTransparency = 1
- Info2.Position = UDim2.new(0, 0, 0, 250)
- Info2.Size = UDim2.new(0, 400, 0, 75)
- Info2.Font = Enum.Font.SourceSansLight
- Info2.Text = "When using commands like ;kill or ;god, be sure to type the exact name."
- Info2.TextColor3 = Color3.new(0, 0, 0)
- Info2.TextScaled = true
- Info2.TextSize = 36
- Info2.TextWrapped = true
- Agree.Name = "Agree"
- Agree.Parent = MessageFrame
- Agree.BackgroundColor3 = Color3.new(0.333333, 0.666667, 0)
- Agree.BorderSizePixel = 0
- Agree.Position = UDim2.new(0.5, -50, 0, 350)
- Agree.Size = UDim2.new(0, 100, 0, 30)
- Agree.Font = Enum.Font.SourceSans
- Agree.Text = "Got it!"
- Agree.TextColor3 = Color3.new(1, 1, 1)
- Agree.TextScaled = true
- Agree.TextSize = 14
- Agree.TextWrapped = true
- Agree.MouseButton1Click:connect(function()
- MessageToPlr:Destroy()
- end)
- end
- function TellPlre(plr)
- -- Objects
- local MessageToPlr = Instance.new("ScreenGui")
- local MessageFrame = Instance.new("Frame")
- local Line1 = Instance.new("TextLabel")
- local Line2 = Instance.new("TextLabel")
- local What = Instance.new("TextLabel")
- local Info = Instance.new("TextLabel")
- local Info2 = Instance.new("TextLabel")
- local Agree = Instance.new("TextButton")
- -- Properties
- MessageToPlr.Name = "MessageToPlr"
- MessageToPlr.Parent = plr.PlayerGui
- MessageFrame.Name = "MessageFrame"
- MessageFrame.Parent = MessageToPlr
- MessageFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- MessageFrame.BorderSizePixel = 0
- MessageFrame.Position = UDim2.new(0.5, -200, 0.5, -200)
- MessageFrame.Size = UDim2.new(0, 400, 0, 400)
- Line1.Name = "Line1"
- Line1.Parent = MessageFrame
- Line1.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- Line1.BorderSizePixel = 0
- Line1.Size = UDim2.new(0, 400, 0, 10)
- Line1.Font = Enum.Font.SourceSans
- Line1.Text = ""
- Line1.TextSize = 14
- Line2.Name = "Line2"
- Line2.Parent = MessageFrame
- Line2.BackgroundColor3 = Color3.new(0.333333, 0.666667, 0)
- Line2.BorderSizePixel = 0
- Line2.Position = UDim2.new(0, 0, 0, 10)
- Line2.Size = UDim2.new(0, 400, 0, 40)
- Line2.Font = Enum.Font.SourceSansSemibold
- Line2.Text = " Energy"
- Line2.TextColor3 = Color3.new(1, 1, 1)
- Line2.TextScaled = true
- Line2.TextSize = 14
- Line2.TextWrapped = true
- Line2.TextXAlignment = Enum.TextXAlignment.Left
- What.Name = "What"
- What.Parent = MessageFrame
- What.BackgroundColor3 = Color3.new(1, 1, 1)
- What.BackgroundTransparency = 1
- What.Position = UDim2.new(0, 0, 0, 50)
- What.Size = UDim2.new(0, 400, 0, 45)
- What.Font = Enum.Font.SourceSansLight
- What.Text = "You have ran Energy by KCROL."
- What.TextColor3 = Color3.new(0, 0, 0)
- What.TextSize = 36
- What.TextWrapped = true
- Info.Name = "Info"
- Info.Parent = MessageFrame
- Info.BackgroundColor3 = Color3.new(1, 1, 1)
- Info.BackgroundTransparency = 1
- Info.Position = UDim2.new(0, 0, 0, 150)
- Info.Size = UDim2.new(0, 400, 0, 75)
- Info.Font = Enum.Font.SourceSansLight
- Info.Text = "To view commands, say ;cmds"
- Info.TextColor3 = Color3.new(0, 0, 0)
- Info.TextSize = 36
- Info.TextWrapped = true
- Info2.Name = "Info2"
- Info2.Parent = MessageFrame
- Info2.BackgroundColor3 = Color3.new(1, 1, 1)
- Info2.BackgroundTransparency = 1
- Info2.Position = UDim2.new(0, 0, 0, 250)
- Info2.Size = UDim2.new(0, 400, 0, 75)
- Info2.Font = Enum.Font.SourceSansLight
- Info2.Text = "When using commands like ;kill or ;god, be sure to type the exact name."
- Info2.TextColor3 = Color3.new(0, 0, 0)
- Info2.TextScaled = true
- Info2.TextSize = 36
- Info2.TextWrapped = true
- Agree.Name = "Agree"
- Agree.Parent = MessageFrame
- Agree.BackgroundColor3 = Color3.new(0.333333, 0.666667, 0)
- Agree.BorderSizePixel = 0
- Agree.Position = UDim2.new(0.5, -50, 0, 350)
- Agree.Size = UDim2.new(0, 100, 0, 30)
- Agree.Font = Enum.Font.SourceSans
- Agree.Text = "Got it!"
- Agree.TextColor3 = Color3.new(1, 1, 1)
- Agree.TextScaled = true
- Agree.TextSize = 14
- Agree.TextWrapped = true
- Agree.MouseButton1Click:connect(function()
- MessageToPlr:Destroy()
- end)
- end
- function Chat(msg)
- if msg:sub(1,5) == ";cmds" then
- showCmds()
- elseif msg:sub(1,5) == ";god " then
- local plre = game:GetService("Players")[msg:sub(6)]
- if plre then
- if plre.Character then
- if plre.Character.Humanoid then
- plre.Character.Humanoid.MaxHealth = math.huge
- end
- end
- end
- elseif msg:sub(1,6) == ";kill " then
- local plre = game:GetService("Players")[msg:sub(7)]
- if plre then
- if plre.Character then
- if plre.Character.Humanoid then
- plre.Character.Humanoid.MaxHealth = 0
- plre.Character.Humanoid.Health = 0
- end
- end
- end
- elseif msg:sub(1,4) == ";ff " then
- local plre = game:GetService("Players")[msg:sub(5)]
- if plre then
- if plre.Character then
- Instance.new('ForceField',plre.Character)
- end
- end
- elseif msg:sub(1,7) == ";admin " then
- local plre = game:GetService("Players")[msg:sub(8)]
- if plre then
- if plre.PlayerGui then
- TellPlr(plre)
- script:Clone().Parent = plre.PlayerGui
- end
- end
- elseif msg:sub(1,6) == ";unff " then
- local plre = game:GetService("Players")[msg:sub(7)]
- if plre then
- if plre.Character then
- for i,v in pairs(plre.Character:GetChildren()) do
- if v:IsA("ForceField") then
- v:Destroy()
- end
- end
- end
- end
- elseif msg:sub(1,7) == ";ungod " then
- local plre = game:GetService("Players")[msg:sub(8)]
- if plre then
- if plre.Character then
- if plre.Character.Humanoid then
- plre.Character.Humanoid.MaxHealth = 100
- plre.Character.Humanoid.Health = 100
- end
- end
- end
- elseif msg:sub(1,5) == ";msg " then
- local msgtext = msg:sub(6)
- local msg = Instance.new('Message',workspace)
- msg.Text = msgtext
- wait(5)
- msg:Destroy()
- elseif msg:sub(1,8) == ";rmadmin" then
- script:Destroy()
- end
- end
- TellPlre(plr)
- plr.Chatted:connect(Chat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement