Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------
- -----------------------[[ Hey Thanks For BETA Testing Mile's Admin Command's! ]]-----------------------------
- -------------------------------------------------------------------------------------------------------------
- --[[
- *Messages/Update's
- [11/11/14 PST U.S.A.] Started admin
- [11/12/14 PST U.S.A.] Added a group admin table and game owner auto Owner table.
- [11/12/14 PST U.S.A.] Released the admin with 4commands :P
- [12/5/14 PST U.S.A.] Fixing some glitchy commands and adding better BannedList/HttpService/NetworkClient
- [12/22/14 PST U.S.A.] Making Gui tween, Anding test cmds and better http loader.
- [12/23/14 PST U.S.A.] Made the Gui IOS compatable!!! THE FIRST ADMIN THATS IOS FRIENDLY! YAY!!!
- [12/24/14 PST U.S.A.] Merry Pre-Christmas!!! :D Fixed Some Tables.
- [12/26/14 PST U.S.A.] Fixed ranking membership's! Added auto game owner Admin!
- [MESSAGE] : You do NOT have to add your name it is not automatic! :D
- [MESSAGE] : If you want to test the fully updated version |
- http://www.roblox.com/Miles-Admin-Testing-place?id=195796069 OR say place;195796069
- [MESSAGE] : Message me @ jillmiles1 for acceptable commands or problems!
- [12/29/14 PST U.S.A.] Now with httpservice music! ( If httpservice avaible ) say sm;NAMEOFSONGHERE
- [12/31/14 PST U.S.A.] Now with PersonalServer settings ( Due to problems with the IOS GUI )
- [1/1/15 PST U.S.A.] Now its Auto Updatable! :D
- [1/5/15 PST U.S.A.] The ScrollingFrame is capable to hold more commands now & Lag function is HORRIBLE now.
- [1/6/15 PST U.S.A.] Fixed the nil probe/character.
- [2/9/15 PST U.S.A.] Added new gui's and settings! :D
- [2/10/15 PST U.S.A.] Added new music list & gui! YAYY!!
- [2/17/15 PST U.S.A.] Added new sub (EXAMPLE : speed;all;50 )
- [2/19/15 PST U.S.A.] Fixed the rank; command!
- ]]--
- --[[ Settings ]]--
- local MRun,MError=ypcall(function() -- In case of a horrible problem. ):
- local Owners={'seb8023'};
- local Admins={''};
- local Banned={'Crimsonsword321','_Idk_','_Return_Until_Nil_Idiots_'};
- local GroupID=(00000)
- local GroupAdminsRank=(1-255) -- MUST be numbered 1-255 depending on your group ranking(s)
- local GamePassID=(000000) -- Have a gamepass? Use it here!
- local KohlsSantex=false -- :kill jillmiles1
- local PersonsSantex=false -- kill/jillmiles1
- local RyansSantex=false -- /kill jillmiles1
- local MakersSantex=false -- ;kill jillmiles1
- local MilesSantex=true -- kill;jillmiles1 !!! (Default) !!!
- local AutoAdmin=true -- For those people wanting to get Place Visits make it true!
- local OldAnimations=false -- For people who like Old Animations better ;3
- local PersonalServer=false -- If you have a horrible lagging "personal server" enable this
- local AutoUpdate=true -- You get the point.
- local Player_Connected=true -- When a Player joins show there name to the server.
- local MusicList = {163740232,2303479,27697743,5986151,148939239,173125494} -- All your fav music's! :D
- -----------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------
- ------------[ Main Script DO NOT TOUCH ]---------------
- -------------------------------------------------------
- local GuiTweenTime=(0.3*2)
- local GuiTweening=('Out') -- !(In,Out,InOut)!
- local Work=game:GetService('Workspace')
- local Light=game:GetService('Lighting')
- local Players=game:GetService('Players')
- local Storage=game:GetService('ServerStorage')
- local ScriptStorage=game:GetService('ServerScriptService')
- local Main_Gui=game:GetService('StarterGui')
- local Main_Tools=game:GetService('StarterPack')
- local Teams=game:GetService('Teams') -- ( If there is teams )
- local GPass=game:GetService('GamePassService')
- local STeleport=game:GetService('TeleportService')
- local Market=game:GetService('MarketplaceService')
- local Gui_Cmds={}
- local Front_Admin_Prefix='';
- local Mid_Admin_Prefix='';
- local Back_Admin_Prefix='';
- -------------------------------------------------------------
- if OldAnimations then script['Animate']['Value']='Old' else script['Animate']['Value']='New' end
- script.Name=(string.reverse(']sdnammoC nimdA seliM['))
- wait()
- if not game:FindService('NetworkServer') then
- print('[MILES ADMIN COMMANDS] Network Server Could Not Get Connected')
- else
- print('[MILES ADMIN COMMANDS] Network Server Is Now Connected')
- end
- if not game:FindService('HttpService') then
- warn('[MILES ADMIN COMMANDS] HttpService Could Not Got Connected')
- else
- print('[MILES ADMIN COMMANDS] Checking Http Connect....')
- pcall(function()
- if loadstring(game:service'HttpService':GetAsync('http://pastebin.com/raw.php?i=LCB5pr7v',true))() then
- print('[MILES ADMIN COMMANDS] HttpService Got Connected')
- end
- end)
- end
- if AutoUpdate then
- local run,error = ypcall(function()
- if game:FindService('ServerStorage') and game.ServerStorage:findFirstChild('Miles_Strings') then
- for _,v in pairs(game.ServerStorage:findFirstChild('Miles_Strings'):GetChildren()) do
- if v.ClassName == 'StringValue' and v.Name == 'SOwners' then
- table.insert(Owners,v)
- elseif v.ClassName == 'StringValue' and v.Name == 'SAdmins' then
- table.insert(Admins,v)
- elseif v.ClassName == 'StringValue' and v.Name == 'SBanned' then
- table.insert(Banned,v)
- else
- Hint('Miles Admin Updater : Sting value error & Table.insert error! Message jillmiles for more info!')
- end
- end
- end
- local mod = game.InsertService:LoadAsset(186738978)
- if mod:findFirstChild(string.reverse(']sdnammoC nimdA seliM[')) and mod:findFirstChild('_Version') and AutoUpdate then
- local NS = tonumber(mod:findFirstChild(string.reverse(']sdnammoC nimdA seliM[')))
- NS.Disabled=true
- local NV = tonumber(mod:findFirstChild('_Version').Value)
- local OV = nil
- if NV and NS and OV then
- pcall(function() OV = tonumber(script:findFirstChild('_Version').Value) end)
- if OV < NV then
- local Folder = Instance.new('Folder',game.ServerStorage) Folder.Name = 'Miles_Strings'
- for _,a in pairs(Owners) do
- local String = Instance.new('StringValue',Folder) String.Name = 'SOwners' String.Value = a
- end
- for _,a in pairs(Admins) do
- local String = Instance.new('StringValue',Folder) String.Name = 'SAdmins' String.Value = a
- end
- for _,a in pairs(Banned) do
- local String = Instance.new('StringValue',Folder) String.Name = 'SBanned' String.Value = a
- end
- NS.Parent = game.ServerScriptService
- NS.Disabled = false
- script.Disabled = true
- script:remove()
- delay(10,function() Folder:remove() end)
- end
- end
- end
- end)
- if not run then Hint('Miles Admin Updater : '..error) end
- end
- GG=function()
- return((math.floor((collectgarbage("count")/10))*10)/1000)..' MegaBits'
- end
- RemoveSounds=function()
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v.ClassName=='Sound' then
- v:Pause()
- wait()
- v:remove()
- end
- end
- end
- NewSound=function(ID)
- local S=Instance.new('Sound',Work)
- S.Pitch=1
- S.Name=':// MILES_ADMIN_SOUND \\:'
- S.Volume=1
- S.Looped=true
- S.PlayOnRemove=false
- S.SoundId=('rbxassetid://'..ID)
- wait()
- S:Play()
- end
- Get_Return_Admin_Table=function(PLR)
- local K=0
- for _,v1 in pairs(Owners) do
- if v1:lower()==PLR['Name']:lower() then
- K=2
- end
- end
- for _,v1 in pairs(Admins) do
- if v1:lower()==PLR['Name']:lower() then
- K=1
- end
- end
- wait()
- return K
- end
- function CheckBanlist(Plr)
- for _,v in pairs(Banned) do
- if v==Plr.Name then
- Note(Plr,'You are banned, please do rejoin!'); wait(1)
- script['LocalSources']['Mute']:Clone().Parent=(Plr['PlayerGui']); wait()
- Plr['PlayerGui']['Mute']['Disabled']=false
- script['LocalSources']['Lag']:Clone().Parent=(Plr['PlayerGui']); wait()
- Plr['PlayerGui']['Lag']['Disabled']=false
- wait()
- pcall(function() Plr:Kick() end)
- end
- end
- end
- ReturnBan=function(Plr)
- pcall(function()
- table.insert(Banned,Plr.Name)
- CheckBanlist(Plr)
- end)
- end
- Check_Prefix=function()
- if not MakersSantex and KohlsSantex and not RyansSantex and not MilesSantex and not PersonsSantex then
- Front_Admin_Prefix=':'
- Mid_Admin_Prefix=''
- Back_Admin_Prefix=' '
- elseif not MakersSantex and not KohlsSantex and not RyansSantex and not MilesSantex and PersonsSantex then
- Front_Admin_Prefix=''
- Mid_Admin_Prefix='/'
- Back_Admin_Prefix='/'
- elseif not MakersSantex and not KohlsSantex and RyansSantex and not MilesSantex and not PersonsSantex then
- Front_Admin_Prefix='/'
- Mid_Admin_Prefix=' '
- Back_Admin_Prefix=' '
- elseif not MakersSantex and not KohlsSantex and not RyansSantex and MilesSantex and not PersonsSantex then
- Front_Admin_Prefix=''
- Mid_Admin_Prefix=';'
- Back_Admin_Prefix='-'
- elseif MakersSantex and not KohlsSantex and not RyansSantex and not MilesSantex and not PersonsSantex then
- Front_Admin_Prefix=';'
- Mid_Admin_Prefix=' '
- Back_Admin_Prefix=' '
- else
- Hint('[MILES ADMIN COMMANDS] A error with the Santex returned to MilesSantex=true')
- MilesSantex=true
- end
- end
- FindReturnPlayer=function(Plr,Msg)
- local ReturnedTable={}
- ypcall(function()
- if Msg:lower()=='me' or Msg=='' then
- table.insert(ReturnedTable,Plr)
- elseif Msg:lower()=='all' then
- coroutine.wrap(function()
- for _,v in pairs(game.Players:GetPlayers()) do
- table.insert(ReturnedTable,v)
- end
- end)()
- elseif Msg:lower()=='others' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.Name~=Plr.Name then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='friends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v:IsFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='bestfriends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v:IsBestFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='nonfriends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if not v:IsFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='nonbestfriends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if not v:IsBestFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='nbc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType == Enum.MembershipType.None then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='tbc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType == Enum.MembershipType.TurboBuildersClub then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='obc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='anybc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType==Enum.MembershipType.BuildersClub then
- elseif v.MembershipType==Enum.MembershipType.TurboBuildersClub then
- elseif v.MembershipType==Enum.MembershipType.OutrageousBuildersClub then
- table.insert(ReturnedTable,v)
- end
- end
- else
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():find(Msg) then
- table.insert(ReturnedTable,v)
- end
- end
- end
- end)
- wait()
- return ReturnedTable
- end
- function ShowRanked(Plr)
- if Plr:findFirstChild('PlayerGui') then
- local Frames={}
- local CurrentRanks={}
- for _,v in pairs(Owners) do table.insert(CurrentRanks,{Plr=v,Rank='Owner'}) end
- for _,v in pairs(Admins) do table.insert(CurrentRanks,{Plr=v,Rank='Admin'}) end
- for _,v in pairs(Banned) do table.insert(CurrentRanks,{Plr=v,Rank='Banned'}) end
- wait()
- coroutine.resume(coroutine.create(function()
- local Gui=Instance.new('ScreenGui',Plr.PlayerGui)
- local MF=Instance.new('Frame',Gui)
- MF.BorderSizePixel=0
- MF.Position=UDim2.new(.65,0,.2,0)
- MF.Size=UDim2.new(.3,0,.7,0)
- MF.Style='RobloxRound'
- local SF=Instance.new('ScrollingFrame',MF)
- SF.BorderSizePixel=0
- SF.Size=UDim2.new(1,0,1,0)
- SF.BackgroundTransparency=1
- SF.CanvasSize=UDim2.new(0,0,5,0)
- for _,v in pairs(CurrentRanks) do
- local MB=Instance.new('TextLabel',SF)
- MB.BackgroundTransparency=1
- MB.BorderSizePixel=0
- MB.Size=UDim2.new(.93,0,.01,0)
- MB.Font='ArialBold'
- MB.FontSize='Size14'
- MB.TextStrokeTransparency=0
- MB.TextStrokeColor3=Color3.new(255,255,255)
- MB.TextColor3=Color3.new(0,0,0)
- MB.Text=('Name: '..v.Plr..', Rank: '..v.Rank)
- MB.Position=UDim2.new(0,0,#Frames*0.01, 0)
- table.insert(Frames,{Frame=MB})
- end
- end))
- end
- end
- function ShowMusic(Plr,Msg)
- if Plr:findFirstChild('PlayerGui') then
- local Frames={}
- coroutine.resume(coroutine.create(function()
- local Gui=Instance.new('ScreenGui',Plr.PlayerGui)
- local MF=Instance.new('Frame',Gui)
- MF.BorderSizePixel=0
- MF.Position=UDim2.new(.65,0,.2,0)
- MF.Size=UDim2.new(.3,0,.7,0)
- MF.Style='DropShadow'
- local ID=Instance.new('TextBox',MF)
- ID.BorderSizePixel=0
- ID.Position=UDim2.new(0,0,.9,0)
- ID.Size=UDim2.new(.6,0,.1,0)
- ID.Font='SourceSans'
- ID.FontSize='Size14'
- if Msg==nil then
- ID.Text = 168763847
- else
- ID.Text = Msg
- end
- ID.TextColor3=Color3.new(255,255,255)
- ID.TextStrokeColor3=Color3.new(0,0,0)
- ID.TextStrokeTransparency=0
- local Pl=Instance.new('TextButton',MF)
- Pl.BackgroundTransparency=0
- Pl.BorderSizePixel=0
- Pl.Position=UDim2.new(.6,0,.9,0)
- Pl.Size=UDim2.new(.4,0,.1,0)
- Pl.Font='Arial'
- Pl.FontSize='Size14'
- Pl.Text='Play'
- Pl.TextColor3=Color3.new(255,255,255)
- Pl.TextStrokeColor3=Color3.new(0,0,0)
- Pl.TextStrokeTransparency=0
- local SF=Instance.new('ScrollingFrame',MF)
- SF.BorderSizePixel=0
- SF.Size=UDim2.new(1,0,.9,0)
- SF.BackgroundTransparency=1
- local Client = game:GetService("MarketplaceService")
- local SID = 0000000
- for _,v in pairs(MusicList) do
- local MB=Instance.new('TextButton',SF)
- MB.Size=UDim2.new(.9,0,.05,0)
- MB.Style='RobloxRoundDropdownButton'
- MB.Font='ArialBold'
- MB.FontSize='Size14'
- MB.Text=('Play : '..Client:GetProductInfo(v)['Name'])
- MB.Position=UDim2.new(0,0,#Frames*0.05, 0)
- table.insert(Frames,{Frame=MB})
- -------------------------------
- MB.MouseButton1Down:connect(function()
- Note(Plr,'Attemping To Play ['..tonumber(v)..']')
- pcall(function()
- SID = tonumber(v)
- ID.Text = SID
- RemoveSounds()
- wait(3)
- NewSound(tonumber(v))
- Hint('Playing '..Client:GetProductInfo(v)['Name']..'!')
- end)
- end)
- end
- Pl.MouseButton1Click:connect(function()
- pcall(function() SID = tonumber(ID.Text) end)
- Note(Plr,'Attemping To Play ['..SID..']')
- pcall(function()
- RemoveSounds()
- wait(3)
- NewSound(SID)
- Hint('Playing '..Client:GetProductInfo(SID)['Name']..'!')
- end)
- Gui:remove()
- end)
- end))
- end
- end
- function Note(Plr,Msg)
- if Plr:findFirstChild('PlayerGui') then
- coroutine.resume(coroutine.create(function()
- local Gui=Instance.new('ScreenGui',Plr.PlayerGui)
- local Frame=Instance.new('Frame',Gui)
- Frame.BackgroundTransparency=1
- Frame.BackgroundColor3=Color3.new(0,0,0)
- Frame.BorderSizePixel=0
- Frame.Size=UDim2.new(1,0,.05,0)
- Frame.Style='Custom'
- local Txt=Instance.new('TextLabel',Frame)
- Txt.BackgroundTransparency=1
- Txt.Size=UDim2.new(1,0,1,0)
- Txt.Font='ArialBold'
- Txt.FontSize='Size14'
- Txt.Text=':/ Miles Admin Commands \\: '..Msg
- Txt.TextColor3=Color3.new(85,255,255)
- Txt.TextScaled=false
- Txt.TextWrapped=true
- Txt.TextStrokeColor3=Color3.new(0,0,0)
- Txt.TextStrokeTransparency=1
- Txt.TextTransparency=1
- coroutine.resume(coroutine.create(function()
- for i=1,0,-.1 do
- Frame.BackgroundTransparency=i
- wait(.05)
- end
- for i=1,0,-.1 do
- Txt.TextTransparency=i
- wait(.05)
- end
- wait(3)
- for i=0,1,.1 do
- Txt.TextTransparency=i
- wait(.05)
- end
- for i=0,1,.1 do
- Frame.BackgroundTransparency=i
- wait(.05)
- end
- Gui:remove()
- end))
- end))
- end
- end
- function Hint(Msg)
- for _,v in pairs(game.Players:GetPlayers()) do
- if v:findFirstChild('PlayerGui') then
- coroutine.resume(coroutine.create(function()
- local Gui=Instance.new('ScreenGui',v.PlayerGui)
- local Frame=Instance.new('Frame',Gui)
- Frame.Position=UDim2.new(0,0,-1,0)
- Frame.Size=UDim2.new(1,0,.05,0)
- Frame.Style='RobloxRound'
- local S=Instance.new("Sound",Gui)
- S.Pitch=1
- S.Volume=.1
- S.Looped=false
- S.SoundId='rbxassetid://179235828'
- local Txt=Instance.new('TextLabel',Frame)
- Txt.BackgroundTransparency=1
- Txt.Size=UDim2.new(1,0,1,0)
- Txt.Font='ArialBold'
- Txt.FontSize='Size18'
- Txt.Text=''
- Txt.TextColor3=Color3.new(0,0,0)
- Txt.TextScaled=false
- Txt.TextStrokeColor3=Color3.new(255,255,255)
- Txt.TextStrokeTransparency=0
- Txt.TextTransparency=0
- Txt.TextWrapped=false
- coroutine.resume(coroutine.create(function()
- Frame:TweenPosition(UDim2.new(0,0,.01,0))
- delay(1,function()
- pcall(function()
- for v = 1, #Msg do
- S:Play()
- Txt.Text=string.sub(Msg,1,v)
- wait(.05)
- end;
- end)
- delay(3,function()
- for i=0,1,.1 do
- Txt.TextTransparency=i
- Txt.TextStrokeTransparency=i
- wait(.01)
- end
- S:Pause()
- wait(.1)
- Frame:TweenPosition(UDim2.new(0,0,-.1,0))
- wait(1)
- Gui:remove()
- end)
- end)
- end))
- end))
- end
- end
- end
- function Message(Msg)
- for _,v in pairs(game.Players:GetPlayers()) do
- if v:findFirstChild('PlayerGui') then
- coroutine.resume(coroutine.create(function()
- local Gui=Instance.new('ScreenGui',v.PlayerGui)
- local Frame=Instance.new('Frame',Gui)
- Frame.BackgroundColor3=Color3.new(67/255,67/255,67/255)
- Frame.BackgroundTransparency=1
- Frame.BorderSizePixel=0
- Frame.Position=UDim2.new(.25,0,.3,0)
- Frame.Size=UDim2.new(0,0,0,0)
- Frame.Style='Custom'
- Frame.Rotation=90
- local S=Instance.new("Sound",Gui)
- S.Pitch=1
- S.Volume=.1
- S.Looped=false
- S.SoundId='rbxassetid://179235828'
- local GName=Instance.new('TextLabel',Frame)
- GName.BackgroundTransparency=1
- GName.Size=UDim2.new(1,0,.1,0)
- GName.Font='ArialBold'
- GName.FontSize='Size14'
- GName.Text='Miles Admin Commands'
- GName.TextColor3=Color3.new(85,255,255)
- GName.TextScaled=false
- GName.TextWrapped=true
- GName.TextStrokeColor3=Color3.new(0,0,0)
- GName.TextStrokeTransparency=1
- GName.TextTransparency=1
- local Txt=Instance.new('TextLabel',Frame)
- Txt.BackgroundTransparency=1
- Txt.Size=UDim2.new(1,0,.9,0)
- Txt.Position=UDim2.new(0,0,.1,0)
- Txt.Font='ArialBold'
- Txt.FontSize='Size18'
- Txt.Text=''
- Txt.TextColor3=Color3.new(255,255,255)
- Txt.TextScaled=false
- Txt.TextWrapped=true
- Txt.TextStrokeColor3=Color3.new(0,0,0)
- Txt.TextStrokeTransparency=1
- Txt.TextTransparency=1
- Txt.TextXAlignment='Left'
- Txt.TextYAlignment='Top'
- coroutine.resume(coroutine.create(function()
- delay(wait(),function()
- while wait() do
- local Rot=0
- Rot=Rot+3.5
- if Frame.Rotation==0 then
- Rot=0
- break
- else
- Frame.Rotation=Frame.Rotation-1*5
- Frame.BackgroundTransparency=Frame.BackgroundTransparency-.03
- end
- end
- end)
- Frame:TweenSize(UDim2.new(.5,0,.45,0),"Out","Linear",1)
- for i = 1,0,-.1 do
- Txt.TextStrokeTransparency=i
- Txt.TextTransparency=i
- GName.TextStrokeTransparency=i
- GName.TextTransparency=i
- wait(.03)
- end
- pcall(function()
- for v = 1, #Msg do
- S:Play()
- Txt.Text=string.sub(Msg,1,v)
- wait(.02)
- end;
- end)
- wait(3)
- delay(wait(),function()
- for i = 0,1,.1 do
- Txt.TextStrokeTransparency=i
- Txt.TextTransparency=i
- GName.TextStrokeTransparency=i
- GName.TextTransparency=i
- wait(.03)
- end
- Frame:TweenSize(UDim2.new(0,0,0,0),"In","Linear",1)
- S:Pause()
- while wait() do
- local Rot=0
- Rot=Rot-3.5
- if Frame.Rotation==90 then
- Rot=0
- break
- else
- Frame.Rotation=Frame.Rotation+1*5
- Frame.BackgroundTransparency=Frame.BackgroundTransparency+.05
- end
- end
- end)
- end))
- end))
- end
- end
- end
- function ShowCmds(plr)
- if plr:findFirstChild('PlayerGui') then
- local CurrentGuis={}
- coroutine.resume(coroutine.create(function()
- local run,error = ypcall(function()
- local Gui=Instance.new('ScreenGui',plr.PlayerGui)
- local MF=Instance.new('Frame',Gui) MF.Position=UDim2.new(.2,0,.03,0) MF.BorderSizePixel=0 MF.Size=UDim2.new(.6,0,.9,0) MF.BackgroundTransparency=.5 MF.BackgroundColor3=Color3.new(67/255,67/255,67/255) --MF.Style='RobloxRound'
- local MC=Instance.new('Frame',MF) MC.Position=UDim2.new(-.117,0,-.01,0) MC.BorderSizePixel=0 MC.Size=UDim2.new(.1,0,.1,0) MC.BackgroundTransparency=1 MC.BackgroundColor3=Color3.new(67/255,67/255,67/255) --MC.Style='RobloxRound'
- local CT=Instance.new('ImageButton',MC) CT.BackgroundTransparency=1 CT.Image='rbxassetid://146849649' CT.Size=UDim2.new(1,0,1,0) CT.Style='Custom'
- CT.MouseEnter:connect(function() CT.Image='rbxassetid://146849670' end) CT.MouseLeave:connect(function() CT.Image='rbxassetid://146849649' end) CT.MouseButton1Click:connect(function() delay(wait(),function() while wait() do MF.Rotation=MF.Rotation+.5*3*math.pi end end) MF:TweenSize(UDim2.new(0,0,0,0),"In","Quad",1) delay(.95,function() Gui:remove() end) end)
- local SF=Instance.new('ScrollingFrame',MF) SF.BackgroundTransparency=1 SF.BorderSizePixel=0 SF.Size=UDim2.new(1,0,1,0) SF.ScrollBarThickness=20 SF.CanvasSize=UDim2.new(0,0,5,0)
- for _,v in pairs(Gui_Cmds) do
- if Get_Return_Admin_Table(plr)>=v.ALLOWED then
- local Txt=Instance.new('TextLabel',SF) Txt.BackgroundTransparency=1 Txt.Size=UDim2.new(.95,0,.01,0) Txt.Font='SourceSansBold' Txt.FontSize='Size18' Txt.Text=(Front_Admin_Prefix..v.CMD..Mid_Admin_Prefix..plr.Name) Txt.TextColor3=Color3.new(0,0,0) Txt.TextStrokeColor3=Color3.new(255,255,255) Txt.TextStrokeTransparency=0.3 Txt.TextXAlignment='Left'
- Txt.Position=UDim2.new(0,0,#CurrentGuis*0.01, 0)
- table.insert(CurrentGuis,{Gui_Cmd=Txt})
- end
- end
- end)
- if not run then print(error) end
- end))
- end
- end
- ---------------------------------------------------
- -----------------[ COMMANDS ]----------------------
- ---------------------------------------------------
- local Instance_CMD=function(CMD,ALLOWED,FUNCTION)
- if CMD==nil then CMD='Nil' else end
- table.insert(Gui_Cmds,{CMD=CMD,ALLOWED=ALLOWED,FUNCTION=FUNCTION})
- end
- Instance_CMD('Exe',1,function(Plr,Msg)
- pcall(function()
- script['Execute']['Val'].Value=(tostring(Msg))
- script['Execute']['Disabled']=false
- Note(Plr,'Executed Script!',(85/255/0))
- end)
- end)
- Instance_CMD('Ranked',0,function(Plr)
- ShowRanked(Plr)
- end)
- Instance_CMD('Smite',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,i in pairs(v.Character:children()) do
- if i:IsA'BasePart' then
- local Sparkles = Instance.new("Sparkles",i)
- Sparkles.Color = Color3.new(math.random(),math.random(),math.random())
- local Ex = Instance.new("Explosion",workspace)
- Ex.Position = i.Position
- Ex.BlastPressure = 1e105
- i:BreakJoints()
- i.Velocity = Vector3.new(math.random(-250,250),math.random(100,250),math.random(-250,250))
- coroutine.wrap(function()
- for b=1,5,0.5 do
- i.Size=Vector3.new(b,b,b)
- wait(0.01)
- end
- end)()
- end
- end
- local Base=Instance.new'Part'
- pcall(function()
- Base.Size=Vector3.new(5,1,3)
- Base.Color=Color3.new(BrickColor.new'Bright yellow')
- Base.Anchored=true
- Base.CFrame=CFrame.new(v.Character.Torso.CFrame.x,v.Character.Torso.CFrame.y - 6,v.Character.Torso.CFrame.z)
- coroutine.wrap(function()
- for i=0,1,0.1 do
- Base.Transparency=i
- wait()
- end
- Base:Destroy()
- end)()
- end)
- end
- end
- end)
- Instance_CMD('Nuke',2,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- local Position = v.Character.Torso.Position
- local Sound = Instance.new("Sound", workspace)
- Sound.SoundId = "http://www.roblox.com/Asset/?id=2101159"
- Sound.Volume = 1
- Sound.Pitch = math.random(90, 110) / 100
- Sound:Play()
- local Sound = Instance.new("Sound", workspace)
- Sound.SoundId = "http://www.roblox.com/Asset/?id=3087031"
- Sound.Volume = 1
- Sound.Pitch = math.random(90, 110) / 100
- Sound:Play()
- for i = 1, math.random(5, 7) do
- local ExplosionBall = Instance.new("Part", game:service("Workspace"))
- ExplosionBall.Name = "Explosion Ball"
- ExplosionBall.formFactor = "Custom"
- ExplosionBall.TopSurface = 0
- ExplosionBall.BottomSurface = 0
- ExplosionBall.Anchored = true
- ExplosionBall.CanCollide = false
- ExplosionBall.Size = Vector3.new(1, 1, 1)
- ExplosionBall.BrickColor = BrickColor.random()
- ExplosionBall.CFrame = CFrame.new(Position)
- ExplosionBall.Touched:connect(function(part) if part:IsDescendentOf(v.Character) then part:BreakJoints() end end)
- Instance.new("SpecialMesh", ExplosionBall).MeshType = "Sphere"
- coroutine.wrap(function()
- for i = 0, 1, 0.005 do
- ExplosionBall.Transparency = (1 - i)
- ExplosionBall.Mesh.Scale = Vector3.new(i * 250, i * 250, i * 250)
- ExplosionBall.CFrame = CFrame.new(Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * i))
- if math.random(1, 25) == 1 then
- local Explosion = Instance.new("Explosion")
- Explosion.Position = ExplosionBall.Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * i)
- Explosion.BlastPressure = 10000 * i
- Explosion.BlastRadius = i * 250
- Explosion.Parent = game:service("Workspace")
- end
- wait()
- end
- for i = 0, 1, 0.05 do
- ExplosionBall.Transparency = i
- ExplosionBall.CFrame = CFrame.new(Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * (1 - i)))
- wait()
- end
- ExplosionBall:Remove()
- end)()
- end
- end
- end
- end)
- Instance_CMD('Sdive',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- local vChar=v.Character;
- local vTorso=vChar.Torso;
- vTorso.CFrame=CFrame.new(vTorso.CFrame.X,9999,vTorso.CFrame.Z)
- wait()
- vTorso.CanCollide=false
- end
- end
- end)
- --[[
- local sep = Msg:find(Back_Admin_Prefix)
- local plr = Msg:sub(1,tonumber(sep)-1)
- local msg = Msg:sub(tonumber(sep)+1)
- for _,i in pairs(FindReturnPlayer(Plr,plr)) do
- local X = 0
- local Y = 0
- local Z = 0
- X=i.Character.Torso.Position.X
- Y=i.Character.Torso.Position.Y
- Z=i.Character.Torso.Position.Z
- if i then
- i.Character:MoveTo(Vector3.new(X,Y,Z))
- end
- end]]
- Instance_CMD('Tp',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- local X = 0
- local Y = 0
- local Z = 0
- X=Plr.Character.Torso.Position.X
- Y=Plr.Character.Torso.Position.Y
- Z=Plr.Character.Torso.Position.Z
- if v then
- v['Character']:MoveTo(Vector3.new(X,Y,Z))
- end
- end
- end)
- Instance_CMD('Disco',1,function(Plr,Msg)
- if Msg:lower()=='on' then
- script['_G.Disco']['Value']='_G'
- else
- if Msg:lower()=='off' then
- script['_G.Disco']['Value']='_E'
- else
- Note(Plr,'Please use On/Off to toggle the disco!',(85/255/0))
- end
- end
- end)
- Instance_CMD('M' or 'Message',1,function(Plr,Msg)
- Message(Plr.Name..' : '..tostring(Msg))
- end)
- Instance_CMD('H' or 'Hint',1,function(Plr,Msg)
- for _,v in pairs(game['Players']:GetPlayers()) do
- coroutine.wrap(function()
- Hint(Plr.Name..' : '..tostring(Msg))
- end)()
- end
- end)
- Instance_CMD('Sm',1,function(Plr,Msg)
- for _,v in pairs(game['Players']:GetPlayers()) do
- coroutine.wrap(function()
- Note(v,tostring(Msg))
- end)()
- end
- end)
- Instance_CMD('Nosounds',1,function(Plr)
- RemoveSounds()
- end)
- Instance_CMD('Rejoin',0,function(Plr)
- local Pl=game['PlaceId']
- wait()
- pcall(function()
- STeleport:Teleport(Pl,Plr)
- end)
- end)
- Instance_CMD('Musiclist',1,function(Plr,Msg)
- ShowMusic(Plr,Msg)
- end)
- Instance_CMD('Cmds',0,function(Plr)
- ShowCmds(Plr)
- end)
- Instance_CMD('CChat',1,function(Plr)
- GChat(Plr)
- end)
- Instance_CMD('Noguis',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v['PlayerGui']:ClearAllChildren()
- end
- end
- end)
- Instance_CMD('Notools',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v['Backpack']:ClearAllChildren()
- end
- end
- end)
- Instance_CMD('Ping',0,function(Plr)
- Note(Plr,GG(),(85/255/0))
- end)
- Instance_CMD('Nteams',1,function(Plr)
- for _,v in pairs(game.Teams:GetChildren()) do
- v:remove()
- end
- Note(Plr,'Removed teams!',(85/255/0))
- end)
- Instance_CMD('ATeam',1,function(Plr,Msg)
- local p=Instance.new('Team',Teams)
- p.Name=(tostring(Msg))
- p.TeamColor=BrickColor.Random()
- Plr.TeamColor=p['TeamColor']
- Plr.Neutral=false
- end)
- Instance_CMD('CTeam',1,function(Plr,Msg)
- local sep = Msg:find(Back_Admin_Prefix)
- local plr = Msg:sub(1,tonumber(sep)-1)
- local msg = Msg:sub(tonumber(sep)+1)
- for _,v in pairs(game:GetService('Teams'):GetChildren()) do
- if v.ClassName=='Team' then
- if string.lower(v.Name)==msg or string.upper(v.Name)==msg then
- for _,i in pairs(FindReturnPlayer(Plr,plr)) do
- i.TeamColor=v.TeamColor
- end
- end
- end
- end
- end)
- Instance_CMD('Rich',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13416513"
- v:LoadCharacter()
- end
- end
- end)
- Instance_CMD('Guest',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
- v:LoadCharacter()
- end
- end
- end)
- Instance_CMD('Shiny',1,function(Plr,Msg)
- local sep = Msg:find(Back_Admin_Prefix)
- local plr = Msg:sub(1,tonumber(sep)-1)
- local msg = Msg:sub(tonumber(sep)+1)
- for _,v in pairs(FindReturnPlayer(Plr,plr)) do
- for _,i in pairs(v.Character:GetChildren()) do
- if i.ClassName=='Part' then
- i.Reflectance=0.5
- end
- end
- end
- end)
- Instance_CMD('Clean',0,function(Plr,Msg)
- for _,v in pairs(workspace:GetChildren()) do
- if v.ClassName==("Hat") or v.ClassName==("Tool") then
- v:remove()
- end
- end
- end)
- Instance_CMD('Headsize',1,function(Plr,Msg)
- local sep = Msg:find(Back_Admin_Prefix)
- local plr = Msg:sub(1,tonumber(sep)-1)
- local msg = Msg:sub(tonumber(sep)+1)
- for _,v in pairs(FindReturnPlayer(Plr,plr)) do
- v.Character.Head.Mesh.Scale = Vector3.new(msg/100,msg/100,msg/100)
- end
- end)
- Instance_CMD('SBKeys',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- if v.Character:FindFirstChild("Humanoid") ~= nil then
- v.Character.Humanoid.WalkSpeed = -16
- end
- end
- end
- end)
- end)
- Instance_CMD('SFKeys',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- if v.Character:FindFirstChild("Humanoid") ~= nil then
- v.Character.Humanoid.WalkSpeed = 16
- end
- end
- end
- end)
- end)
- Instance_CMD('Stealtools',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,i in pairs(v.Backpack:GetChildren()) do
- i:Clone().Parent=Plr.Backpack
- end
- end
- end
- end)
- end)
- Instance_CMD('CmdBar',2,function(Plr)
- CmdBar(Plr)
- end)
- Instance_CMD('Shutdown',2,function(Plr,Msg)
- Message('Game shuting down..')
- wait(3)
- for _,v in pairs(game.Players:GetPlayers()) do
- v:Kick()
- end
- end)
- Instance_CMD('Fly',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources']['Fly']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Fly']['Disabled']=false
- end
- end
- end)
- end)
- Instance_CMD('Tail',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources']['Tail']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Tail']['Disabled']=false
- end
- end
- end)
- end)
- Instance_CMD('Tank',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources']['Tank']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Tank']['Disabled']=false
- end
- end
- end)
- end)
- Instance_CMD('Noclip',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources']['Noclip']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Noclip']['Disabled']=false
- end
- end
- end)
- end)
- Instance_CMD('Fun',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources'][';P Script']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui'][';P Script']['Disabled']=false
- end
- end
- end)
- end)
- Instance_CMD('Gn',0,function(Plr)
- pcall(function()
- script['LocalSources']['GNil']:Clone().Parent=(Plr['PlayerGui']) wait()
- Plr['PlayerGui']['GNil']['Disabled']=false
- end)
- end)
- Instance_CMD('Char',0,function(Plr,Msg)
- Plr.CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId='..tonumber(Msg)..'&placeId='..game.PlaceId
- wait()
- Plr:LoadCharacter()
- end)
- Instance_CMD('Unchar',0,function(Plr,Msg)
- Plr.CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId='..Plr.userId..'&placeId='..game.PlaceId
- wait()
- Plr:LoadCharacter()
- end)
- Instance_CMD('Music',1,function(Plr,Msg)
- if PersonalServer then
- Note(Plr,'Please set PersonalServer to false to use this command!',(28/7/2))
- elseif not game:FindService('HttpService') then
- Note(Plr,'This GUI Will Not Work Due To HTTP Not Existing Or Not Enabled',(28/7/2))
- else
- local Ser=game:FindService('HttpService')
- local KeyWords=Ser:UrlEncode(tostring(Msg))
- local Url='http://roproxy.tk/catalog/json?Keyword='..KeyWords..'&Category=9&ResultsPerPage=25'
- local Assets=game:service'HttpService':JSONDecode(Ser:GetAsync(Url))
- local PGui=game.Players[Plr.Name]['PlayerGui']
- local PInstance={}
- local Gui=Instance.new('ScreenGui',PGui)
- Gui.Name='PL_Gui'
- local Frame=Instance.new('ScrollingFrame',Gui)
- Frame.BackgroundTransparency=0.5
- Frame.Position=UDim2.new(0.6,0,0.1,0)
- Frame.Size=UDim2.new(0.3,0,0.5,0)
- Frame.ClipsDescendants=true
- Frame.Draggable=true
- Frame.Position=UDim2.new(0.6,0,-1,0)
- Frame.ScrollBarThickness=20
- Frame:TweenPosition(UDim2.new(0.6,0,0.1,0),GuiTweening,'Quad',0.1*3,false)
- for _,v in pairs(Assets) do
- local Text=Instance.new('TextButton',Frame)
- Text.Style='RobloxRoundDropdownButton'
- Text.Font='SourceSans'
- Text.Size=UDim2.new(0.9,0,0.03,0)
- Text.FontSize='Size14'
- Text.Text=('Play '..v.Name..'?')
- Text:TweenPosition(UDim2.new(0,0,#PInstance*0.03, 0),GuiTweening,'Quad',GuiTweenTime,false)
- table.insert(PInstance,{Text=Text})
- Text.MouseButton1Click:connect(function()
- Note(Plr,'Attemping To Play ['..v.AssetId..']')
- Frame:TweenPosition(UDim2.new(0.6,0,-1,0),GuiTweening,'Quad',0.1*3,false)
- pcall(function()
- RemoveSounds()
- wait(3)
- NewSound(tonumber(v.AssetId))
- Hint('Playing '..v.Name..'!')
- end)
- wait()
- Gui:remove()
- end)
- end
- end
- end)
- Instance_CMD('Mute',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources']['Mute']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Mute']['Disabled']=false
- Note(Plr,Plr.Name..' muted '..v.Name..'!')
- end
- end
- end)
- end)
- Instance_CMD('Unmute',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources']['Unmute']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Unmute']['Disabled']=false
- end
- end
- end)
- end)
- Instance_CMD('Dark',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- script['LocalSources']['EChar']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['EChar']['Disabled']=false
- end
- end
- end)
- end)
- Instance_CMD('Explode',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- local e=Instance.new("Explosion",workspace)
- e.Position = v.Character.Torso.Position
- end
- end
- end)
- Instance_CMD('Time',1,function(Plr,Msg)
- game.Lighting.TimeOfDay=tonumber(Msg)
- end)
- Instance_CMD('Thaw',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v.Character.Torso.Anchored=false
- end
- end
- end)
- Instance_CMD('Invisible',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- p.Transparency=1
- elseif p.ClassName=='Hat' then
- p:remove()
- end
- end
- end
- end
- end)
- Instance_CMD('Visible',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- p.Transparency=0
- pcall(function() p.HumanoidRootPart.Transparency=1 end)
- end
- end
- end
- end
- end)
- Instance_CMD('Unfire',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- for _,i in pairs(p:GetChildren()) do
- if i.ClassName=='Fire' then
- i:remove()
- end
- end
- end
- end
- end
- end
- end)
- Instance_CMD('Fire',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- local f=Instance.new('Fire',p)
- end
- end
- end
- end
- end)
- Instance_CMD('Unsparkles',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- for _,i in pairs(p:GetChildren()) do
- if i.ClassName=='Sparkles' then
- i:remove()
- end
- end
- end
- end
- end
- end
- end)
- Instance_CMD('Unsmoke',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- for _,i in pairs(p:GetChildren()) do
- if i.ClassName=='Smoke' then
- i:remove()
- end
- end
- end
- end
- end
- end
- end)
- Instance_CMD('Sparkles',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- local f=Instance.new('Sparkles',p)
- end
- end
- end
- end
- end)
- Instance_CMD('Smoke',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='Part' then
- local f=Instance.new('Smoke',p)
- end
- end
- end
- end
- end)
- Instance_CMD('Gear',1,function(Plr,Msg)
- local x = game:GetService("InsertService"):LoadAsset(Msg) x.Parent = workspace x:makeJoints() x:MoveTo(Plr.Character.Head.Position)
- end)
- Instance_CMD('Freeze',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v.Character.Torso.Anchored=true -- You arnt moving now ;3
- end
- end
- end)
- Instance_CMD('Removelimbs',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- v['Character']['Right Arm']:remove()
- v['Character']['Right Leg']:remove()
- v['Character']['Left Arm']:remove()
- v['Character']['Left Leg']:remove()
- end)
- end
- end
- end)
- Instance_CMD('Unstun',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v['Character']['Humanoid']['PlatformStand']=false
- end
- end
- end)
- end)
- Instance_CMD('Stun',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v['Character']['Humanoid']['PlatformStand']=true
- end
- end
- end)
- end)
- Instance_CMD('Jump',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v['Character']['Humanoid']['Jump']=true
- end
- end
- end)
- end)
- Instance_CMD('Sit',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v['Character']['Humanoid']['Sit']=true
- end
- end
- end)
- end)
- Instance_CMD('Kick',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- v:Kick()
- Hint(Plr,'Kicked '..Msg,(85/255/0))
- end
- end
- end)
- end)
- Instance_CMD('Ban',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- ReturnBan(v)
- v:Kick()
- Message(Plr,'Banned '..Msg,(85/255/0))
- end)
- end
- end
- end)
- end)
- Instance_CMD('MBan',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- ReturnBan(v)
- v:Kick()
- Message(Plr,'Mute-Banned '..Msg,(85/255/0))
- end)
- end
- end
- end)
- end)
- Instance_CMD('Admin',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- table.insert(Admins,v.Name)
- Note(v,'Your Now A Admin!',(85/255/0))
- end)
- end
- end
- end)
- end)
- Instance_CMD('Owner',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- table.insert(Owners,v.Name)
- Note(v,'Your Now A Owner!',(85/255/0))
- end)
- end
- end
- end)
- end)
- Instance_CMD('Damage',1,function(Plr,Msg)
- local sep = Msg:find(Back_Admin_Prefix)
- local plr = Msg:sub(1,tonumber(sep)-1)
- local msg = Msg:sub(tonumber(sep)+1)
- for _,v in pairs(FindReturnPlayer(Plr,plr)) do
- v.Character:findFirstChild('Humanoid'):TakeDamage(msg)
- end
- end)
- Instance_CMD('Ragdoll',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- if v.Character:findFirstChild('Humanoid') then
- v.Character.Humanoid:remove()
- end
- end
- end
- end)
- end)
- Instance_CMD('Age',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- Note(Plr,v.Name..'\'s Age Is '..v.AccountAge,(85/255/0))
- end)
- end
- end
- end)
- end)
- Instance_CMD('Userid',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- Note(Plr,v.Name..'\'s UserId Is '..v.userId,(85/255/0))
- end)
- end
- end
- end)
- end)
- Instance_CMD('Lag',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- script['LocalSources']['Mute']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Mute']['Disabled']=false
- script['LocalSources']['Lag']:Clone().Parent=(v['PlayerGui']) wait()
- v['PlayerGui']['Lag']['Disabled']=false
- end)
- end
- end
- end)
- end)
- Instance_CMD('Kill',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- v['Character']:BreakJoints()
- end)
- end
- end
- end)
- end)
- Instance_CMD('Rs',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- v:LoadCharacter()
- end)
- end
- end
- end)
- end)
- Instance_CMD('Speed',1,function(Plr,Msg)
- local sep = Msg:find(Back_Admin_Prefix)
- local plr = Msg:sub(1,tonumber(sep)-1)
- local msg = Msg:sub(tonumber(sep)+1)
- for _,v in pairs(FindReturnPlayer(Plr,plr)) do
- v.Character:findFirstChild('Humanoid').WalkSpeed = msg
- end
- end)
- Instance_CMD('God',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- v['Character']['Humanoid']['MaxHealth']=math.huge
- end)
- end
- end
- end)
- end)
- Instance_CMD('Ungod',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- v['Character']['Humanoid']['Health']=100
- v['Character']['Humanoid']['MaxHealth']=100
- end)
- end
- end
- end)
- end)
- Instance_CMD('Loopheal',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- loadstring('while wait() do game.Players.'..v.Name..'.Character.Humaniod.Health=100 end')()
- end)
- end
- end
- end)
- end)
- Instance_CMD('FF',1,function(Plr,Msg)
- pcall(function()
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- pcall(function()
- local ForceField=Instance.new('ForceField',v['Character'])
- end)
- end
- end
- end)
- end)
- Instance_CMD('Unff',1,function(Plr,Msg)
- for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
- if v then
- for _,p in pairs(v.Character:GetChildren()) do
- if p.ClassName=='ForceField' then
- p:remove()
- end
- end
- end
- end
- end)
- Instance_CMD('Place',2,function(Plr,Msg)
- local sep = Msg:find(Back_Admin_Prefix)
- local plr = Msg:sub(1,tonumber(sep)-1)
- local msg = Msg:sub(tonumber(sep)+1)
- for _,v in pairs(FindReturnPlayer(Plr,plr)) do
- local a1,a2=ypcall(function()
- STeleport:Teleport(tonumber(msg),v)
- end)
- if not a1 then Note(v,'[Miles Teleport Error] : '..a2) end
- end
- end)
- local SERVER_LOCKED=false
- Instance_CMD('Slock',2,function(Plr,Msg)
- if not SERVER_LOCKED then
- SERVER_LOCKED=true
- Message('Server is now locked!')
- else
- SERVER_LOCKED=false
- Message('Server is now unlocked!')
- end
- end)
- ---
- CmdBar=function(Plr)
- local PGui=game.Players[Plr.Name]['PlayerGui']
- local Gui=Instance.new('ScreenGui',PGui)
- Gui.Name='Cmd_Bar'
- local Frame=Instance.new('Frame',Gui)
- Frame.Position=UDim2.new(0.6,0,0.9,0)
- Frame.Size=UDim2.new(0.3,0,0.1,0)
- Frame.Style='RobloxRound'
- Frame.ClipsDescendants=true
- Frame.Draggable=true
- local Type=Instance.new('TextBox',Frame)
- Type.BackgroundTransparency=1
- Type.MultiLine=true
- Type.Position=UDim2.new(0.3,0,0,0)
- Type.Size=UDim2.new(0.7,0,1,0)
- Type.Font='SourceSans'
- Type.FontSize='Size18'
- Type.Text='Type Here'
- Type.TextColor3=Color3.new(0,0,255)
- local Sub=Instance.new('TextButton',Frame)
- Sub.Size=UDim2.new(0.25,0,1,0)
- Sub.Style='RobloxButton'
- Sub.Font='SourceSans'
- Sub.FontSize='Size18'
- Sub.Text='Submit'
- Sub.TextColor3=Color3.new(85,255,0)
- Sub.MouseButton1Down:connect(function()
- if Type.Text=='Type Here' or Type.Text=='' then
- Note(Plr,'Please Put A Valid Command!',(85/255/0))
- else
- GETCHATTED(Plr,Type.Text)
- end
- end)
- Sub.TouchTap:connect(function()
- if Type.Text=='Type Here' or Type.Text=='' then
- Note(Plr,'Please Put A Valid Command!',(85/255/0))
- else
- GETCHATTED(Plr,Type.Text)
- end
- end)
- end
- Check_Gamepass=function(Plr)
- if GPass:PlayerHasPass(Plr,GamePassID) then
- table.insert(Admins,Plr.Name)
- Note(Plr,'You Have Been Admined Due To Gamepass!',(255/85/7))
- end
- end
- Check_Group=function(Plr)
- if Plr:IsInGroup(GroupID) then
- if Plr:GetRankInGroup(GroupID)>=GroupAdminsRank then
- table.insert(Admins,Plr.Name)
- Note(Plr,'You Have Been Admined Due To Group!',(255/85/7))
- end
- end
- end
- --------------------------------------------------
- -----------------[ Chat Gui ]---------------------
- --------------------------------------------------
- GChat=function(Plr)
- local GuiInstancing={}
- local Gui=Instance.new('ScreenGui',game.Players[Plr.Name]['PlayerGui'])
- local Frame=Instance.new('Frame',Gui)
- Frame.Position=UDim2.new(0.7,0,0.7,0)
- Frame.Size=UDim2.new(0.3,0,0.2,0)
- Frame.Style='DropShadow'
- local Text=Instance.new('TextLabel',Frame)
- Text.BackgroundTransparency=1
- Text.Size=UDim2.new(1,0,1,0)
- Text.Font='Arial'
- Text.FontSize='Size14'
- if Text.Text=='Label' then Text.Text='[Content Deleted]' else Text.Text=(tostring(msg)) end
- Text.TextColor3=Color3.new(0,0,255)
- Text.TextScaled=true
- Text.TextStrokeTransparency=0
- game.Players.PlayerAdded:connect(function(I)
- I.Chatted:connect(function(Msg)
- if Msg=='Label' then Text.Text='[Content Deleted]' else Text.Text=(I.Name..' : '..tostring(Msg)) end
- end)
- end)
- for _,I in pairs(game.Players:GetPlayers()) do
- I.Chatted:connect(function(Msg)
- if Msg=='Label' then Text.Text='[Content Deleted]' else Text.Text=(I.Name..' : '..tostring(Msg)) end
- end)
- end
- end
- script.Parent=(ScriptStorage)
- GETCHATTED = function(PLR,Msg)
- Check_Prefix()
- if Msg and Msg:sub(1,1) == ":" and not KohlsSantex then
- Note(PLR,'The command bet is '..Front_Admin_Prefix..'speed'..Mid_Admin_Prefix..PLR.Name..Back_Admin_Prefix..'50')
- end
- local crun,cerror = ypcall(function()
- for _,DATA in pairs(Gui_Cmds) do
- if Msg:sub(1,#(Front_Admin_Prefix..DATA['CMD']:lower()..Mid_Admin_Prefix))==(Front_Admin_Prefix..DATA['CMD']:lower()..Mid_Admin_Prefix) and Get_Return_Admin_Table(PLR)>=DATA['ALLOWED'] then
- Msg = Msg:sub(#Front_Admin_Prefix+#DATA.CMD+#Back_Admin_Prefix+1)
- DATA.FUNCTION(PLR,Msg)
- end
- end
- end)
- if not crun then Note(PLR,'ERROR : '..cerror) end
- end
- wait()
- game.Players.PlayerAdded:connect(function(I_PLR)
- wait(2.5)
- Check_Group(I_PLR)
- Check_Gamepass(I_PLR)
- CheckBanlist(I_PLR)
- Note(I_PLR,'This Server Is Using Miles_Admin_Command\'s!',(85/255/0))
- if AutoAdmin==true then table.insert(Owners,I_PLR.Name) Note(I_PLR,'Your A Owner!',(255/0/0)) else end
- if game.CreatorId==I_PLR.userId then
- table.insert(Owners,I_PLR.Name)
- Note(I_PLR,'Your the game owner so you are automaticly Owner!',(255/0/0))
- end
- end)
- game.Players.PlayerAdded:connect(function(Plr)
- if not SERVER_LOCKED then
- local A = true
- for _,v in pairs(Banned) do
- if Plr.Name == v then
- A=false
- else
- A=true
- end
- end
- if A then
- Hint(Plr.Name..' enter server,Age : '..Plr.AccountAge..' ,UserID : '..Plr.userId)
- else
- Hint(Plr.Name..' enter server, But got kicked for ban!')
- pcall(function() Plr:Kick() end)
- end
- else
- pcall(function() Plr:Kick() end)
- Hint(Plr.Name..' enter server, But got kicked for private server!')
- end
- Plr.Chatted:connect(function(Msg)
- GETCHATTED(Plr,Msg)
- end)
- end)
- for _,I_PLR in pairs(game.Players:GetPlayers()) do
- wait(2.5)
- Check_Group(I_PLR)
- Check_Gamepass(I_PLR)
- CheckBanlist(I_PLR)
- if game.CreatorId==I_PLR.userId then
- table.insert(Owners,I_PLR.Name)
- Note(I_PLR,'You are automaticly Owner due to being game\'s owner!',(255/0/0))
- end
- I_PLR.Chatted:connect(function(Msg)
- GETCHATTED(I_PLR,Msg)
- end)
- end
- game.Close:connect(function() script.Parent=(Work) end)
- end)
- if not MRun then print('[ MILES ADMIN COMMANDS ] : ERROR ' ..MError) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement