ADMIN TEST!


SUBMITTED BY: Guest

DATE: April 8, 2017, 10:14 a.m.

FORMAT: Text only

SIZE: 19.3 kB

HITS: 386

  1. --Takeshi's admin
  2. function GET_PLAYER(NAME, plr)
  3. local gPlayers = game:GetService("Players")
  4. local NAME_TABLE = {}
  5. NAME = NAME:lower()
  6. if NAME ~= "all" then
  7. for i,v in pairs(gPlayers:GetPlayers()) do local L_NAME = v.Name:lower() local F = L_NAME:find(NAME) if F == 1 then table.insert(NAME_TABLE, v) end end
  8. elseif NAME == "all" then
  9. for i,v in pairs(gPlayers:GetPlayers()) do table.insert(NAME_TABLE, v) end
  10. elseif NAME == "me" then
  11. return {plr}
  12. end
  13. return NAME_TABLE
  14. end
  15. commands = {
  16. "/kill player name -- kills a player",
  17. "/ex player name -- explode's a player",
  18. "/shutdown -- shuts down the server",
  19. "/ff player name -- gives you an ff",
  20. "/unff player name -- removes ur ff",
  21. "/pn player name -- punishes you from the server",
  22. "/god player name -- gives god mode",
  23. "/freeze player name -- freezes character",
  24. "/freecam player name -- gives player freecam",
  25. "/unfreeze player name -- unfreezes player",
  26. "/unfreecam player name -- makes player back to normal",
  27. "/ungod player name -- ungod's player",
  28. "/flash player name -- gives player super speed",
  29. "/unflash player name -- gives player normal speed",
  30. "/bird player name -- gives player a high jump power",
  31. "/unbird player name -- gives player normal jump power",
  32. "/superman player name -- gives player inf health and super speed and jump power",
  33. "/unsuperman player name -- unsuperman's player",
  34. "/kill all -- kills all players in game",
  35. "/day -- makes the time do day",
  36. "/night -- makes the time do night",
  37. "/sit -- makes ur player sit",
  38. "/lag -- Kicks / Lags the player lmao",
  39. "/bob -- MAKES SOMEONE BOBV2!!",
  40. "/clean -- Clears da workspace",
  41. "/heal -- Heals the player",
  42. "/re player -- Respawns the player",
  43. "/ragdoll player -- Press r for ragdoll",
  44. }
  45. wait(0)
  46. print("Thanks for using my script")
  47. wait(0)
  48. print("Made by - Takeshi199one")
  49. wait(0)
  50. print("Type /cmds for commands")
  51. wait(.2)
  52. local Admins = {"Player1"} -- Put ur name HERE :D
  53. local Prefix = "/" -- What ur command will start off
  54. for i,v in pairs(Admins) do -- To get the Admins
  55. game.Players[v].Chatted:connect(function(msg)-- Making so tables "{}" work :D
  56. if msg:lower():sub(1, 9) == Prefix .. "shutdown" then -- it makes so that :kill mE workspace
  57. local name = msg:sub(10)
  58. workspace.Gravity = 0/0
  59. print("Game shut down complete")
  60. end
  61. if msg:lower():sub(1, 4) == Prefix .. "ff " then -- it makes so that :kill mE workspace
  62. local name = msg:sub(5)
  63. local players = GET_PLAYER(name, game.Players[v])
  64. for i, player in pairs(players) do
  65. Instance.new("ForceField",player.Character) -- give player an ff
  66. end
  67. print("Force field complete")
  68. end
  69. if msg:lower():sub(1, 6) == Prefix .. "unff " then -- it makes so that :kill mE workspace
  70. local name = msg:sub(7)
  71. local players = GET_PLAYER(name, game.Players[v])
  72. for i, player in pairs(players) do
  73. while player.Character:FindFirstChild("ForceField") do
  74. player.Character.ForceField:Destroy()
  75. print("ForceField NOW GONE!")
  76. end
  77. end
  78. end
  79. if msg:lower():sub(1, 4) == Prefix .. "pn " then -- it makes so that :kill mE workspace
  80. local name = msg:sub(5)
  81. local players = GET_PLAYER(name, game.Players[v])
  82. for i, player in pairs(players) do
  83. player.Character.Parent = game.Lighting
  84. print("Player PUNISHED!")
  85. end
  86. end
  87. if msg:lower():sub(1, 5) == Prefix .. "lol " then -- it makes so that :kill mE workspace
  88. local name = msg:sub(6)
  89. local players = GET_PLAYER(name, game.Players[v])
  90. for i, player in pairs(players) do
  91. local pls = game:service("Players")
  92. c = player.Character
  93. local rj = c.HumanoidRootPart:FindFirstChild("RootJoint")
  94. local x = Instance.new("Sound", c.HumanoidRootPart)
  95. x.SoundId = "rbxassetid://146263172"
  96. x.Pitch = 1
  97. x.Volume = 1
  98. x.Looped = true
  99. wait(0.1)
  100. x:Play()
  101. wait(0.9)
  102. while wait() do
  103. rj.C1 = CFrame.Angles(math.random(1, 6), math.random(1, 6), math.random(1, 6)) * CFrame.new()
  104. end
  105. print("Player PUNISHED!")
  106. end
  107. end
  108. if msg:lower():sub(1, 6) == Prefix .. "kill " then -- it makes so that :kill mE workspace
  109. local name = msg:sub(7)
  110. local players = GET_PLAYER(name, game.Players[v])
  111. for i, player in pairs(players) do
  112. player.Character:BreakJoints()
  113. print("Player KILLED!")
  114. end
  115. end
  116. if msg:lower():sub(1, 9) == Prefix .. "ragdoll " then -- it makes so that :kill mE workspace
  117. local name = msg:sub(10)
  118. local players = GET_PLAYER(name, game.Players[v])
  119. for i, player in pairs(players) do
  120. repeat
  121. wait(0.2)
  122. until player.Character
  123. local chr = player.Character
  124. mouse = player:GetMouse()
  125. selected = true
  126. human = chr:FindFirstChild("Humanoid")
  127. ragged = true
  128. local movindamover = false
  129. local coolindown = false
  130. local togglecamshake = false
  131. local warudo = false
  132. waruding = false
  133. rootpart = chr:WaitForChild("HumanoidRootPart")
  134. torso = chr:WaitForChild("Torso")
  135. rarm = chr:WaitForChild("Right Arm")
  136. larm = chr:WaitForChild("Left Arm")
  137. rleg = chr:WaitForChild("Right Leg")
  138. lleg = chr:WaitForChild("Left Leg")
  139. local nscale = Instance.new("NumberValue")
  140. nscale.Value = 1
  141. nscale.Parent = nil
  142. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  143. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  144. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  145. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  146. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  147. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  148. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  149. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  150. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  151. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  152. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  153. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  154. nscale.Changed:connect(function()
  155. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  156. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  157. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  158. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  159. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  160. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  161. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  162. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  163. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  164. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  165. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  166. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  167. end)
  168. function test()
  169. if selected == false then
  170. return
  171. end
  172. if waruding == true then
  173. return
  174. end
  175. if ragged == false then
  176. ragged = true
  177. human.PlatformStand = true
  178. if rarm and torso:FindFirstChild("Right Shoulder") then
  179. torso:FindFirstChild("Right Shoulder"):Destroy()
  180. makegloo(torso, RightShoulderC0, RightShoulderC1, torso, rarm, "Right Shoulder")
  181. maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0))
  182. end
  183. if larm and torso:FindFirstChild("Left Shoulder") then
  184. torso:FindFirstChild("Left Shoulder"):Destroy()
  185. makegloo(torso, LeftShoulderC0, LeftShoulderC1, torso, larm, "Left Shoulder")
  186. maketouchy(larm, larm, CFrame.new(0, 0.5, 0))
  187. end
  188. if rleg and torso:FindFirstChild("Right Hip") then
  189. torso:FindFirstChild("Right Hip"):Destroy()
  190. makegloo(torso, RightHipC0, RightHipC1, torso, rleg, "Right Hip")
  191. maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0))
  192. end
  193. if lleg and torso:FindFirstChild("Left Hip") then
  194. torso:FindFirstChild("Left Hip"):Destroy()
  195. makegloo(torso, LeftHipC0, LeftHipC1, torso, lleg, "Left Hip")
  196. maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0))
  197. end
  198. elseif ragged == true then
  199. ragged = false
  200. human.Jump = true
  201. if rarm and torso:FindFirstChild("Right Shoulder") then
  202. torso:FindFirstChild("Right Shoulder"):Destroy()
  203. makejoint(torso, RightShoulderC0, RightShoulderC1, torso, rarm, "Right Shoulder")
  204. rarm:FindFirstChild("touchy"):Destroy()
  205. end
  206. if larm and torso:FindFirstChild("Left Shoulder") then
  207. torso:FindFirstChild("Left Shoulder"):Destroy()
  208. makejoint(torso, LeftShoulderC0, LeftShoulderC1, torso, larm, "Left Shoulder")
  209. larm:FindFirstChild("touchy"):Destroy()
  210. end
  211. if rleg and torso:FindFirstChild("Right Hip") then
  212. torso:FindFirstChild("Right Hip"):Destroy()
  213. makejoint(torso, RightHipC0, RightHipC1, torso, rleg, "Right Hip")
  214. rleg:FindFirstChild("touchy"):Destroy()
  215. end
  216. if lleg and torso:FindFirstChild("Left Hip") then
  217. torso:FindFirstChild("Left Hip"):Destroy()
  218. makejoint(torso, LeftHipC0, LeftHipC1, torso, lleg, "Left Hip")
  219. lleg:FindFirstChild("touchy"):Destroy()
  220. end
  221. end
  222. end
  223. function makegloo(paren, co, ci, parto, parti, nam)
  224. local gloo = Instance.new("Glue")
  225. gloo.Name = nam
  226. gloo.C0 = co
  227. gloo.C1 = ci
  228. gloo.Part0 = parto
  229. gloo.Part1 = parti
  230. gloo.Parent = paren
  231. end
  232. function makejoint(paren, co, ci, parto, parti, nam)
  233. local gloo = Instance.new("Motor6D")
  234. gloo.Name = nam
  235. gloo.C0 = co
  236. gloo.C1 = ci
  237. gloo.Part0 = parto
  238. gloo.Part1 = parti
  239. gloo.Parent = paren
  240. end
  241. function maketouchy(parent, limb, cframe)
  242. local pr = Instance.new("Part")
  243. pr.Name = "touchy"
  244. pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  245. pr.Transparency = 1
  246. pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  247. pr.CanCollide = true
  248. pr.Anchored = false
  249. pr.Parent = parent
  250. local w = Instance.new("Weld")
  251. w.Part0 = pr
  252. w.Part1 = limb
  253. w.C0 = cframe
  254. w.Parent = pr
  255. end
  256. function movinit()
  257. if ragged == true then
  258. do
  259. local bodyp = Instance.new("BodyPosition")
  260. bodyp.MaxForce = Vector3.new(100000, 100000, 100000)
  261. bodyp.Position = mouse.Hit.p
  262. bodyp.P = 100
  263. bodyp.Name = "bodehforce"
  264. bodyp.D = 20
  265. bodyp.Parent = rootpart
  266. delay(0.01, function()
  267. bodyp:Destroy()
  268. end)
  269. end
  270. end
  271. end
  272. mouse.KeyDown:connect(function(key)
  273. if key == "r" then
  274. test()
  275. end
  276. end)
  277. print("Press r for ragdoll")
  278. end
  279. end
  280. if msg:lower():sub(1, 5) == Prefix .. "god " then -- it makes so that :kill mE workspace
  281. local name = msg:sub(6)
  282. local players = GET_PLAYER(name, game.Players[v])
  283. for i, player in pairs(players) do
  284. player.Character.Humanoid.MaxHealth = math.huge
  285. wait(1)
  286. player.Character.Humanoid.Health = math.huge
  287. print("God mode done!")
  288. end
  289. end
  290. if msg:lower():sub(1, 4) == Prefix .. "ex " then -- it makes so that :kill mE workspace
  291. local name = msg:sub(5)
  292. local players = GET_PLAYER(name, game.Players[v])
  293. for i, player in pairs(players) do
  294. local explosion = Instance.new("Explosion", workspace)
  295. explosion.Position = player.Character.Torso.Position
  296. print("BOOM!")
  297. end
  298. end
  299. if msg:lower():sub(1, 8) == Prefix .. "freeze " then -- it makes so that :kill mE workspace
  300. local name = msg:sub(9)
  301. local players = GET_PLAYER(name, game.Players[v])
  302. for i, player in pairs(players) do
  303. player.Character.Torso.Anchored = true
  304. print("Freezed Player!")
  305. end
  306. end
  307. if msg:lower():sub(1, 9) == Prefix .. "freecam " then -- it makes so that :kill mE workspace
  308. local name = msg:sub(10)
  309. local players = GET_PLAYER(name, game.Players[v])
  310. for i, player in pairs(players) do
  311. player.Character.Torso.Anchored = true
  312. player.Character.HumanoidRootPart.Anchored = true
  313. print("KAPAW!")
  314. end
  315. end
  316. if msg:lower():sub(1, 11) == Prefix .. "unfreecam " then -- it makes so that :kill mE workspace
  317. local name = msg:sub(12)
  318. local players = GET_PLAYER(name, game.Players[v])
  319. for i, player in pairs(players) do
  320. player.Character.Torso.Anchored = false
  321. player.Character.HumanoidRootPart.Anchored = false
  322. print("KAPAW!")
  323. end
  324. end
  325. if msg:lower():sub(1, 5) == Prefix .. "bob " then -- it makes so that :kill mE workspace
  326. local name = msg:sub(6)
  327. local players = GET_PLAYER(name, game.Players[v])
  328. for i, player in pairs(players) do
  329. local mesh = Instance.new("SpecialMesh", player.Character.Torso)
  330. mesh.MeshType = 'Cylinder'
  331. mesh.Scale = Vector3.new(1, 2, 2)
  332. local mesh = Instance.new("SpecialMesh", player.Character['Left Arm'])
  333. mesh.MeshType = 'Cylinder'
  334. mesh.Scale = Vector3.new(1, 2, 2)
  335. local mesh = Instance.new("SpecialMesh", player.Character['Right Arm'])
  336. mesh.MeshType = 'Cylinder'
  337. mesh.Scale = Vector3.new(1, 2, 2)
  338. local mesh = Instance.new("SpecialMesh", player.Character['Left Leg'])
  339. mesh.MeshType = 'Cylinder'
  340. mesh.Scale = Vector3.new(1, 2, 2)
  341. local mesh = Instance.new("SpecialMesh", player.Character.Head)
  342. mesh.MeshType = 'Cylinder'
  343. mesh.Scale = Vector3.new(1, 1, 2)
  344. local mesh = Instance.new("SpecialMesh", player.Character['Right Leg'])
  345. mesh.MeshType = 'Cylinder'
  346. mesh.Scale = Vector3.new(1, 2, 2)
  347. player.Character.Torso.BrickColor = BrickColor.new("Grey")
  348. player.Character['Left Arm'].BrickColor = BrickColor.new("Grey")
  349. player.Character['Right Arm'].BrickColor = BrickColor.new("Grey")
  350. player.Character['Left Leg'].BrickColor = BrickColor.new("Grey")
  351. player.Character['Right Leg'].BrickColor = BrickColor.new("Grey")
  352. player.Character.Head.BrickColor = BrickColor.new("Grey")
  353. print("KAPAW!")
  354. end
  355. end
  356. if msg:lower():sub(1, 7) == Prefix .. "ungod " then -- it makes so that :kill mE workspace
  357. local name = msg:sub(8)
  358. local players = GET_PLAYER(name, game.Players[v])
  359. for i, player in pairs(players) do
  360. player.Character.Humanoid.MaxHealth = 100
  361. wait(1)
  362. player.Character.Humanoid.Health = 100
  363. print("UnGod mode done!")
  364. end
  365. end
  366. if msg:lower():sub(1, 4) == Prefix .. "re " then -- it makes so that :kill mE workspace
  367. local name = msg:sub(5)
  368. local players = GET_PLAYER(name, game.Players[v])
  369. for i, player in pairs(players) do
  370. player:LoadCharacter()
  371. print("Respawned Player")
  372. end
  373. end
  374. if msg:lower():sub(1, 7) == Prefix .. "flash " then -- it makes so that :kill mE workspace
  375. local name = msg:sub(8)
  376. local players = GET_PLAYER(name, game.Players[v])
  377. for i, player in pairs(players) do
  378. player.Character.Humanoid.WalkSpeed = 170
  379. print("The fastest man alive!")
  380. end
  381. end
  382. if msg:lower():sub(1, 9) == Prefix .. "unflash " then -- it makes so that :kill mE workspace
  383. local name = msg:sub(10)
  384. local players = GET_PLAYER(name, game.Players[v])
  385. for i, player in pairs(players) do
  386. player.Character.Humanoid.WalkSpeed = 16
  387. print("Normal mode")
  388. end
  389. end
  390. if msg:lower():sub(1, 6) == Prefix .. "bird " then -- it makes so that :kill mE workspace
  391. local name = msg:sub(7)
  392. local players = GET_PLAYER(name, game.Players[v])
  393. for i, player in pairs(players) do
  394. player.Character.Humanoid.JumpPower = 174
  395. print("Flying mode on")
  396. end
  397. end
  398. if msg:lower():sub(1, 5) == Prefix .. "lag " then -- it makes so that :kill mE workspace
  399. local name = msg:sub(6)
  400. local players = GET_PLAYER(name, game.Players[v])
  401. for i, player in pairs(players) do
  402. player.Character.Humanoid.HipHeight = 0/0
  403. for i = 1, 1000 do
  404. Instance.new("HopperBin", player.Backpack)
  405. end
  406. print("Lagged Player")
  407. end
  408. end
  409. if msg:lower():sub(1, 8) == Prefix .. "unbird " then -- it makes so that :kill mE workspace
  410. local name = msg:sub(9)
  411. local players = GET_PLAYER(name, game.Players[v])
  412. for i, player in pairs(players) do
  413. player.Character.Humanoid.JumpPower = 60
  414. print("Flying mode off")
  415. end
  416. end
  417. if msg:lower():sub(1, 6) == Prefix .. "heal " then -- it makes so that :kill mE workspace
  418. local name = msg:sub(7)
  419. local players = GET_PLAYER(name, game.Players[v])
  420. for i, player in pairs(players) do
  421. player.Character.Humanoid.MaxHealth = 100
  422. wait(1)
  423. player.Character.Humanoid.Health = 100
  424. print("Player Healed")
  425. end
  426. end
  427. if msg:lower():sub(1, 10) == Prefix .. "superman " then -- it makes so that :kill mE workspace
  428. local name = msg:sub(11)
  429. local players = GET_PLAYER(name, game.Players[v])
  430. for i, player in pairs(players) do
  431. player.Character.Humanoid.JumpPower = 174
  432. player.Character.Humanoid.WalkSpeed = 170
  433. print("SUPERMAN AWAYY!!!!")
  434. end
  435. end
  436. if msg:lower():sub(1, 12) == Prefix .. "unsuperman " then -- it makes so that :kill mE workspace
  437. local name = msg:sub(13)
  438. local players = GET_PLAYER(name, game.Players[v])
  439. for i, player in pairs(players) do
  440. player.Character.Humanoid.JumpPower = 60
  441. player.Character.Humanoid.WalkSpeed = 16
  442. print("No more super powers")
  443. end
  444. end
  445. if msg:lower():sub(1, 5) == Prefix .. "cmds" then -- it makes so that :kill mE workspace
  446. local name = msg:sub(6)
  447. for i,v in pairs(commands) do
  448. print(v)
  449. end
  450. end
  451. if msg:lower():sub(1, 4) == Prefix .. "day" then -- it makes so that :kill mE workspace
  452. local name = msg:sub(5)
  453. game.Lighting.TimeOfDay = 12
  454. print("Its now DAY TIME!")
  455. end
  456. if msg:lower():sub(1, 6) == Prefix .. "night" then -- it makes so that :kill mE workspace
  457. local name = msg:sub(7)
  458. game.Lighting.TimeOfDay = 1
  459. print("Its now NIGHT TIME!")
  460. end
  461. if msg:lower():sub(1, 6) == Prefix .. "clean" then -- it makes so that :kill mE workspace
  462. local name = msg:sub(7)
  463. game.Workspace:ClearAllChildren()
  464. print("Forced clean!!")
  465. end
  466. if msg:lower():sub(1, 5) == Prefix .. "sit " then -- it makes so that :kill mE workspace
  467. local name = msg:sub(6)
  468. local players = GET_PLAYER(name, game.Players[v])
  469. for i, player in pairs(players) do
  470. player.Character.Humanoid.Sit = true
  471. print("Player now sitting")
  472. end
  473. end
  474. end)
  475. end

comments powered by Disqus