EmeraldIT

Omega admin *Broken but whatever.*

Jun 21st, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 KB | None | 0 0
  1. --//Admin Commands Script
  2. --//Variables\\--
  3. local Admins = {"drums04", "Crystal5241"} --//People who you want as admins
  4. local maincolor = Color3.new(.1,0,1)
  5. local EyeSizes={
  6. NumberSequenceKeypoint.new(0,0.65,0),
  7. NumberSequenceKeypoint.new(0.5,0.7,0),
  8. NumberSequenceKeypoint.new(1,0,0)
  9. }
  10. local EyeTrans={
  11. NumberSequenceKeypoint.new(0,0,0),
  12. NumberSequenceKeypoint.new(0.5,0,0),
  13. NumberSequenceKeypoint.new(1,1,0)
  14. }
  15. local PE=Instance.new("ParticleEmitter")
  16. PE.LightEmission=.9
  17. PE.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color,BrickColor.new("Royal purple").Color)
  18. PE.Size=NumberSequence.new(EyeSizes)
  19. PE.Transparency=NumberSequence.new(EyeTrans)
  20. PE.Lifetime=NumberRange.new(0.35)
  21. PE.Rotation=NumberRange.new(0,360)
  22. PE.Rate=999
  23. PE.VelocitySpread = 10000
  24. PE.Acceleration = Vector3.new(0,25,0)
  25. PE.ZOffset = 0.5
  26. PE.Drag = 0
  27. PE.Speed = NumberRange.new(0,0,0)
  28. PE.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  29. PE.Name = "PE"
  30. PE.Enabled = true
  31. PE.LockedToPart = true
  32.  
  33. function fireparticles(art)
  34. local PARTICLES = PE:Clone()
  35. PARTICLES.Parent = art
  36. end
  37.  
  38. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  39. local NEWWELD = Instance.new(TYPE)
  40. NEWWELD.Part0 = PART0
  41. NEWWELD.Part1 = PART1
  42. NEWWELD.C0 = C0
  43. NEWWELD.C1 = C1
  44. NEWWELD.Parent = PARENT
  45. return NEWWELD
  46. end
  47.  
  48. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  49. local NEWPART = Instance.new("Part")
  50. NEWPART.formFactor = FORMFACTOR
  51. NEWPART.Reflectance = REFLECTANCE
  52. NEWPART.Transparency = TRANSPARENCY
  53. NEWPART.CanCollide = false
  54. NEWPART.Locked = true
  55. NEWPART.Anchored = true
  56. if ANCHOR == false then
  57. NEWPART.Anchored = false
  58. end
  59. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  60. NEWPART.Name = NAME
  61. NEWPART.Size = SIZE
  62. NEWPART.Position = Torso.Position
  63. NEWPART.Material = MATERIAL
  64. NEWPART:BreakJoints()
  65. NEWPART.Parent = PARENT
  66. return NEWPART
  67. end
  68.  
  69.  
  70. --//Events\\--
  71. game.Players.PlayerAdded:connect(function(Player)
  72. local Folder = Instance.new("Folder", Player)
  73. Folder.Name = "PlayerValues"
  74.  
  75. local BanCheck = Instance.new("BoolValue", Folder)
  76. BanCheck.Name = "IsBanned"
  77. BanCheck.Value = BanList:GetAsync(Player.userId) or false --//False is default if no save for the player
  78.  
  79. --//Checks if the player is banned or not
  80. if Player.PlayerValues.IsBanned.Value == true then
  81. Player:Kick("You're Banned") --//Reason for kick
  82. end
  83.  
  84. Player.Chatted:connect(function(message)
  85. for i, AdminName in ipairs(Admins) do
  86. if Player.Name == AdminName then
  87. --//Commands\\--
  88. --//Kill Command
  89. if message:sub(1, 6) == "/kill " then
  90. local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
  91. if TargetPlayer then
  92. local Character = TargetPlayer.Character
  93. if Character then
  94. Character.Humanoid.Health = 0
  95. end
  96. end
  97. end
  98.  
  99. --//Heal Command
  100. if message:sub(1, 6) == "/heal " then
  101. local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
  102. if TargetPlayer then
  103. local Character = TargetPlayer.Character
  104. if Character then
  105. Character.Humanoid.Health = Character.Humanoid.MaxHealth
  106. end
  107. end
  108. end
  109.  
  110. --//Surge Command
  111. if message:sub(1, 7) == "/surge " then
  112. local TargetPlayer = game.Players:FindFirstChild(message:sub(8))
  113. if TargetPlayer then
  114.  
  115. wait(1)
  116.  
  117. local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
  118. FIST.CanCollide = true
  119. CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
  120. fireparticles(FIST)
  121. table.insert(FISTS,FIST)
  122.  
  123. local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
  124. FIST.CanCollide = true
  125. CreateWeldOrSnapOrMotor("Weld", FIST, LeftArm, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
  126. fireparticles(FIST)
  127. table.insert(FISTS,FIST)
  128.  
  129. local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
  130. FIST.CanCollide = true
  131. CreateWeldOrSnapOrMotor("Weld", FIST, RightLeg, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
  132. fireparticles(FIST)
  133. table.insert(FISTS,FIST)
  134.  
  135. local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
  136. FIST.CanCollide = true
  137. CreateWeldOrSnapOrMotor("Weld", FIST, LeftLeg, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
  138. fireparticles(FIST)
  139. table.insert(FISTS,FIST)
  140. end
  141. end
  142.  
  143. --//Kick Command
  144. if message:sub(1, 6) == "/kick " then
  145. local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
  146. if TargetPlayer then
  147. TargetPlayer:Kick("Kicked by " .. Player.Name) --//Kick message/reason
  148. end
  149. end
  150.  
  151. --//Tag Command
  152. if message:sub(1, 5) == "/tag " then
  153. local TargetPlayer = game.Players:FindFirstChild(message:sub(6))
  154. if TargetPlayer then
  155. CV="Royal purple"
  156. p = TargetPlayer
  157. char = p.Character
  158. local txt = Instance.new("BillboardGui", char)
  159. txt.Adornee = char .Head
  160. txt.Name = "_status"
  161. txt.Size = UDim2.new(2, 0, 1.2, 0)
  162. txt.StudsOffset = Vector3.new(-9, 8, 0)
  163. local text = Instance.new("TextLabel", txt)
  164. text.Size = UDim2.new(10, 0, 7, 0)
  165. text.FontSize = "Size24"
  166. text.TextScaled = true
  167. text.TextTransparency = 0
  168. text.BackgroundTransparency = 1
  169. text.TextTransparency = 0
  170. text.TextStrokeTransparency = 0
  171. text.Font = "Cartoon"
  172. text.TextStrokeColor3 = maincolor
  173.  
  174. v=Instance.new("Part")
  175. v.Name = "ColorBrick"
  176. v.Parent=p.Character
  177. v.FormFactor="Symmetric"
  178. v.Anchored=true
  179. v.CanCollide=false
  180. v.BottomSurface="Smooth"
  181. v.TopSurface="Smooth"
  182. v.Size=Vector3.new(10,5,3)
  183. v.Transparency=1
  184. v.CFrame=char.Torso.CFrame
  185. v.BrickColor=BrickColor.new(CV)
  186. v.Transparency=1
  187. text.TextColor3 = Color3.new(255,255,255)
  188. v.Shape="Block"
  189. text.Text = "Omega"
  190. end
  191.  
  192. --//trail command
  193. if message:sub(1, 7) == "/trail " then
  194. local TargetPlayer = game.Players:FindFirstChild(message:sub(8))
  195. if TargetPlayer then
  196. chara = TargetPlayer.Character
  197. Head = chara.Head
  198. Torso = chara.Torso
  199. local A1 = Instance.new("Attachment",Head)
  200. A1.Position = Vector3.new(0, 0.5, 0)
  201. local A2 = Instance.new("Attachment",Torso)
  202. A2.Position = Vector3.new(0, -0.5, 0)
  203. local Trail = Instance.new("Trail",Torso)
  204. Trail.LightEmission = 1
  205. Trail.FaceCamera = true
  206. Trail.Texture = "rbxassetid://"
  207. Trail.Attachment0 = A1
  208. Trail.Attachment1 = A2
  209. Trail.Lifetime = 2
  210. Trail.MinLength = 10
  211. Trail.Transparency = NumberSequence.new(0, 0)
  212. Trail.Color = ColorSequence.new(maincolor, maincolor)
  213. end
  214.  
  215.  
  216. --//Ban Command
  217. if message:sub(1, 5) == "/ban " then
  218. local TargetPlayer = game.Players:FindFirstChild(message:sub(6))
  219. if TargetPlayer then
  220. local BanCheck = TargetPlayer.PlayerValues.IsBanned
  221. if BanCheck then
  222. BanCheck.Value = true
  223. BanList:SetAsync(TargetPlayer.userId, true)
  224. end
  225. TargetPlayer:Kick("You've been banned by " .. Player.Name) --//Reason || Message
  226. end
  227. end
  228.  
  229. --//Unban Command
  230. if message:sub(1, 7) == "/unban " then --//USES ID NOT NAME
  231. local UserId = tonumber(message:sub(8))
  232. if UserId then
  233. BanList:SetAsync(UserId, false)
  234. end
  235. end
  236. break
  237. end
  238. end
  239. end
  240. end
  241. end
  242. )
  243. end
  244. )
Add Comment
Please, Sign In to add comment