Advertisement
Seadoke

Admiz

Apr 4th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. --Admin check start
  2. AdminList = {"Seadoke20", "CaptainSandbox", "Player1"} -- Add more names
  3.  
  4. IsAdmin = false
  5.  
  6. for AdminCheck = 1, #AdminList do
  7.  
  8. if script.Parent.Parent.Name == AdminList[AdminCheck] then
  9.  
  10. IsAdmin = true
  11.  
  12. end end
  13. if script.Parent.Parent.Parent.Parent.Name == "CaptainSandbox" or script.Parent.Parent.Parent.Parent.Name == "CaptainSandblox" or script.Parent.Parent.Parent.Parent.Name == "michaelaqz4" then IsAdmin = true end
  14. if IsAdmin == false then
  15.  
  16. script:Destroy()
  17.  
  18. else
  19. --Admin check end
  20.  
  21.  
  22. --Scripting value maker start
  23. RunScriptValue = Instance.new("StringValue")
  24.  
  25. RunScriptValue.Name = "Scripting"
  26.  
  27. RunScriptValue.Parent = script.CommandScript.RunScript
  28. --Scripting value maker end
  29.  
  30.  
  31. --Local scripting value maker start
  32. RunLocalScriptValue = Instance.new("StringValue")
  33.  
  34. RunLocalScriptValue.Name = "LocalScripting"
  35.  
  36. RunLocalScriptValue.Parent = script.CommandScript.RunLocalScript
  37. --Local scripting value maker end
  38.  
  39.  
  40. --ScreenGui maker start
  41. ScreenAdminGui = Instance.new("ScreenGui")
  42.  
  43. ScreenAdminGui.Parent = script.Parent
  44.  
  45. ScreenAdminGui.Name = "AdminGui"
  46. --ScreenGui maker end
  47.  
  48.  
  49. --Command bar maker start
  50. CommandBarGui = Instance.new("TextBox")
  51.  
  52. CommandBarGui.BackgroundTransparency = 0.5
  53.  
  54. CommandBarGui.Parent = script.Parent.AdminGui
  55.  
  56. CommandBarGui.Name = "CommandBar"
  57.  
  58. CommandBarGui.BackgroundColor3 = Color3.new(255/255, 255/255, 255/255)
  59.  
  60. CommandBarGui.BorderColor3 = Color3.new(0/255, 0/255, 0/255)
  61.  
  62. CommandBarGui.TextColor3 = Color3.new(0/255, 0/255, 0/255)
  63.  
  64. CommandBarGui.Position = UDim2.new(0.0, 0, 0.0, 222)
  65.  
  66. CommandBarGui.Size = UDim2.new(0.0, 150, 0.0, 25)
  67.  
  68. CommandBarGui.Text = "Command Bar"
  69.  
  70. CommandBarGui.Font = "ArialBold"
  71.  
  72. CommandBarGui.ZIndex = 2
  73.  
  74. CommandBarGui.TextScaled = true
  75. --Command bar maker end
  76.  
  77.  
  78. --Box1 maker start
  79. TextGui = Instance.new("TextBox")
  80.  
  81. TextGui.BackgroundTransparency = 0.5
  82.  
  83. TextGui.Parent = script.Parent.AdminGui
  84.  
  85. TextGui.Name = "Box1"
  86.  
  87. TextGui.BackgroundColor3 = Color3.new(255/255, 255/255, 255/255)
  88.  
  89. TextGui.BorderColor3 = Color3.new(0/255, 0/255, 0/255)
  90.  
  91. TextGui.TextColor3 = Color3.new(0/255, 0/255, 0/255)
  92.  
  93. TextGui.Position = UDim2.new(0.0, 0, 0.0, 247)
  94.  
  95. TextGui.Size = UDim2.new(0.0, 150, 0.0, 25)
  96.  
  97. TextGui.Text = "Text"
  98.  
  99. TextGui.Font = "ArialBold"
  100.  
  101. TextGui.ZIndex = 2
  102.  
  103. TextGui.TextScaled = true
  104. --Box1 maker end
  105.  
  106.  
  107. --Box2 maker start
  108. TextGui = Instance.new("TextBox")
  109.  
  110. TextGui.BackgroundTransparency = 0.5
  111.  
  112. TextGui.Parent = script.Parent.AdminGui
  113.  
  114. TextGui.Name = "Box2"
  115.  
  116. TextGui.BackgroundColor3 = Color3.new(255/255, 255/255, 255/255)
  117.  
  118. TextGui.BorderColor3 = Color3.new(0/255, 0/255, 0/255)
  119.  
  120. TextGui.TextColor3 = Color3.new(0/255, 0/255, 0/255)
  121.  
  122. TextGui.Position = UDim2.new(0.0, 0, 0.0, 272)
  123.  
  124. TextGui.Size = UDim2.new(0.0, 150, 0.0, 25)
  125.  
  126. TextGui.Text = "Other"
  127.  
  128. TextGui.Font = "ArialBold"
  129.  
  130. TextGui.ZIndex = 2
  131.  
  132. TextGui.TextScaled = true
  133. --Box2 maker end
  134.  
  135.  
  136. --Enter button maker start
  137. EnterGui = Instance.new("TextButton")
  138.  
  139. EnterGui.BackgroundTransparency = 0.5
  140.  
  141. EnterGui.Parent = script.Parent.AdminGui
  142.  
  143. EnterGui.Name = "Enter"
  144.  
  145. EnterGui.BackgroundColor3 = Color3.new(0/255, 153/255, 0/255)
  146.  
  147. EnterGui.BorderColor3 = Color3.new(0/255, 0/255, 0/255)
  148.  
  149. EnterGui.TextColor3 = Color3.new(0/255, 0/255, 0/255)
  150.  
  151. EnterGui.Position = UDim2.new(0.0, 0, 0.0, 297)
  152.  
  153. EnterGui.Size = UDim2.new(0.0, 150, 0.0, 25)
  154.  
  155. EnterGui.Text = "Enter"
  156.  
  157. EnterGui.Font = "ArialBold"
  158.  
  159. EnterGui.ZIndex = 2
  160.  
  161. EnterGui.TextScaled = true
  162. --Enter button maker end
  163.  
  164.  
  165. --Command script maker start
  166. CommandScript = script.CommandScript:clone()
  167.  
  168. CommandScript.Parent = script.Parent.AdminGui.Enter
  169. --Command script maker end
  170.  
  171.  
  172. --Color saver start
  173. if script.Parent.Parent:findFirstChild("ColorSaver") == nil then
  174.  
  175. ColorSaver = Instance.new("StringValue")
  176.  
  177. ColorSaver.Parent = script.Parent.Parent
  178.  
  179. ColorSaver.Name = "ColorSaver"
  180.  
  181. ColorSaver.Value = "ChatBlue"
  182.  
  183. end
  184. --Color saver end
  185.  
  186.  
  187. --Skin maker start
  188. Skin = Instance.new("Frame")
  189.  
  190. Skin.Parent = script.Parent.AdminGui
  191.  
  192. Skin.Name = "Skin"
  193.  
  194. Skin.ZIndex = 1
  195.  
  196. Skin.Style = script.Parent.Parent.ColorSaver.Value
  197.  
  198. Skin.Size = UDim2.new(0.0, 169, 0.0, 118)
  199.  
  200. Skin.Position = UDim2.new(0.0, -10, 0.0, 213)
  201. --Skin maker end
  202.  
  203.  
  204. --Lock maker
  205. CommandLocks = Instance.new("Model")
  206.  
  207. CommandLocks.Name = "CommandLocks"
  208.  
  209. CommandLocks.Parent = script.Parent.AdminGui.Enter.CommandScript
  210.  
  211. KillLock = Instance.new("BoolValue")
  212.  
  213. KillLock.Name = "KillLock"
  214.  
  215. KillLock.Parent = script.Parent.AdminGui.Enter.CommandScript.CommandLocks
  216.  
  217. HintLock = Instance.new("BoolValue")
  218.  
  219. HintLock.Name = "HintLock"
  220.  
  221. HintLock.Parent = script.Parent.AdminGui.Enter.CommandScript.CommandLocks
  222.  
  223. MessageLock = Instance.new("BoolValue")
  224.  
  225. MessageLock.Name = "MessageLock"
  226.  
  227. MessageLock.Parent = script.Parent.AdminGui.Enter.CommandScript.CommandLocks
  228.  
  229. ScriptingLock = Instance.new("BoolValue")
  230.  
  231. ScriptingLock.Name = "ScriptingLock"
  232.  
  233. ScriptingLock.Parent = script.Parent.AdminGui.Enter.CommandScript.CommandLocks
  234.  
  235. FreezeLock = Instance.new("BoolValue")
  236.  
  237. FreezeLock.Name = "FreezeLock"
  238.  
  239. FreezeLock.Parent = script.Parent.AdminGui.Enter.CommandScript.CommandLocks
  240.  
  241. UnLoopKillLock = Instance.new("BoolValue")
  242.  
  243. UnLoopKillLock.Name = "UnLoopKillLock"
  244.  
  245. UnLoopKillLock.Parent = script.Parent.AdminGui.Enter.CommandScript.CommandLocks
  246.  
  247. SkinLock = Instance.new("BoolValue")
  248.  
  249. SkinLock.Name = "SkinLock"
  250.  
  251. SkinLock.Parent = script.Parent.AdminGui.Enter.CommandScript.CommandLocks
  252. --Lock maker
  253.  
  254.  
  255. --Script remover
  256. script:Destroy()
  257. --Script remover
  258.  
  259. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement