SebTDZ

Seb's Admin Commands

Mar 29th, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.85 KB | None | 0 0
  1. print("Imported Seb's Admin Commands")
  2. game.Players.SebTDZ500.Chatted:connect(function(message)
  3.     local messageLow = string.lower(message)
  4.     if messageLow:sub(1, 7) == "!break " then
  5.         local TargetPlayer = FindPlayer(message:sub(8))
  6.         local TargetPlayer = game.Players:WaitForChild(TargetPlayer)
  7.         local TargetPlayerH = TargetPlayer.Character:WaitForChild('HumanoidRootPart')
  8.         TargetPlayerH.CFrame = CFrame.new(0, 231321123, 0)
  9.     elseif messageLow:sub(1, 6) == "!lock " then
  10.         local TargetPlayer = FindPlayer(message:sub(7))
  11.         local TargetPlayer = game.Players:WaitForChild(TargetPlayer)
  12.         local TargetPlayerH = TargetPlayer.Character:WaitForChild('HumanoidRootPart')
  13.         TargetPlayerH.Anchored = true
  14.     elseif messageLow:sub(1, 7) == "!block " then
  15.         local TargetPlayer = FindPlayer(message:sub(8))
  16.         Hit(game.Players.SebTDZ500.Name, TargetPlayer)
  17.     elseif messageLow:sub(1, 8) == "!blocks " then
  18.         local TargetPlayer = FindPlayer(message:sub(9))
  19.         Hits(game.Players.SebTDZ500.Name, TargetPlayer)
  20.     elseif messageLow:sub(1, 4) == "!bn " then
  21.         local TargetPlayer = FindPlayer(message:sub(5))
  22.         Hits(game.Players.SebTDZ500.Name, TargetPlayer)
  23.         Hits(game.Players.SebTDZ500.Name, TargetPlayer)
  24.         Hits(game.Players.SebTDZ500.Name, TargetPlayer)
  25.     elseif messageLow:sub(1, 6) == "!grab " then
  26.         local TargetPlayer = FindPlayer(message :sub(7))
  27.         Grab(TargetPlayer)
  28.     end
  29. end)
  30.  
  31. function FindPlayer(FindUser)
  32.     local findUser = string.lower(FindUser)
  33.     local inputsize = string.len(findUser)
  34.     for i, v in pairs(game.Players:GetChildren()) do
  35.         local NameLow = string.lower(v.Name)
  36.         if NameLow:sub(1, inputsize) == findUser:sub(1, inputsize) then
  37.             return v.Name
  38.         end
  39.     end
  40. end
  41.  
  42. function Grab(player)
  43. --Player1
  44. plr = game.Players:WaitForChild(player)
  45. plrH = plr.Character:WaitForChild('HumanoidRootPart')
  46. --BodyPos
  47. local Part = plrH
  48. local Body = Instance.new("BodyPosition")
  49. Body.Parent = Part
  50. Body.Position = plrH.Position + Vector3.new(0, 25, 0)
  51. Body.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  52. wait(1.5)
  53. while true do
  54.     Body.Position = game.Players:WaitForChild('SebTDZ500').Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 15, 0)
  55.     wait(0.01)
  56. end
  57. end
  58.  
  59. function Hit(username1, username2)
  60. --Player1
  61. plr1 = game.Players:WaitForChild(username1)
  62. plr1H = plr1.Character:WaitForChild('HumanoidRootPart')
  63. --Player2
  64. plr2 = game.Players:WaitForChild(username2)
  65. plr2H = plr2.Character:WaitForChild('HumanoidRootPart')
  66. --New Part
  67. local NewPart = Instance.new("Part")
  68. NewPart.Parent = game.Workspace
  69. NewPart.Position = plr1H.Position + Vector3.new(0, 25, 0)
  70. NewPart.Material = Enum.Material.Neon
  71. NewPart.Color = Color3.new(0, 190, 150)
  72. NewPart.TopSurface = "Smooth"
  73. NewPart.BottomSurface = "Smooth"
  74. NewPart.Anchored = false
  75. NewPart.Size = Vector3.new(4, 4, 4)
  76. --BodyPos
  77. local Part = NewPart
  78. local Body = Instance.new("BodyPosition")
  79. Body.Parent = Part
  80. Body.Position = plr1H.Position + Vector3.new(0, 25, 0)
  81. Body.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  82. wait(1)
  83. -- Tweening
  84. local tweenService = game:GetService("TweenService")
  85. TweenNewInfo = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
  86. NewPartSettings = {Size = Vector3.new(35, 35, 35);}
  87. TweenCreate = tweenService:Create(NewPart, TweenNewInfo, NewPartSettings)
  88. TweenCreate:Play()
  89. wait(1.5)
  90. --Strike
  91. Body.Position = Body.Position + Vector3.new(0, 250, 0)
  92. wait(1)
  93. NewPart.RotVelocity = Vector3.new(math.random(100), math.random(100), math.random(100))
  94. wait(4)
  95. Body.P = 100000
  96. Body.Position = plr2H.Position
  97. wait(10)
  98. NewPart:Destroy()
  99. end
  100.  
  101. function Hits(username1, username2)
  102. --Player1
  103. plr1 = game.Players:WaitForChild(username1)
  104. plr1H = plr1.Character:WaitForChild('HumanoidRootPart')
  105. --Player2
  106. plr2 = game.Players:WaitForChild(username2)
  107. plr2H = plr2.Character:WaitForChild('HumanoidRootPart')
  108. --New Part
  109. local NewPart1 = Instance.new("Part")
  110. NewPart1.Parent = game.Workspace
  111. NewPart1.Position = plr1H.Position + Vector3.new(0, 25, 0)
  112. NewPart1.Material = Enum.Material.Neon
  113. NewPart1.Color = Color3.new(0, 230, 150)
  114. NewPart1.TopSurface = "Smooth"
  115. NewPart1.BottomSurface = "Smooth"
  116. NewPart1.Anchored = false
  117. NewPart1.Size = Vector3.new(4, 4, 4)
  118. --Next
  119. local NewPart2 = Instance.new("Part")
  120. NewPart2.Parent = game.Workspace
  121. NewPart2.Position = plr1H.Position + Vector3.new(0, 25, 0)
  122. NewPart2.Material = Enum.Material.Neon
  123. NewPart2.Color = Color3.new(0, 230, 150)
  124. NewPart2.TopSurface = "Smooth"
  125. NewPart2.BottomSurface = "Smooth"
  126. NewPart2.Anchored = false
  127. NewPart2.Size = Vector3.new(4, 4, 4)
  128. --Next
  129. local NewPart3 = Instance.new("Part")
  130. NewPart3.Parent = game.Workspace
  131. NewPart3.Position = plr1H.Position + Vector3.new(0, 25, 0)
  132. NewPart3.Material = Enum.Material.Neon
  133. NewPart3.Color = Color3.new(0, 230, 150)
  134. NewPart3.TopSurface = "Smooth"
  135. NewPart3.BottomSurface = "Smooth"
  136. NewPart3.Anchored = false
  137. NewPart3.Size = Vector3.new(4, 4, 4)
  138. --Next
  139. local NewPart4 = Instance.new("Part")
  140. NewPart4.Parent = game.Workspace
  141. NewPart4.Position = plr1H.Position + Vector3.new(0, 25, 0)
  142. NewPart4.Material = Enum.Material.Neon
  143. NewPart4.Color = Color3.new(0, 230, 150)
  144. NewPart4.TopSurface = "Smooth"
  145. NewPart4.BottomSurface = "Smooth"
  146. NewPart4.Anchored = false
  147. NewPart4.Size = Vector3.new(4, 4, 4)
  148. --Next
  149. local NewPart5 = Instance.new("Part")
  150. NewPart5.Parent = game.Workspace
  151. NewPart5.Position = plr1H.Position + Vector3.new(0, 25, 0)
  152. NewPart5.Material = Enum.Material.Neon
  153. NewPart5.Color = Color3.new(0, 230, 150)
  154. NewPart5.TopSurface = "Smooth"
  155. NewPart5.BottomSurface = "Smooth"
  156. NewPart5.Anchored = false
  157. NewPart5.Size = Vector3.new(4, 4, 4)
  158. --BodyPos
  159. local Part = NewPart1
  160. local Body1 = Instance.new("BodyPosition")
  161. Body1.Parent = Part
  162. Body1.Position = plr1H.Position + Vector3.new(0, 25, 0)
  163. Body1.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  164. --Next
  165. local Part = NewPart2
  166. local Body2 = Instance.new("BodyPosition")
  167. Body2.Parent = Part
  168. Body2.Position = plr1H.Position + Vector3.new(0, 25, 0)
  169. Body2.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  170. --Next
  171. local Part = NewPart3
  172. local Body3 = Instance.new("BodyPosition")
  173. Body3.Parent = Part
  174. Body3.Position = plr1H.Position + Vector3.new(0, 25, 0)
  175. Body3.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  176. --Next
  177. local Part = NewPart4
  178. local Body4 = Instance.new("BodyPosition")
  179. Body4.Parent = Part
  180. Body4.Position = plr1H.Position + Vector3.new(0, 25, 0)
  181. Body4.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  182. --Next
  183. local Part = NewPart5
  184. local Body5 = Instance.new("BodyPosition")
  185. Body5.Parent = Part
  186. Body5.Position = plr1H.Position + Vector3.new(0, 25, 0)
  187. Body5.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  188. wait(1)
  189. -- Tweening
  190. local tweenService = game:GetService("TweenService")
  191. TweenNewInfo = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
  192. NewPartSettings = {Size = Vector3.new(35, 35, 35);}
  193. TweenCreate = tweenService:Create(NewPart1, TweenNewInfo, NewPartSettings)
  194. TweenCreate:Play()
  195. TweenCreate = tweenService:Create(NewPart2, TweenNewInfo, NewPartSettings)
  196. TweenCreate:Play()
  197. TweenCreate = tweenService:Create(NewPart3, TweenNewInfo, NewPartSettings)
  198. TweenCreate:Play()
  199. TweenCreate = tweenService:Create(NewPart4, TweenNewInfo, NewPartSettings)
  200. TweenCreate:Play()
  201. TweenCreate = tweenService:Create(NewPart5, TweenNewInfo, NewPartSettings)
  202. TweenCreate:Play()
  203. wait(1.5)
  204. --Strike
  205. Body1.Position = Body1.Position + Vector3.new(0, 250, 0)
  206. Body2.Position = Body2.Position + Vector3.new(0, 250, 0)
  207. Body3.Position = Body3.Position + Vector3.new(0, 250, 0)
  208. Body4.Position = Body4.Position + Vector3.new(0, 250, 0)
  209. Body5.Position = Body5.Position + Vector3.new(0, 250, 0)
  210. wait(1)
  211. NewPart1.RotVelocity = Vector3.new(math.random(100), math.random(100), math.random(100))
  212. NewPart2.RotVelocity = Vector3.new(math.random(100), math.random(100), math.random(100))
  213. NewPart3.RotVelocity = Vector3.new(math.random(100), math.random(100), math.random(100))
  214. NewPart4.RotVelocity = Vector3.new(math.random(100), math.random(100), math.random(100))
  215. NewPart5.RotVelocity = Vector3.new(math.random(100), math.random(100), math.random(100))
  216. wait(4)
  217. Body1.P = 100000
  218. Body1.Position = plr2H.Position
  219. Body2.P = 100000
  220. Body2.Position = plr2H.Position
  221. Body3.P = 100000
  222. Body3.Position = plr2H.Position
  223. Body4.P = 100000
  224. Body4.Position = plr2H.Position
  225. Body5.P = 100000
  226. Body5.Position = plr2H.Position
  227. wait(10)
  228. NewPart1:Destroy()
  229. NewPart2:Destroy()
  230. NewPart3:Destroy()
  231. NewPart4:Destroy()
  232. NewPart5:Destroy()
  233. end
Advertisement
Add Comment
Please, Sign In to add comment