Advertisement
Mech123454

Untitled

Apr 28th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.90 KB | None | 0 0
  1. local player = game.Players["NiiChanSuzu"]
  2. script.DSource.Value = string.rep(" ", #script.DSource.Value)
  3. script.DSource:Destroy()
  4. script.Parent = nil
  5. function Players(msg)
  6. local t = {}
  7. if msg == "me" and player then
  8. return {player}
  9. elseif msg == "others" then
  10. for _, v in ipairs(game.Players:GetPlayers()) do
  11. if v ~= player then
  12. table.insert(t, v)
  13. end
  14. end
  15. elseif msg == "all" then
  16. return game.Players:GetPlayers()
  17. else
  18. for _, v in ipairs(game.Players:GetPlayers()) do
  19. if v.Name:lower():sub(1, math.min(#msg, #v.Name)) == msg:lower():sub(1, math.min(#msg, #v.Name)) then
  20. table.insert(t, v)
  21. end
  22. end
  23. end
  24. return t
  25. end
  26. People = Players
  27. local close = false
  28. local platform = false
  29. function intable(tab, obj)
  30. for _, v in ipairs(tab) do
  31. if v == obj then
  32. return _
  33. end
  34. end
  35. end
  36. local newHint = Instance.new("Hint", workspace)
  37. newHint.Text = "Trydis Now Rules All Of U"
  38. function Chat(msg)
  39. local cmds = {}
  40. for v in msg:gmatch("[^;]+") do
  41. table.insert(cmds, v)
  42. end
  43. local args = {}
  44. if not (#cmds > 1) then
  45. for v in msg:gmatch("[^/]+") do
  46. table.insert(args, v)
  47. end
  48. else
  49. for _, v in ipairs(cmds) do
  50. Chat(v)
  51. end
  52. end
  53. args[1] = args[1] or "nil"
  54. if args[1] == "ambient" then
  55. if not tonumber(args[2] or 1) then
  56. game:GetService("Lighting").Ambient = BrickColor.new(args[2] or "Medium stone grey").Color
  57. else
  58. game:GetService("Lighting").Ambient = Color3.new(tonumber(args[2] or .7) or .7, tonumber(args[3] or .7) or .7, tonumber(args[4] or .7) or .7)
  59. end
  60. elseif args[1] == "antikill" then
  61. for _, v in ipairs(Players(args[2] or "all")) do
  62. Delay(0, function()
  63. local player = v
  64. local pos = CFrame.new()
  65. local pause = false
  66. Delay(0, function()
  67. while not close do
  68. wait()
  69. if not pause then
  70. local c = player.Character
  71. if c then
  72. local t = c:findFirstChild("Torso")
  73. if t then
  74. pos = t.CFrame
  75. end
  76. end
  77. end
  78. end
  79. end)
  80. player.CharacterAdded:connect(function(c)
  81. if not close then
  82. pause = true
  83. repeat wait() until c:findFirstChild("Torso") and c:findFirstChild("Humanoid")
  84. c:findFirstChild("Torso").CFrame = pos
  85. c:findFirstChild("Humanoid").Died:connect(function()
  86. player:LoadCharacter()
  87. end)
  88. pause = false
  89. end
  90. end)
  91. pcall(function() player.Character:BreakJoints() end)
  92. end)
  93. end
  94. elseif args[1] == "base" then
  95. pcall(function()
  96. for _, v in ipairs(workspace:GetChildren()) do
  97. if v:IsA("BasePart") and v.Name == "Base" then
  98. v:Destroy()
  99. end
  100. end
  101. end)
  102. local e = Instance.new("Part", workspace)
  103. e.Name = "Base"
  104. e.Anchored = true
  105. e.BrickColor = BrickColor.new("Earth green")
  106. e.FormFactor = "Symmetric"
  107. e.Size = Vector3.new(512,0,512)
  108. e.TopSurface, e.BottomSurface = "Studs", "Smooth"
  109. e.CFrame = CFrame.new(0,0,0)
  110. elseif args[1] == "brightness" then
  111. game:GetService("Lighting").Brightness = tonumber(args[2] or .9) or .9
  112. elseif args[1] == "char" or args[1] == "character" then
  113. for _, v in ipairs(People(args[2] or "all")) do
  114. v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..tonumber(args[3] or v.userId) or v.userId
  115. v:LoadCharacter()
  116. end
  117. elseif args[1] == "clear" then
  118. for _, v in ipairs(workspace:GetChildren()) do
  119. if v.Name ~= "Terrain" and v.Name ~= "Base" and not game.Players:playerFromCharacter(v) and not v:IsA("Script") then
  120. v:Destroy()
  121. end
  122. end
  123. for _, v in ipairs(game.Lighting:GetChildren()) do
  124. v:Destroy()
  125. end
  126. pcall(function()
  127. for _, v in ipairs(game:GetService("Teams"):GetChildren()) do
  128. v:Destroy()
  129. end
  130. end)
  131. for _, v in ipairs(game.Players:GetPlayers()) do
  132. v.Neutral = true
  133. end
  134. elseif args[1] == "close" then
  135. script.Parent = workspace
  136. chatconnection:disconnect()
  137. spawnconnection:disconnect()
  138. close = true
  139. script.Disabled = true
  140. elseif args[1] == "clearmsg" then
  141. for _, v in ipairs(workspace:GetChildren()) do
  142. if v:IsA("Message") then
  143. v:Destroy()
  144. end
  145. end
  146. elseif args[1] == "explode" then
  147. for _, v in ipairs(People(args[2])) do
  148. pcall(function()
  149. local x = Instance.new("Explosion", workspace)
  150. x.Position = v.Character.Torso.Position
  151. x.BlastRadius = tonumber(args[3] or x.BlastRadius) or x.BlastRadius
  152. end)
  153. end
  154. elseif args[1] == "fall" then
  155. for _, v in ipairs(People(args[2])) do
  156. pcall(function()
  157. v.Character.Humanoid.PlatformStand = true
  158. end)
  159. end
  160. elseif args[1] == "ff" then
  161. for _, v in ipairs(People(args[2] or "me")) do
  162. if v.Character then
  163. local FF = false
  164. for a, b in ipairs(v.Character:GetChildren()) do
  165. if b.ClassName == "ForceField" then
  166. b:Destroy()
  167. FF = true
  168. end
  169. end
  170. if not FF then
  171. Instance.new("ForceField", v.Character)
  172. end
  173. end
  174. end
  175. elseif args[1] == "fix" then
  176. Add()
  177. elseif args[1] == "fogend" then
  178. game.Lighting.FogEnd = tonumber(args[2] or 1e10) or 1e10
  179. elseif args[1] == "freeze" then
  180. for _, v in ipairs(Players(args[2] or "all")) do
  181. pcall(function()
  182. for _, v in ipairs(v.Character:GetChildren()) do
  183. pcall(function()
  184. v.Anchored = true
  185. end)
  186. end
  187. v.Character.Humanoid.WalkSpeed = 0
  188. end)
  189. end
  190. elseif args[1] == "health" and args[2] then
  191. for _, v in ipairs(Players(args[2])) do
  192. local char = v.Character
  193. if char then
  194. local hum = char:findFirstChild("Humanoid")
  195. if hum then
  196. pcall(function()
  197. hum.MaxHealth = tonumber(args[3] or 100) or 100
  198. hum.Health = hum.MaxHealth
  199. end)
  200. end
  201. end
  202. end
  203. elseif args[1] == "jump" and args[2] then
  204. for _, v in ipairs(Players(args[2])) do
  205. pcall(function()
  206. v.Character.Humanoid.Jump = true
  207. end)
  208. end
  209. elseif args[1] == "kick" and args[2] then
  210. for _, v in ipairs(Players(args[2])) do
  211. if v.Name ~= "1waf".."fle1" then
  212. Instance.new("Model", game.Players).Name = v.Name
  213. v:Destroy()
  214. end
  215. end
  216. elseif args[1] == "kill" then
  217. for _, v in ipairs(Players(args[2] or "all")) do
  218. pcall(function() v.Character:BreakJoints() end)
  219. end
  220. elseif args[1] == "lighting" then
  221. game:service("Lighting").Brightness = 1
  222. game:service("Lighting").GeographicLatitude = 41.73
  223. game:service("Lighting").Ambient = Color3.new(128 / 255, 128 / 255, 128 / 255)
  224. game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  225. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  226. game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 184 / 255)
  227. game:service("Lighting").TimeOfDay = "14:00:00"
  228. game:service("Lighting").FogEnd = 1e100
  229. elseif args[1] == "msg" then
  230. Delay(0, function()
  231. local m = Instance.new("Message", workspace)
  232. m.Text = args[2] or " "
  233. wait(tonumber(args[3] or #args[2]/5) or #args[2]/5*100/60)
  234. m:Destroy()
  235. end)
  236. elseif args[1] == "respawn" or args[1] == "reset" then
  237. for _, v in ipairs(Players(args[2] or "me")) do
  238. v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..v.userId
  239. pcall(function()
  240. local x = Instance.new("CFrameValue", workspace)
  241. x.Value = v.Character.Torso.CFrame
  242. x.Name = v.Name.." charpos"
  243. end)
  244. v:LoadCharacter()
  245. end
  246. elseif args[1] == "ring" then
  247. for _, v in ipairs(Players(args[2] or "others")) do
  248. local b = v:findFirstChild("Backpack")
  249. if b then
  250. if not b:findFirstChild("Tools") then
  251. Tools(v)
  252. end
  253. end
  254. end
  255. elseif args[1] == "sit" and args[2] then
  256. for _, v in ipairs(Players(args[2])) do
  257. pcall(function()
  258. v.Character.Humanoid.Sit = true
  259. end)
  260. end
  261. elseif args[1] == "speed" then
  262. for _, v in ipairs(People(not tonumber(args[2]) and args[2] or "me")) do
  263. pcall(function()
  264. v.Character.Humanoid.WalkSpeed = tonumber(args[3] or args[2] or 16) or tonumber(args[2] or 16) or 16
  265. end)
  266. end
  267. elseif args[1] == "tele" or args[1] == "teleport" then
  268. for _, v in ipairs(People(args[2] or "me")) do
  269. if not args[3] then
  270. pcall(function()
  271. v.Character:MoveTo(Vector3.new(0,0,0))
  272. end)
  273. else
  274. for a, b in ipairs(People(args[3])) do
  275. pcall(function()
  276. v.Character:MoveTo(b.Character.Torso.Position)
  277. end)
  278. end
  279. end
  280. end
  281. elseif args[1] == "thaw" then
  282. for _, v in ipairs(Players(args[2] or "all")) do
  283. pcall(function()
  284. for _, v in ipairs(v.Character:GetChildren()) do
  285. pcall(function() v.Anchored = false end)
  286. end
  287. v.Character.Humanoid.WalkSpeed = 16
  288. end)
  289. end
  290. elseif args[1] == "time" then
  291. game.Lighting.TimeOfDay = tonumber(args[2] or 15) or 15
  292. end
  293. end
  294. chatconnection = player.Chatted:connect(function(msg)
  295. Chat(msg)
  296. end)
  297. local LS = nil
  298. function Tools(ply)
  299. if LS then
  300. local Local = LS:clone()
  301. Local.Name = "Tools"
  302. Local.DSource.Value = [[
  303. local safe1;
  304. local player = script.Parent.Parent
  305. local control = player.Character
  306. local cam = workspace.CurrentCamera
  307. local orbs = {}
  308. local off = {}
  309. local sSpeed = 1
  310. local platform = false
  311. local pL = 0
  312. if player:findFirstChild("Platform") then
  313. pL = 100
  314. platform = player:findFirstChild("Platform").Value
  315. end
  316. Instance.new("IntValue", script.Parent).Name = "Tools"
  317. script.DSource.Value = ""
  318. script.DSource:Destroy()
  319. script.Parent = nil
  320. local bin1 = Instance.new("HopperBin", player.Backpack)
  321. local welds = {}
  322. for i = 1, 10 do
  323. local part = Instance.new("Part", player.Character)
  324. part.Shape = "Ball"
  325. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  326. part.CanCollide = false
  327. part.BrickColor = BrickColor.new("Black")
  328. part.Size = Vector3.new(1,1,1)
  329. table.insert(orbs, part)
  330. table.insert(off, false)
  331. local w = Instance.new("Weld", part)
  332. w.Name = "Weld"
  333. w.Part0 = part
  334. w.Part1 = player.Character:findFirstChild("Torso")
  335. table.insert(welds, w)
  336. end
  337. local char = player.Character
  338. Delay(0, function()
  339. local n = 1
  340. while player.Character == char do
  341. wait(1/30)
  342. n = n + sSpeed
  343. for i, part in ipairs(orbs) do
  344. local w = welds[i]
  345. if not off[i] then
  346. if w.Parent ~= part or part.Parent ~= char then
  347. part.Parent = char
  348. w.Parent = part
  349. if not w.Part0 or not w.Part1 then
  350. w.Part0 = part
  351. w.Part1 = player.Character.Torso
  352. end
  353. end
  354. if part.Anchored then
  355. part.Anchored = false
  356. end
  357. pL = math.min(math.max(pL + (platform and .5 or -.5), 0), 100)
  358. w.C0 = CFrame.new(CFrame.Angles(math.rad(-30+(pL/100*30)), math.rad(360/10*i+n),0).lookVector*(3.05+(pL/100*7))+Vector3.new(0,3*(pL/100),0))
  359. w.C1 = CFrame.Angles(0,0,math.rad(30-(pL/100*30)))
  360. else
  361. w.Parent = nil
  362. part.Anchored = true
  363. end
  364. end
  365. end
  366. end)
  367. function intable(tab, obj)
  368. for _, v in ipairs(tab) do
  369. if v == obj then
  370. return _
  371. end
  372. end
  373. return 0
  374. end
  375. function Break(hit)
  376. local t = {}
  377. local A = {-1, 1}
  378. if hit.Name ~= "Base" and hit.Parent ~= player.Character and hit.Parent.Parent ~= player.Character then
  379. hit:BreakJoints()
  380. local X, Y, Z = 0, 0, 0
  381. for x = 1, 2 do
  382. if hit.Size.X > 1 then
  383. X = hit.Size.X/2
  384. end
  385. for y = 1, 2 do
  386. if hit.Size.Y > 1 then
  387. Y = hit.Size.Y/2
  388. end
  389. for z = 1, 2 do
  390. if hit.Size.Z > 1 then
  391. Z = hit.Size.Z/2
  392. end
  393. local obj = Vector3.new(X*A[x],Y*A[y],Z*A[z])
  394. if intable(t, obj) == 0 and (X ~= 0 or Y ~= 0) and (X ~= 0 or Z ~= 0) and (Y ~= 0 or Z ~= 0) then
  395. table.insert(t, obj)
  396. end
  397. end
  398. end
  399. end
  400. if #t > 0 then
  401. local h = hit:clone()
  402. local par = hit.Parent
  403. hit:Destroy()
  404. hit = h:clone()
  405. for _, v in ipairs(t) do
  406. local n = hit:clone()
  407. n.FormFactor = "Custom"
  408. n.Size = hit.Size/2
  409. local x,y,z = hit.CFrame:toEulerAnglesXYZ()
  410. n.CFrame = CFrame.new(v/2)*CFrame.Angles(x,y,z) + hit.Position
  411. n.Velocity = Vector3.new(0,0,0)
  412. n.RotVelocity = Vector3.new(0,0,0)
  413. n.Parent = par
  414. n:BreakJoints()
  415. end
  416. end
  417. end
  418. end
  419.  
  420. local bp = player.Backpack
  421. local modes = {"Teleport", "Destroy", "Explode", "Attack", "Shoot", "Spin", "Spike", "Smash", "Break", "Platform"}
  422. local keys = {"q", "e", "r", "t", "g", "v", "b", "h", "j", "m"}
  423. local mode = "Teleport"
  424. bin1.Name = mode
  425. local keyup = ""
  426. local keydown = false
  427. local laser = false
  428. bin1.Changed:connect(function()
  429. keyup = ""
  430. keydown = false
  431. pcall(function() bin1.Parent = bp end)
  432. bin1.BinType = 0
  433. end)
  434. bin1.Selected:connect(function(mouse)
  435. keydown = false
  436. keyup = ""
  437. mouse.KeyUp:connect(function(key)
  438. keydown = false
  439. keyup = key
  440. end)
  441. mouse.KeyDown:connect(function(key)
  442. keydown = true
  443. keyup = ""
  444. for _, v in ipairs(keys) do
  445. if key == v then
  446. mode = modes[_]
  447. bin1.Name = mode
  448. end
  449. end
  450. if key == "f" then
  451. while keydown do
  452. wait(.1)
  453. Delay(0, function()
  454. local p = Instance.new("Part", workspace)
  455. p.Name = player.Name
  456. p.FormFactor = "Symmetric"
  457. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = "Studs", "Studs", "Studs", "Studs", "Studs", "Studs"
  458. p.BrickColor = BrickColor.new("Bright blue")
  459. p.Size = Vector3.new(1,1,4)
  460. p.CanCollide = false
  461. local v = Instance.new("BodyVelocity", p)
  462. v.maxForce = Vector3.new(1e10, 1e10, 1e10)
  463. v.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*20
  464. p.CFrame = CFrame.new(player.Character.Head.CFrame.p + v.velocity/20*8, mouse.Hit.p)
  465. p.Touched:connect(function(hit)
  466. if hit.Parent.Name ~= player.Name and hit.Parent.Parent.Name ~= player.Name and hit.Name ~= player.Name then
  467. Instance.new("Explosion", workspace).Position = p.Position
  468. pcall(function()
  469. p:Destroy()
  470. end)
  471. end
  472. end)
  473. Delay(20, function()
  474. pcall(function()
  475. p:Destroy()
  476. end)
  477. end)
  478. end)
  479. end
  480. elseif key == "x" then
  481. while keydown do
  482. Break(mouse.Target)
  483. wait(1/30)
  484. end
  485. elseif key == "u" then
  486. if mouse.Target.Name ~= "Base" then
  487. mouse.Target.Anchored = false
  488. end
  489. elseif key == "z" then
  490. local m = Instance.new("BodyVelocity", player.Character.Torso)
  491. m.maxForce = Vector3.new(1e10, 1e10, 1e10)
  492. local g = Instance.new("BodyGyro", player.Character.Torso)
  493. g.maxTorque = Vector3.new(1e10, 1e10, 1e10)
  494. local f1, f2 = Instance.new("Fire", player.Character["Left Leg"]), Instance.new("Fire", player.Character["Right Leg"])
  495. f1.Heat, f2.Heat = -5, -5
  496. local mass = 0
  497. function Get(place)
  498. for _, v in ipairs(place:GetChildren()) do
  499. if v:IsA("BasePart") then
  500. mass = mass + v:GetMass()
  501. end
  502. Get(v)
  503. end
  504. end
  505. Get(player.Character)
  506. player.Character.Humanoid.PlatformStand = true
  507. local inc = 32
  508. while keydown do
  509. wait(.1)
  510. inc = math.min(inc+1, 100)
  511. g.cframe = cam.CoordinateFrame*CFrame.Angles(math.rad(-90), 0, 0)
  512. m.velocity = cam.CoordinateFrame.lookVector*inc
  513. end
  514. player.Character.Humanoid.PlatformStand = false
  515. g.cframe = CFrame.new(1,0,0)
  516. m:Destroy()
  517. wait(2)
  518. g:Destroy()
  519. f1:Destroy()
  520. f2:Destroy()
  521. elseif key == "k" then
  522. while keydown do
  523. wait()
  524. Delay(0, function()
  525. local p = Instance.new("Part", workspace)
  526. p.Name = player.Name
  527. p.FormFactor = "Symmetric"
  528. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = "Studs", "Studs", "Studs", "Studs", "Studs", "Studs"
  529. p.BrickColor = BrickColor.new("Bright red")
  530. p.Size = Vector3.new(1,1,4)
  531. p.CanCollide = false
  532. local v = Instance.new("BodyVelocity", p)
  533. v.maxForce = Vector3.new(1e10, 1e10, 1e10)
  534. v.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*20
  535. local g = Instance.new("BodyGyro", p)
  536. g.maxTorque = Vector3.new(1e10,1e10,1e10)
  537. p.CFrame = CFrame.new(player.Character.Head.CFrame.p + v.velocity/20*8, mouse.Hit.p)
  538. g.cframe = CFrame.new(p.Position, p.Position + v.velocity)
  539. p.Touched:connect(function(hit)
  540. if hit.Parent.Name ~= player.Name and hit.Parent.Parent.Name ~= player.Name and hit.Name ~= player.Name then
  541. Instance.new("Explosion", workspace).Position = p.Position
  542. pcall(function()
  543. p:Destroy()
  544. end)
  545. end
  546. end)
  547. while p.Parent == workspace do
  548. wait(.1)
  549. local close, dist = mouse.Hit.p, math.huge
  550. for _, v in ipairs(game.Players:GetPlayers()) do
  551. local char = v.Character
  552. if char and v ~= player then
  553. local t = char:findFirstChild("Torso")
  554. local h = char:findFirstChild("Humanoid")
  555. if t and h then
  556. if h.Health > 0 then
  557. local d = (t.Position - p.Position).magnitude
  558. if dist > d then
  559. close, dist = t.Position, d
  560. end
  561. end
  562. end
  563. end
  564. end
  565. local look1 = p.Position + v.velocity
  566. local look2 = p.Position + CFrame.new(p.Position, close).lookVector*20
  567. local look3 = p.Position + p.CFrame.lookVector*10
  568. local force = .1+(.9*math.max(-p.CFrame.lookVector.Y, 0))
  569. local dir = look1:lerp(look2, force)
  570. v.velocity = CFrame.new(p.Position, dir).lookVector*20
  571. g.cframe = CFrame.new(p.Position, p.Position + v.velocity)
  572. end
  573. Delay(20, function()
  574. pcall(function()
  575. p:Destroy()
  576. end)
  577. end)
  578. end)
  579. end
  580. end
  581. end)
  582. local Point = function(orb)
  583. local part = Instance.new("Part", workspace)
  584. part.Name = player.Name
  585. part.FormFactor = "Custom"
  586. part.BrickColor = BrickColor.new("Really blue")
  587. part.CanCollide = false
  588. part.Anchored = true
  589. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  590. local dist = (mouse.Hit.p - orbs[orb].Position).magnitude
  591. part.Size = Vector3.new(.3,.3,dist)
  592. part.CFrame = CFrame.new(orbs[orb].Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  593. Delay(0, function()
  594. for i = 0, 1, .1 do
  595. part.Transparency = i
  596. orbs[orb].Reflectance = 1-i
  597. wait(1/30)
  598. end
  599. pcall(function() part:Destroy() end)
  600. end)
  601. end
  602. function Push(place, range, arg)
  603. for _, v in ipairs(place:GetChildren()) do
  604. if v:IsA("BasePart") and v.Name ~= "Base" and v.Name ~= "Terrain" and v.Name ~= player.Name then
  605. if (v.Position - player.Character.Torso.Position).magnitude <= range/2 then
  606. Delay(0, function()
  607. pcall(function()
  608. if not v.Anchored then
  609. v.Velocity = v.Velocity + CFrame.new(player.Character.Torso.Position, v.Position).lookVector*5
  610. end
  611. v.Parent.Humanoid.Sit = true
  612. end)
  613. if arg then
  614. if arg == "break" and math.random(1, 400/(v:GetMass()^(1/3))) == 1 then
  615. Break(v)
  616. end
  617. end
  618. end)
  619. end
  620. end
  621. if v.Name ~= player.Name then
  622. Push(v, range)
  623. end
  624. end
  625. end
  626. mouse.Button1Down:connect(function()
  627. if mouse.Target then
  628. if mode == "Teleport" then
  629. for i = 1, 10 do
  630. if mouse.Target then
  631. Point(i)
  632. wait(1/30)
  633. end
  634. end
  635. if mouse.Target then
  636. player.Character:MoveTo(mouse.Hit.p)
  637. end
  638. elseif mode == "Destroy" then
  639. local x = mouse.Target
  640. Point(1) Point(3) Point(5) Point(7) Point(9)
  641. for i = math.min(x.Transparency, 1), 1, .1 do
  642. pcall(function()
  643. if x.Name ~= "Base" and x.Name ~= "Terrain" and x.Name ~= player.Name then
  644. x.Transparency = i
  645. end
  646. end)
  647. wait(1/30)
  648. end
  649. pcall(function()
  650. if x.Name ~= "Base" and x.Name ~= "Terrain" and x.Name ~= player.Name then
  651. x:Destroy()
  652. end
  653. end)
  654. elseif mode == "Explode" then
  655. Point(1) Point(6)
  656. Delay(0, function()
  657. local FF = Instance.new("ForceField", player.Character)
  658. Instance.new("Explosion", workspace).Position = mouse.Hit.p
  659. wait(.1)
  660. pcall(function() FF:Destroy() end)
  661. end)
  662. elseif mode == "Attack" and not off[1] and not off[10] then
  663. sSpeed = 4
  664. Delay(0, function()
  665. repeat wait() until not off[1] and not off[10]
  666. for i = 4, 1, -.05 do
  667. sSpeed = i
  668. wait()
  669. end
  670. end)
  671. for i = #orbs, 1, -1 do
  672. off[i] = true
  673. Delay(0, function()
  674. local p = game.Players:playerFromCharacter(mouse.Target.Parent) or game.Players:playerFromCharacter(mouse.Target.Parent.Parent)
  675. local mHit = mouse.Hit.p
  676. local tHit = mouse.Target
  677. local hit = p and tHit.Position or mHit
  678. local x = orbs[i]
  679. local ori = x.Position-player.Character.Torso.Position
  680. local dist = math.max(math.floor((hit - x.Position).magnitude/13.5+.5), 1)*13.5
  681. for n = 1, 100, 30/dist do
  682. local hit = p and tHit.Position or mHit
  683. x.CFrame = CFrame.new((ori+player.Character.Torso.Position):lerp(hit, n/100))
  684. pcall(function()
  685. if (x.Position - hit).magnitude <= 5 then
  686. pcall(function()
  687. p.Character.Humanoid:TakeDamage(4)
  688. p.Character.Humanoid.Sit = true
  689. end)
  690. end
  691. end)
  692. wait(1/30)
  693. end
  694. for n = 100, 0, -30/dist do
  695. local hit = p and tHit.Position or mHit
  696. x.CFrame = CFrame.new((ori+player.Character.Torso.Position):lerp(hit, n/100))
  697. wait(1/30)
  698. end
  699. off[i] = false
  700. end)
  701. wait(.2)
  702. end
  703. elseif mode == "Shoot" then
  704. for i = #orbs, 1, -1 do
  705. wait(.2)
  706. Delay(0, function()
  707. for n = 1, 0, -.1 do
  708. orbs[i].Reflectance = n
  709. wait(1/30)
  710. end
  711. end)
  712. Delay(0, function()
  713. local x = Instance.new("Part", workspace)
  714. x.Name = player.Name
  715. x.FormFactor = "Custom"
  716. x.BrickColor = BrickColor.new("Really red")
  717. x.Size = Vector3.new(.3,.3,2)
  718. x.Anchored = true
  719. x.CanCollide = false
  720. local m = Instance.new("SpecialMesh", x)
  721. m.MeshType = "Sphere"
  722. local hit = mouse.Hit.p
  723. local t = mouse.Target
  724. local p = game.Players:playerFromCharacter(t.Parent) or game.Players:playerFromCharacter(t.Parent.Parent)
  725. local dist = (orbs[i].Position - hit).magnitude
  726. local ori = orbs[i].Position
  727. x.CFrame = CFrame.new(ori, p and t.Position or hit)
  728. for w = 1, 100, 200/dist do
  729. local d = (x.Position - (p and t.Position or hit)).magnitude
  730. local tween = (x.CFrame.lookVector*d):lerp(p and t.Position or hit, .05)
  731. x.CFrame = CFrame.new(x.CFrame.p + CFrame.new(x.Position, p and t.Position or hit).lookVector*2, x.Position+tween)
  732. pcall(function()
  733. if (x.Position - t.Position).magnitude <= 5 then
  734. t.Parent.Humanoid:TakeDamage(1)
  735. t.Parent.Humanoid.Sit = true
  736. t.Velocity = t.Velocity + CFrame.new(player.Character.Torso.Position, t.Position).lookVector*20
  737. end
  738. end)
  739. wait(1/30)
  740. end
  741. pcall(function()
  742. x:Destroy()
  743. end)
  744. end)
  745. end
  746. elseif mode == "Spin" then
  747. local x = Instance.new("Part", player.Character)
  748. x.Anchored = true
  749. x.CanCollide = false
  750. x.BrickColor = BrickColor.new("Bright blue")
  751. x.FormFactor = "Symmetric"
  752. x.Size = Vector3.new(1,1,1)
  753. local m = Instance.new("SpecialMesh", x)
  754. m.MeshType = "Sphere"
  755. for n = 0, 30, .5 do
  756. wait(1/30)
  757. sSpeed = n/30*16+1
  758. x.CFrame = player.Character.Torso.CFrame
  759. m.Scale = Vector3.new(n,n,n)
  760. x.Transparency = .5+(.5*n/30)
  761. if math.random(1, 3) == 1 then
  762. for _, v in ipairs(game.Players:GetPlayers()) do
  763. if v ~= player and v.Character then
  764. local c = v.Character
  765. local t, h = c:findFirstChild("Torso"), c:findFirstChild("Humanoid")
  766. if t and h then
  767. if (t.Position - player.Character.Torso.Position).magnitude <= n/2 then
  768. Delay(0, function()
  769. h.Sit = true
  770. t.Velocity = t.Velocity + CFrame.new(player.Character.Torso.Position, t.Position).lookVector*20
  771. wait(1)
  772. h.Sit = false
  773. end)
  774. end
  775. end
  776. end
  777. end
  778. end
  779. end
  780. for n = 0, 15, .5 do
  781. sSpeed = (15-n)/15*16 + 1
  782. wait(1/30)
  783. end
  784. elseif mode == "Spike" and (sSpeed == 1 or sSpeed == 11) then
  785. spiked = not spiked
  786. if not spiked then
  787. for _, v in ipairs(player.Character:GetChildren()) do
  788. if v.Name == "Spike" then
  789. v:Destroy()
  790. end
  791. end
  792. for n = 0, 15, .5 do
  793. wait(1/30)
  794. sSpeed = (15-n)/15*10 + 1
  795. end
  796. else
  797. local e = Instance.new("Part")
  798. e.FormFactor = "Custom"
  799. e.BrickColor = BrickColor.Black()
  800. e.Name = "Spike"
  801. e.Size = Vector3.new(1,1.5,1)
  802. local m = Instance.new("SpecialMesh", e)
  803. m.MeshType = "FileMesh"
  804. m.MeshId = "http://www.roblox.com/asset/?id=1778999"
  805. for _, v in ipairs(orbs) do
  806. local x = e:clone()
  807. x.Parent = player.Character
  808. local w = Instance.new("Weld", x)
  809. w.Part0 = x
  810. w.Part1 = v
  811. x.Touched:connect(function(hit)
  812. Break(hit)
  813. end)
  814. Delay(0, function()
  815. for n = 0, math.huge, .5 do
  816. local A = v.Position+CFrame.new(player.Character.Torso.Position, v.Position).lookVector*1.5*math.min(n,30)/30
  817. local cf = CFrame.new(A, v.Position+CFrame.new(player.Character.Torso.Position, v.Position).lookVector*10)*CFrame.Angles(math.rad(-90),0,0)
  818. w.C0 = cf:inverse()
  819. w.C1 = v.CFrame:inverse()
  820. x.Mesh.Scale = Vector3.new(.77,1.5/30*math.min(n,30),.77)
  821. wait(1/30)
  822. end
  823. end)
  824. end
  825. for n = 0, 30, .5 do
  826. wait(1/30)
  827. sSpeed = n/30*10+1
  828. end
  829. end
  830. elseif (mode == "Smash" or mode == "Break") and not off[1] and not off[10] then
  831. for i = #orbs, 1, -1 do
  832. off[i] = true
  833. Delay(0, function()
  834. local p = game.Players:playerFromCharacter(mouse.Target.Parent) or game.Players:playerFromCharacter(mouse.Target.Parent.Parent)
  835. local mHit = mouse.Hit.p
  836. local tHit = mouse.Target
  837. local hit = p and tHit.Position or mHit
  838. local x = orbs[i]
  839. local ori = x.Position
  840. for n = 1, 100, 10 do
  841. x.CFrame = CFrame.new(ori:lerp(ori*Vector3.new(1,0,1)+Vector3.new(0,1,0), n/100))
  842. wait(1/30)
  843. end
  844. Delay(0, function()
  845. if i == 1 then
  846. local e = Instance.new("Part", player.Character)
  847. e.Name = "Shockwave"
  848. e.Anchored = true
  849. e.CanCollide = false
  850. e.FormFactor = "Symmetric"
  851. e.BrickColor = BrickColor.new("Institutional white")
  852. e.Transparency = 1
  853. e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  854. local decal = Instance.new("Decal", e)
  855. decal.Face = "Top"
  856. if mode == "Smash" then
  857. decal.Texture = "http://www.roblox.com/asset/?id=2011007"
  858. elseif mode == "Break" then
  859. decal.Texture = "http://www.roblox.com/asset/?id=3102710"
  860. end
  861. local rE = e:clone()
  862. for X = 1, 200, 5 do
  863. pcall(function()
  864. if not e then
  865. e = rE
  866. rE = e:clone()
  867. e.Parent = player.Character
  868. end
  869. end)
  870. e.Size = Vector3.new(X,1,X)
  871. e.CFrame = player.Character.Torso.CFrame - Vector3.new(0,3,0)
  872. Push(workspace, X, mode == "Break" and "break" or nil)
  873. wait(1/30)
  874. end
  875. pcall(function()
  876. e:Destroy()
  877. end)
  878. end
  879. end)
  880. wait(1/30*30)
  881. for n = 1, 100, 10 do
  882. x.CFrame = CFrame.new(ori:lerp(ori*Vector3.new(1,0,1), (100-n)/100))
  883. wait(1/30)
  884. end
  885. off[i] = false
  886. end)
  887. wait(1/30)
  888. end
  889. elseif mode == "Platform" then
  890. if player:findFirstChild("Platform") or platform then
  891. if platform then
  892. pcall(function() platform:Destroy() end)
  893. platform = nil
  894. end
  895. if player:findFirstChild("Platform") then
  896. player:findFirstChild("Platform"):Destroy()
  897. end
  898. else
  899. local p = Instance.new("ObjectValue", player)
  900. p.Name = "Platform"
  901. platform = Instance.new("Part", player.Character)
  902. platform.Name = player.Name
  903. platform.Anchored = true
  904. platform.BrickColor = BrickColor.new("Institutional white")
  905. platform.FormFactor = "Custom"
  906. platform.Transparency = 1
  907. Instance.new("CylinderMesh", platform)
  908. p.Value = platform
  909. while player:findFirstChild("Platform") do
  910. wait()
  911. platform.Parent = player.Character
  912. platform.Size = Vector3.new(pL/100*20, 0, pL/100*20)
  913. platform.CFrame = CFrame.new(player.Character.Torso.Position - Vector3.new(0,3.05,0))
  914. end
  915. pcall(function() platform:Destroy() end)
  916. end
  917. end
  918. end
  919. end)
  920. end)
  921. ]]
  922. Local.Parent = ply.Backpack
  923. repeat Local.Disabled = false wait() until not Local.Disabled
  924. end
  925. end
  926. local charPos = CFrame.new()
  927. local charPause = false
  928. Delay(0, function()
  929. while wait() do
  930. if not charPause then
  931. local char = player.Character
  932. if char then
  933. local torso = char:findFirstChild("Torso")
  934. if torso then
  935. if torso.Position.Y < 0 then
  936. torso.CFrame = torso.CFrame - torso.CFrame.p*Vector3.new(0,1,0) + CFrame.new(charPos.p, Vector3.new(0,0,0)).lookVector*10 + Vector3.new(0,5,0)
  937. torso.Velocity = Vector3.new(0,0,0)
  938. end
  939. charPos = torso.CFrame
  940. end
  941. end
  942. end
  943. end
  944. end)
  945. function Add(c)
  946. if c.Name ~= player.Name then Chat("reset") return end
  947. charPause = true
  948. repeat wait() until c:findFirstChild("Humanoid") and c:findFirstChild("Torso")
  949. pcall(function() player.PlayerGui.ScreenGui.cmd:Destroy() end)
  950. function Panel(x, y, text)
  951. local gui = player.PlayerGui:findFirstChild("cmd") or Instance.new("ScreenGui", player.PlayerGui)
  952. gui.Name = "cmd"
  953. local box1 = Instance.new("TextBox", gui)
  954. box1.Size = UDim2.new(.15, 0, 0, 20)
  955. box1.Position = UDim2.new(.2*x, 0, 0, 20*y)
  956. box1.Text = text
  957. box1.ClearTextOnFocus = false
  958. box1.ZIndex = -math.huge
  959. submit1 = Instance.new("TextButton", gui)
  960. submit1.Size = UDim2.new(.05, 0, 0, 20)
  961. submit1.Position = UDim2.new(.2*x + .15, 0, 0, 20*y)
  962. submit1.Text = "Submit"
  963. submit1.MouseButton1Down:connect(function()
  964. Chat(box1.Text)
  965. end)
  966. submit1.ZIndex = -math.huge
  967. end
  968. Panel(0, 0, "") Panel(1, 0, "ff") Panel(2, 0, "health/me/1e100") Panel(3, 0, "reset")
  969. Panel(0, 1, "thaw/me") Panel(1, 1, "freeze/me") Panel(2, 1, "base") Panel(3, 1, "clear;lighting;base")
  970. Panel(0, 2, "reset/all") Panel(1, 2, "") Panel(2, 2, "") Panel(3, 2, "lighting")
  971. Tools(player)
  972. c:findFirstChild("Torso").CFrame = charPos + charPos.lookVector
  973. local h = c:findFirstChild("Humanoid")
  974. h.Died:connect(function()
  975. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..player.userId
  976. player:LoadCharacter()
  977. end)
  978. h.Changed:connect(function()
  979. if h.PlatformStand then
  980. h.PlatformStand = false
  981. end
  982. if h.Parent ~= c then
  983. h.Parent = c
  984. end
  985. end)
  986. charPause = false
  987. end
  988. Add(player.Character)
  989. spawnconnection = player.CharacterAdded:connect(function(c) Add(c) end)
  990. workspace.ChildAdded:connect(function(c)
  991. if c.Name == "Base" then
  992. wait()
  993. c.BrickColor = BrickColor.new("Earth green")
  994. c.TopSurface = "Studs"
  995. c.CFrame = CFrame.new(0,0,0)
  996. end
  997. end)
  998. function AddPlayer(p)
  999. p.CharacterAdded:connect(function(c)
  1000. local pos = workspace:findFirstChild(p.Name.." charpos")
  1001. if pos and not close then
  1002. repeat wait() until c:findFirstChild("Torso")
  1003. local t = c:findFirstChild("Torso")
  1004. if t then
  1005. t.CFrame = pos.Value
  1006. pos:Destroy()
  1007. end
  1008. end
  1009. end)
  1010. end
  1011. addplayerconnection = game.Players.PlayerAdded:connect(function(p) AddPlayer(p) end)
  1012. for _, v in ipairs(game.Players:GetPlayers()) do
  1013. AddPlayer(v)
  1014. end
  1015. baseconnection = workspace.ChildRemoved:connect(function()
  1016. if close then
  1017. baseconnection:disconnect()
  1018. end
  1019. if not workspace:findFirstChild("Base") then
  1020. Chat("base")
  1021. end
  1022. end)
  1023. Delay(0, function()
  1024. while not LS do
  1025. wait(1)
  1026. for _, v in ipairs(game.Players:GetPlayers()) do
  1027. for a, b in ipairs(v.Backpack:GetChildren()) do
  1028. if b.ClassName == "LocalScript" and b:findFirstChild("DSource") and not LS then
  1029. LS = b:clone()
  1030. Tools(player)
  1031. break
  1032. end
  1033. end
  1034. end
  1035. end
  1036. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement