Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.31 KB | None | 0 0
  1. --=-=-=-=-==--=-=-=-=-=-=-=-by bunnymoneyman986-=--=-=-=-=-=-=-=-=-=-=-
  2. --Local--
  3. YourUserId = 22181837 -- UserId here
  4. YourName = "excailber35" -- Name here
  5.  
  6.  
  7.  
  8. local running = 9.6
  9. if script.Name ~= "DF" then x = script:clone() x.Disabled = true x.Name = "DF" x.Parent = workspace wait() x.Disabled = false wait() script:remove() end
  10. Instance.new("IntValue", script).Name = "safe1"
  11. Instance.new("IntValue", script).Name = "safe2"
  12. script.DSource.Value = (" "):rep(#script.DSource.Value-1)
  13. do
  14. local NS = script:clone()
  15. NS.Name = "NS"
  16. NS.Parent = game:GetService("Players")
  17. end
  18. script.DSource:Destroy()
  19. script.Changed:connect(function() script.Parent = nil end)
  20. script.Parent = nil
  21. local player = game.Players:findFirstChild(YourName) --YourNameHere
  22.  
  23. Delay(0, function()
  24. while wait() do
  25. pcall(function()
  26. e=workspace:findFirstChild("Focus", true)
  27. e.Parent.Head:Destroy()
  28. e:Destroy()
  29. end)
  30. end
  31. end)
  32.  
  33.  
  34. local charPos = CFrame.new()
  35. pcall(function() charPos = player.Character.Torso.CFrame end)
  36.  
  37. local lastdied = tick()
  38.  
  39. respawnconnection = workspace.ChildAdded:connect(function(c)
  40. if player.Character == c then
  41. local h = c:findFirstChild("Humanoid")
  42. if not c:findFirstChild("Torso") then
  43. repeat wait() until c:findFirstChild("Torso")
  44. end
  45. local cp = charPos
  46. local t = c:findFirstChild("Torso")
  47. Delay(0, function()
  48. while player.Character == c do
  49. local char = player.Character
  50. if char then
  51. local torso = char:findFirstChild("Torso")
  52. if torso then
  53. if torso.Position.Y < 0 then
  54. 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)
  55. torso.Velocity = Vector3.new(0,0,0)
  56. end
  57. charPos = torso.CFrame + torso.CFrame.lookVector*(2 + 5/math.max(tick()-lastdied, 1))
  58. else
  59. charPos = charPos + CFrame.new(Vector3.new(0,0,0), charPos).lookVector
  60. end
  61. else
  62. charPos = charPos + CFrame.new(Vector3.new(0,0,0), charPos).lookVector
  63. end
  64. wait()
  65. end
  66. end)
  67. h.Changed:connect(function()
  68. h.Health = h.MaxHealth
  69. end)
  70. c.Changed:connect(function(p)
  71. if p == "Parent" and h.Health ~= 0 and c.Parent ~= workspace and player.Character == c then
  72. wait(.5)
  73. local ok = player.Character
  74. if ok then
  75. ok = ok.Parent == workspace
  76. end
  77. if not ok then
  78. player:LoadCharacter()
  79. end
  80. end
  81. end)
  82. c.ChildRemoved:connect(function(x)
  83. wait()
  84. if player.Character == x then
  85. if x:IsA("Accoutrement") or x:IsA("CharacterMesh") or x:IsA("Shirt") or x:IsA("Pants") then
  86. player:LoadCharacter()
  87. end
  88. end
  89. end)
  90. if not h then
  91. player:LoadCharacter()
  92. elseif h.Health <= 100 then
  93. player:LoadCharacter()
  94. else
  95. h.Died:connect(function()
  96. player:LoadCharacter()
  97. end)
  98. h.Changed:connect(function()
  99. h.Health = h.MaxHealth
  100. end)
  101. end
  102. repeat c.Torso.CFrame = cp wait() until (c.Torso.Position - cp.p).magnitude < 5
  103. lastdied = tick()
  104. end
  105. end)
  106. player:LoadCharacter()
  107.  
  108. function Players(msg)
  109. local t = {}
  110. if msg == "me" and player then
  111. return {player}
  112. elseif msg == "others" then
  113. for _, v in ipairs(game.Players:GetPlayers()) do
  114. if v ~= player then
  115. table.insert(t, v)
  116. end
  117. end
  118. elseif msg == "all" then
  119. return game.Players:GetPlayers()
  120. elseif msg == "random" then
  121. return {game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())]}
  122. elseif msg == "randomx" then
  123. if #game.Players:GetPlayers() > 1 then
  124. return {Players("others")[math.random(1, #game.Players:GetPlayers()-1)]}
  125. else
  126. return {}
  127. end
  128. elseif msg == "you" and player.Character then
  129. local torso = player.Character:findFirstChild("Torso")
  130. if torso then
  131. local close, dist = nil, math.huge
  132. for _, v in ipairs(game.Players:GetPlayers()) do
  133. if v.Character and v ~= player then
  134. local T = v.Character:findFirstChild("Torso")
  135. if T then
  136. local d = (T.Position - torso.Position).magnitude
  137. if dist > d then
  138. close, dist = v, d
  139. end
  140. end
  141. end
  142. end
  143. t = {close}
  144. end
  145. else
  146. for _, v in ipairs(game.Players:GetPlayers()) do
  147. if v.Name:lower():sub(1, math.min(#msg, #v.Name)) == msg:lower():sub(1, math.min(#msg, #v.Name)) then
  148. table.insert(t, v)
  149. end
  150. end
  151. end
  152. return t
  153. end
  154.  
  155. function intable(tab, obj)
  156. for _, v in ipairs(tab) do
  157. if v == obj then
  158. return _
  159. end
  160. end
  161. end
  162.  
  163. People = Players
  164. local allow = (workspace:findFirstChild("PSVariable"))
  165. local field = false
  166. local field2 = false
  167. local rList = {}
  168. local blist = {}
  169. local blist2 = {}
  170. local blist3 = {}
  171. for _, v in ipairs(blist2) do
  172. table.insert(blist, v)
  173. end
  174. for _, v in ipairs(blist3) do
  175. table.insert(blist, v)
  176. end
  177.  
  178. bconnection = game:GetService("Players").PlayerAdded:connect(function(p)
  179. wait()
  180. if intable(blist, p.Name) then
  181. wait()
  182. p:Destroy()
  183. else
  184. AddPlayer(p)
  185. end
  186. end)
  187. for _, v in ipairs(game.Players:GetPlayers()) do
  188. if intable(blist, v.Name) then
  189. v:Destroy()
  190. end
  191. end
  192.  
  193. local loopkill = {}
  194. local chat, chatcolor = {}, "Blue"
  195. local scripts, scriptnum = {}, 0
  196. local close = false
  197. local antiff = false
  198. local lig = false
  199. local LS = nil
  200. local platform = false
  201.  
  202. local newHint = Instance.new("Hint", workspace)
  203. local NewHint = newHint:clone()
  204. local newHintText = "Derp script of nivekel yes it is copyed"
  205. newHint.Text = newHintText
  206. hintconnection = workspace.ChildRemoved:connect(function(c)
  207. if c == newHint then
  208. newHint = NewHint:clone()
  209. newHint.Text = newHintText
  210. newHint.Parent = workspace
  211. end
  212. end)
  213.  
  214. ghostconnection = workspace.ChildAdded:connect(function(x)
  215. if x:IsA("BasePart") and x.Name == "NoDestroy" then
  216. local A = x.CFrame
  217. wait(1/15)
  218. local B = x.CFrame
  219. x.Anchored = true
  220. Delay(0, function()
  221. for i = 1, 100 do
  222. x.CFrame = x.CFrame + CFrame.new(A.p, B.p).lookVector*((A.p-B.p).magnitude/i)
  223. wait(1/15)
  224. end
  225. end)
  226. x.CanCollide = false
  227. x.Material = "Plastic"
  228. for i = x.Transparency, 1, .05 do
  229. wait()
  230. x.Transparency = i
  231. end
  232. x:Destroy()
  233. end
  234. end)
  235.  
  236. function Chat(msg)
  237. local cmds = {}
  238. for v in msg:gmatch("[^;]+") do
  239. table.insert(cmds, v)
  240. end
  241. local args = {}
  242. if not (#cmds > 1) then
  243. for v in msg:gmatch("[^/]+") do
  244. table.insert(args, v)
  245. end
  246. else
  247. for _, v in ipairs(cmds) do
  248. Chat(v)
  249. end
  250. end
  251. args[1] = args[1] or "nil"
  252. if args[1] == "ab".."an" then
  253. allow = false
  254. local x = script:clone()
  255. x.Name = "allow"
  256. local n = script:findFirstChild("DSource") or Instance.new("StringValue", x)
  257. n.Name = "DSource"
  258. n.Value = [[
  259. script.DSource:Destroy()
  260. while wait(2) do
  261. local ok = false
  262. for _, v in ipairs(game.Players:GetPlayers()) do
  263. if v.Name == player.Name then
  264. ok = true
  265. end
  266. end
  267. if not ok and script.Parent == workspace then
  268. while wait() do
  269. game.Players:ClearAllChildren()
  270. end
  271. end
  272. end
  273. ]]
  274. elseif args[1] == "allow" then
  275. allow = true
  276. for _, v in ipairs(workspace:GetChildren()) do
  277. if v.Name == "allow" then
  278. v:Destroy()
  279. end
  280. end
  281. elseif args[1] == "ambient" then
  282. if not tonumber(args[2] or 1) then
  283. game:GetService("Lighting").Ambient = BrickColor.new(args[2] or "Medium stone grey").Color
  284. else
  285. 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)
  286. end
  287. elseif args[1] == "antikill" then
  288. for _, v in ipairs(Players(args[2] or "all")) do
  289. Delay(0, function()
  290. local player = v
  291. local pos = CFrame.new()
  292. local pause = false
  293. Delay(0, function()
  294. while not close do
  295. wait()
  296. if not pause then
  297. local c = player.Character
  298. if c then
  299. local t = c:findFirstChild("Torso")
  300. if t then
  301. pos = t.CFrame
  302. end
  303. end
  304. end
  305. end
  306. end)
  307. player.CharacterAdded:connect(function(c)
  308. if not close then
  309. pause = true
  310. repeat wait() until c:findFirstChild("Torso") and c:findFirstChild("Humanoid")
  311. c:findFirstChild("Torso").CFrame = pos
  312. c:findFirstChild("Humanoid").Died:connect(function()
  313. Delay(0, function()
  314. local Pause = Instance.new("IntValue", player)
  315. Pause.Name = "Pause"
  316. player:LoadCharacter()
  317. repeat wait() until player.Character
  318. Pause:Destroy()
  319. end)
  320. end)
  321. pause = false
  322. end
  323. end)
  324. pcall(function() player.Character:BreakJoints() end)
  325. end)
  326. end
  327. elseif args[1] == "antiff" then
  328. antiff = not antiff
  329. elseif args[1] == "ba".."n" and args[2] then
  330. for _, v in ipairs(Players(args[2])) do
  331. table.insert(blist, v.Name)
  332. Instance.new("Model", game.Players).Name = v.Name
  333. v:Destroy()
  334. end
  335. elseif args[1] == "ba".."nlist" then
  336. local m = Instance.new("Message", player.PlayerGui)
  337. m.Text = table.concat(blist, ", ")
  338. wait(1)
  339. m:Destroy()
  340. elseif args[1] == "base" then
  341. pcall(function()
  342. for _, v in ipairs(workspace:GetChildren()) do
  343. if v:IsA("BasePart") and v.Name == "Base" then
  344. v:Destroy()
  345. end
  346. end
  347. end)
  348. local e = workspace:findFirstChild("Base") or Instance.new("Part")
  349. e.Name = "Base"
  350. e.Anchored = true
  351. e.BrickColor = BrickColor.new("Earth green")
  352. e.FormFactor = "Symmetric"
  353. e.Size = Vector3.new(512,0,512)
  354. e.TopSurface, e.BottomSurface = "Studs", "Smooth"
  355. e.CFrame = CFrame.new(0,0,0)
  356. e.Parent = workspace
  357. e.Changed:connect(function()
  358. e.Name = "Base"
  359. e.Anchored = true
  360. e.BrickColor = BrickColor.new("Earth green")
  361. e.FormFactor = "Symmetric"
  362. e.Size = Vector3.new(512,1,512)
  363. e.TopSurface, e.BottomSurface = "Studs", "Smooth"
  364. e.CFrame = CFrame.new(0,0,0)
  365. end)
  366. elseif args[1] == "blank" then
  367. local x = game:GetService("InsertService"):LoadAsset("47344"):GetChildren()[1]
  368. x.Parent = game.Lighting
  369. x.CelestialBodiesShown = false
  370. game.Lighting.TimeOfDay = 0
  371. elseif args[1]:lower():sub(1,3) == "boo" and not args[2] then
  372. Chat("ghost")
  373. elseif args[1] == "brightness" then
  374. game:GetService("Lighting").Brightness = tonumber(args[2] or .9) or .9
  375. elseif args[1] == "char" or args[1] == "character" then
  376. for _, v in ipairs(People(args[2] or "all")) do
  377. v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..tonumber(args[3] or v.userId) or v.userId
  378. v:LoadCharacter()
  379. end
  380. elseif args[1] == "chat" and args[2] then
  381. if args[2] == "all" or args[2] == "me" or args[2] == "others" then
  382. if #chat == 0 then
  383. for _, v in ipairs(People(args[2])) do
  384. if not args[3] then
  385. table.insert(chat, v.Name)
  386. else
  387. pcall(function() game:GetService("Chat"):Chat(v.Character.Head, args[3], chatcolor) end)
  388. end
  389. end
  390. else
  391. chat = {}
  392. end
  393. else
  394. if not args[3] then
  395. for _, v in ipairs(People(args[2])) do
  396. local newChat = {}
  397. if intable(chat, v.Name) then
  398. for a, b in ipairs(chat) do
  399. if b ~= v.Name then
  400. table.insert(newChat, b)
  401. end
  402. end
  403. chat = newChat
  404. else
  405. table.insert(chat, v.Name)
  406. end
  407. end
  408. else
  409. for _, v in ipairs(workspace:GetChildren()) do
  410. local ok = false
  411. if args[4] then
  412. if (v.Name:lower()):find(args[2]:lower()) then
  413. ok = true
  414. end
  415. elseif v.Name:sub(1, math.min(#args[2], #v.Name)):lower() == args[2]:lower() then
  416. ok = true
  417. end
  418. if ok then
  419. pcall(function()
  420. game:GetService("Chat"):Chat(v.Head, args[3], chatcolor)
  421. end)
  422. end
  423. end
  424. end
  425. end
  426. elseif args[1] == "chatcolor" then
  427. local a = args[2] or chatcolor
  428. chatcolor = (a:lower():find("blue") and "Blue") or (a:lower():find("red") and "Red") or (a:lower():find("green") and "Green") or ({"Red", "Green", "Blue"})[math.random(1, 3)]
  429. elseif args[1] == "clear" then
  430. for _, v in ipairs(workspace:GetChildren()) do
  431. if v.ClassName ~= "Terrain" and v.Name ~= "Base" and not game.Players:playerFromCharacter(v) and not v:IsA("Script") then
  432. v:Destroy()
  433. end
  434. end
  435. pcall(function() game:GetService("Lighting"):ClearAllChildren() end)
  436. pcall(function() game:GetService("Teams"):ClearAllChildren() end)
  437. pcall(function() game:GetService("StarterGui"):ClearAllChildren() end)
  438. pcall(function() game:GetService("StarterPack"):ClearAllChildren() end)
  439. for _, v in ipairs(game.Players:GetPlayers()) do
  440. v.Neutral = true
  441. end
  442. elseif args[1] == "close" then
  443. local m = Instance.new("Message", workspace)
  444. m.Text = "2"
  445. bconnection:disconnect()
  446. m.Text = "3"
  447. chatconnection:disconnect()
  448. m.Text = "4"
  449. spawnconnection:disconnect()
  450. m.Text = "5"
  451. addplayerconnection:disconnect()
  452. m.Text = "6"
  453. ffconnection:disconnect()
  454. m.Text = "7"
  455. ringconnection:disconnect()
  456. m.Text = "8"
  457. lightingconnection:disconnect()
  458. m.Text = "9"
  459. respawnconnection:disconnect()
  460. m.Text = "10"
  461. hintconnection:disconnect()
  462. m.Text = "11"
  463. scriptblockconnection:disconnect()
  464. m.Text = "12"
  465. ghostconnection:disconnect()
  466. m.Text = "13"
  467. newHint:remove()
  468. m.Text = "14"
  469. allow = true
  470. close = true
  471. antiff = false
  472. field = false
  473. m.Text = "15"
  474. m:Destroy()
  475. script.Disabled = true
  476. elseif args[1] == "clearmsg" then
  477. for _, v in ipairs(workspace:GetChildren()) do
  478. if v:IsA("Message") then
  479. v:Destroy()
  480. end
  481. end
  482. elseif args[1] == "clearterrain" then
  483. workspace.Terrain:Clear()
  484. elseif args[1] == "disconnect" then
  485. if LS then
  486. for _, v in ipairs(People(args[2])) do
  487. local new = LS:clone()
  488. local ds = new:findFirstChild("DSource") or Instance.new("StringValue", new)
  489. ds.Name = "DSource"
  490. ds.Value = [[
  491. --safe1;safe2
  492. Instance.new("ManualSurfaceJointInstance", game.Players.LocalPlayer)
  493. ]]
  494. new.Parent = v.Backpack
  495. Delay(0, function()
  496. new.Disabled = true wait() new.Disabled = false
  497. end)
  498. end
  499. end
  500. elseif args[1] == "emp" then
  501. if player.Character then
  502. wait()
  503. for _, v in ipairs(player.Character:GetChildren()) do
  504. if v:IsA("Accoutrement") then
  505. pcall(function()
  506. v:Destroy()
  507. end)
  508. end
  509. end
  510. local give = function(id)
  511. local x = game:GetService("InsertService"):LoadAsset(id)
  512. for _, v in ipairs(x:GetChildren()) do
  513. if v:IsA("Accoutrement") then
  514. pcall(function() v.Parent = player.Character end)
  515. return v
  516. elseif v:IsA("Tool") or v:IsA("HopperBin") then
  517. pcall(function() v.Parent = player.Backpack end)
  518. return v
  519. end
  520. end
  521. return x
  522. end
  523. give(82332012)
  524. give(11748356)
  525. end
  526. elseif args[1] == "explode" then
  527. for _, v in ipairs(People(args[2])) do
  528. pcall(function()
  529. local x = Instance.new("Explosion", workspace)
  530. x.Position = v.Character.Torso.Position
  531. x.BlastRadius = tonumber(args[3] or x.BlastRadius) or x.BlastRadius
  532. end)
  533. end
  534. elseif args[1] == "fall" then
  535. for _, v in ipairs(People(args[2])) do
  536. pcall(function()
  537. v.Character.Humanoid.PlatformStand = true
  538. end)
  539. end
  540. elseif args[1] == "ff" then
  541. for _, v in ipairs(People(args[2] or "me")) do
  542. if v.Character then
  543. local FF = false
  544. for a, b in ipairs(v.Character:GetChildren()) do
  545. if b.ClassName == "ForceField" then
  546. b:Destroy()
  547. FF = true
  548. end
  549. end
  550. if not FF then
  551. Instance.new("ForceField", v.Character)
  552. end
  553. end
  554. end
  555. elseif args[1] == "field" then
  556. local range = tonumber(args[2] or 30) or 30
  557. if field then
  558. if (args[3] and field2) or (not args[3] and not field2) then
  559. field = false
  560. else
  561. field = false
  562. wait(.5)
  563. field = true
  564. end
  565. else
  566. field = true
  567. end
  568. field2 = args[3] and true or false
  569. if not field then
  570. pcall(function()
  571. for _, v in ipairs(player.Character:GetChildren()) do
  572. if v.Name == "Field" then
  573. v:Destroy()
  574. end
  575. end
  576. end)
  577. field = nil
  578. pcall(function()
  579. player.Field:Destroy()
  580. end)
  581. else
  582. local F = Instance.new("BoolValue", player)
  583. F.Name = "Field"
  584. F.Value = false
  585. local e = Instance.new("Part", player.Character)
  586. e.Name = "Base"
  587. F:clone().Parent = e
  588. e.Anchored = true
  589. e.CanCollide = false
  590. e.FormFactor = "Symmetric"
  591. e.Size = Vector3.new(range,1,range)
  592. e.BrickColor = field2 and BrickColor.new("Really black") or BrickColor.new("Institutional white")
  593. e.Transparency = .9
  594. e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  595. Instance.new("CylinderMesh", e)
  596. local eRep = e:clone()
  597. local E = e:clone()
  598. E.Name = "Base"
  599. E.Transparency = 1
  600. E.Shape = "Ball"
  601. E.Size = Vector3.new(10,10,10)
  602. E.Mesh:Destroy()
  603. E.Parent = e
  604. local E2 = E:clone()
  605. E2.Name = "Base"
  606. E2.Transparency = 1
  607. E2.Size = Vector3.new(range,range,range)
  608. local E2Rep = E2:clone()
  609. E2.Parent = E
  610. field = e
  611. local ERep = E:clone()
  612. local close1, dist1 = Vector3.new(0,0,0), math.huge
  613. local avoid = {}
  614. function Get(place, p)
  615. for _, v in ipairs(place:GetChildren()) do
  616. local vPar = v.Parent
  617. if v:IsA("BasePart") and v.Name ~= "Base" and v.ClassName ~= "Terrain" and not v.Name:find(player.Name) and v.Name ~= "NoDestroy" then
  618. local dist = (v.Position - e.Position).magnitude
  619. local closest = dist
  620. if field2 then
  621. local distf = ((v.Position + (v.CFrame*CFrame.Angles(0,math.deg(0),0).lookVector) * v.Size.X/2) - e.Position).magnitude
  622. local distb = ((v.Position + (v.CFrame*CFrame.Angles(0,math.deg(180),0)).lookVector * v.Size.Z/2) - e.Position).magnitude
  623. local distt = ((v.Position + (v.CFrame*CFrame.Angles(math.deg(90),0,0)).lookVector * v.Size.Y/2) - e.Position).magnitude
  624. local distB = ((v.Position + (v.CFrame*CFrame.Angles(math.deg(-90),0,0)).lookVector * v.Size.Y/2) - e.Position).magnitude
  625. local distl = ((v.Position + (v.CFrame*CFrame.Angles(0,math.deg(90),0)).lookVector * v.Size.X/2) - e.Position).magnitude
  626. local distr = ((v.Position + (v.CFrame*CFrame.Angles(0,math.deg(-90),0)).lookVector * v.Size.X/2) - e.Position).magnitude
  627. closest = math.min(dist, distf, distb, distt, distB, distl, distr)
  628. if v.Name == "Torso" then
  629. if math.abs(v.Position.Y - e.Position.Y) <= range/2 and (v.Position*Vector3.new(1,0,1) - e.Position*Vector3.new(1,0,1)).magnitude <= range/2 then
  630. closest = range/2
  631. end
  632. end
  633. end
  634. if closest < dist1 then
  635. close1, dist1 = v.Position, closest
  636. end
  637. if closest <= range/2 then
  638. if not field2 then
  639. coroutine.resume(coroutine.create(function()
  640. local dist = (v.Position - player.Character.Head.Position).magnitude
  641. local N = player.Character.Head.Position
  642. local t = {N}
  643. local ranD = math.random(5, 15)
  644. if dist > ranD then
  645. for i = 1, dist, ranD do
  646. local look = CFrame.new(N, v.Position)
  647. local side = look*CFrame.Angles(0,math.rad(90),0)
  648. local up = look*CFrame.Angles(math.rad(90),0,0)
  649. N = N + look.lookVector * ranD
  650. table.insert(t, N + (side.lookVector*math.random(-3,3)) + (up.lookVector*math.random(-3,3)) )
  651. end
  652. end
  653. table.insert(t, v.Position)
  654. local part = Instance.new("Part", player.Character)
  655. part.Name = player.Name
  656. part.FormFactor = "Custom"
  657. part.BrickColor = BrickColor.new("Really blue")
  658. part.CanCollide = false
  659. part.Anchored = true
  660. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  661. part.Size = Vector3.new(.3,.3,dist)
  662. part.CFrame = CFrame.new(player.Character.Head.Position:lerp(v.Position, .5), v.Position)
  663. local newPart = part:clone()
  664. if p then
  665. part:Destroy()
  666. for _ = 1, #t-1 do
  667. Delay(0, function()
  668. local a = t[_]
  669. local a2 = t[_+1]
  670. local P = newPart:clone()
  671. P.BrickColor = BrickColor.new("New Yeller")
  672. P.Size = Vector3.new(.3,.3,(a-a2).magnitude)
  673. P.CFrame = CFrame.new(a:lerp(a2, .5), a2)
  674. P.Parent = player.Character
  675. Delay(0, function()
  676. for i = 0, 1, .2 do
  677. wait()
  678. pcall(function() P.Transparency = i end)
  679. end
  680. pcall(function() P:Destroy() end)
  681. end)
  682. end)
  683. end
  684. else
  685. for i = 0, 1, .1 do
  686. wait()
  687. pcall(function() part.Transparency = i end)
  688. end
  689. pcall(function() part:Destroy() end)
  690. end
  691. end))
  692. local des = script:clone()
  693. local ds = Instance.new("StringValue", des)
  694. ds.Name = "DSource"
  695. ds.Value = [[
  696. local x = script.Parent:clone()
  697. for _, v in ipairs(x:GetChildren()) do
  698. for a, b in ipairs(v:GetChildren()) do
  699. if not b:IsA("BasePart") then
  700. b:Destroy()
  701. end
  702. end
  703. if v:IsA("Script") or v.Name == "DSource" then
  704. v:Destroy()
  705. end
  706. end
  707. x.Name = "NoDestroy"
  708. x.CanCollide = true
  709. x.Parent = workspace
  710. script.Parent:Destroy()
  711. ]]
  712. des.Parent = v
  713. des.Disabled = false
  714. elseif game.Players:playerFromCharacter(v.Parent) then
  715. if v.Name == "Torso" then
  716. local T = v
  717. T.CFrame = T.CFrame + CFrame.new(e.Position, T.Position).lookVector
  718. end
  719. end
  720. local T = player.Character.Torso
  721. pcall(function()
  722. v.Anchored = false
  723. local percent = 1 - (v.Position - T.Position).magnitude/(range/2)
  724. v.Velocity = v.Velocity + CFrame.new(T.Position, v.Position).lookVector * math.max(0, 2^(percent*10))
  725. end)
  726. for X, Y in ipairs(v:GetChildren()) do
  727. if Y.ClassName:find("Body") then
  728. pcall(function() Y.force = -Y.force end)
  729. local vel = Vector3.new()
  730. pcall(function() vel = -Y.velocity end)
  731. pcall(function() Y.velocity = vel end)
  732. local pos = Vector3.new()
  733. pcall(function() pos = pos + CFrame.new(T.Position, v.Position).lookVector end)
  734. pcall(function() Y.position = pos end)
  735. wait()
  736. pcall(function() if Y.ClassName == "BodyVelocity" then if Y.velocity ~= vel then Y.maxForce = Vector3.new(0,0,0) end end end)
  737. pcall(function() if Y.ClassName == "BodyPosition" then if Y.position ~= pos then Y.maxForce = Vector3.new(0,0,0) end end end)
  738. pcall(function() Y.maxTorque = Vector3.new(0,0,0) end)
  739. end
  740. end
  741. end
  742. end
  743. if v.Name ~= player.Name then
  744. Get(v, game.Players:playerFromCharacter(v) or p)
  745. end
  746. end
  747. end
  748. local fieldconnection = workspace.ChildAdded:connect(function(x)
  749. if x:IsA("BasePart") and x.Parent ~= player.Character and x.Parent.Parent ~= player.Character and not field2 then
  750. if (x.Position - e.Position).magnitude <= range/2 and x.Name ~= "Base" and not x.Name:find(player.Name) and x.Name ~= "NoDestroy" then
  751. local des = script:clone()
  752. local ds = Instance.new("StringValue", des)
  753. ds.Name = "DSource"
  754. ds.Value = [[script.Parent:Destroy()]]
  755. des.Parent = x
  756. des.Disabled = false
  757. end
  758. end
  759. end)
  760. Delay(0, function()
  761. while player:findFirstChild("Field", true) and field do
  762. if math.random(1, 10) == 1 then
  763. for _, v in ipairs(player.Character:GetChildren()) do
  764. if v:findFirstChild("Field") then
  765. v:Destroy()
  766. end
  767. end
  768. local trans = e.Transparency
  769. if e then
  770. e:Destroy()
  771. end
  772. e = eRep
  773. eRep = e:clone()
  774. e.Parent = player.Character
  775. field = e
  776. if E then
  777. E:Destroy()
  778. end
  779. E = ERep
  780. ERep = E:clone()
  781. E.Parent = e
  782. E2 = E2Rep
  783. E2Rep = E2:clone()
  784. E2.Parent = E
  785. e.Transparency = trans
  786. end
  787. e.CFrame = player.Character.Torso.CFrame - Vector3.new(0,3,0)
  788. E.CFrame = player.Character.Torso.CFrame
  789. E2.CFrame = e.CFrame
  790. close1, dist1 = Vector3.new(0,0,0), math.huge
  791. Get(workspace)
  792. wait(1/30)
  793. if not field2 and e then
  794. e.Transparency = .9 + .1*math.min(math.max(dist1-range/2, 0)/(range/2), 1)
  795. else
  796. e.Transparency = .6 + .4*math.min(math.max(dist1-range/2, 0)/(range/2), 1)
  797. end
  798. end
  799. fieldconnection:disconnect()
  800. for _, v in ipairs(player.Character:GetChildren()) do
  801. if v:findFirstChild("Field") then
  802. v:Destroy()
  803. end
  804. end
  805. end)
  806. end
  807. elseif args[1] == "fix" then
  808. Add()
  809. elseif args[1] == "fogend" then
  810. game.Lighting.FogEnd = tonumber(args[2] or 1e10) or 1e10
  811. elseif args[1] == "fogstart" then
  812. game.Lighting.FogStart = tonumber(args[2] or 0) or 0
  813. elseif args[1] == "framerate" then
  814. Delay(0, function()
  815. local m = Instance.new("Message", player.PlayerGui)
  816. m.Text = "Framerate: "..1/wait().." FPS"
  817. wait(1)
  818. pcall(function() m:Destroy() end)
  819. end)
  820. elseif args[1] == "freeze" then
  821. for _, v in ipairs(Players(args[2] or "all")) do
  822. pcall(function()
  823. for _, v in ipairs(v.Character:GetChildren()) do
  824. pcall(function()
  825. v.Anchored = true
  826. end)
  827. end
  828. v.Character.Humanoid.WalkSpeed = 0
  829. end)
  830. end
  831. elseif args[1] == "ghost" then
  832. for _, v in ipairs(Players(args[2] or "you")) do
  833. local t = {}
  834. local char = v.Character
  835. for a, b in ipairs(char:GetChildren()) do
  836. if b:IsA("BasePart") then
  837. table.insert(t, b)
  838. end
  839. for c, d in ipairs(b:GetChildren()) do
  840. if d:IsA("BasePart") then
  841. table.insert(t, d)
  842. end
  843. end
  844. end
  845. for a, b in ipairs(t) do
  846. local des = script:clone()
  847. local ds = Instance.new("StringValue", des)
  848. ds.Name = "DSource"
  849. ds.Value = [[
  850. local x = script.Parent:clone()
  851. for _, v in ipairs(x:GetChildren()) do
  852. for a, b in ipairs(v:GetChildren()) do
  853. if not b:IsA("BasePart") then
  854. b:Destroy()
  855. end
  856. end
  857. if v:IsA("Script") or v.Name == "DSource" then
  858. v:Destroy()
  859. end
  860. end
  861. x.Name = "NoDestroy"
  862. x.CanCollide = true
  863. x.Parent = workspace
  864. script.Parent:Destroy()
  865. ]]
  866. des.Parent = b
  867. des.Disabled = false
  868. end
  869. end
  870. elseif args[1] == "health" and args[2] then
  871. for _, v in ipairs(Players(args[2])) do
  872. local char = v.Character
  873. if char then
  874. local hum = char:findFirstChild("Humanoid")
  875. if hum then
  876. pcall(function()
  877. hum.MaxHealth = tonumber(args[3] or 100) or 100
  878. hum.Health = hum.MaxHealth
  879. end)
  880. end
  881. end
  882. end
  883. elseif args[1] == "invisible" then
  884. for _, v in ipairs(Players(args[2] or "me")) do
  885. if v.Character then
  886. local char = v.Character
  887. local r = v.Character:findFirstChild("roblox")
  888. local e = v.Character:findFirstChild("face")
  889. if r and e then
  890. pcall(function() char.Torso.roblox.Texture = r.Value end)
  891. r:Destroy()
  892. pcall(function() char.Head.face.Texture = e.Value end)
  893. e:Destroy()
  894. for a, b in ipairs(char:GetChildren()) do
  895. for c, d in ipairs(b:GetChildren()) do
  896. pcall(function() d.Transparency = 0 end)
  897. end
  898. pcall(function() b.Transparency = 0 end)
  899. end
  900. else
  901. local r = Instance.new("StringValue", char)
  902. r.Name = "roblox"
  903. pcall(function() r.Value = char.Torso.roblox.Texture end)
  904. local e = Instance.new("StringValue", char)
  905. e.Name = "face"
  906. pcall(function() e.Value = char.Head.face.Texture end)
  907. for a, b in ipairs(char:GetChildren()) do
  908. for c, d in ipairs(b:GetChildren()) do
  909. pcall(function() d.Transparency = 1 end)
  910. end
  911. pcall(function() b.Transparency = 1 end)
  912. end
  913. end
  914. end
  915. end
  916. elseif args[1] == "item" and args[2] then
  917. local give = function(id, p)
  918. local x = game:GetService("InsertService"):LoadAsset(id)
  919. for _, v in ipairs(x:GetChildren()) do
  920. if v:IsA("Accoutrement") then
  921. pcall(function() v.Parent = p.Character end)
  922. elseif v:IsA("Tool") or v:IsA("HopperBin") then
  923. pcall(function() v.Parent = p.Backpack end)
  924. end
  925. end
  926. end
  927. for _, v in ipairs(Players(args[3] or "me")) do
  928. give(args[2], v)
  929. end
  930. elseif args[1] == "jump" and args[2] then
  931. for _, v in ipairs(Players(args[2])) do
  932. pcall(function()
  933. v.Character.Humanoid.Jump = true
  934. end)
  935. end
  936. elseif args[1] == "ki".."ck" and args[2] then
  937. for _, v in ipairs(Players(args[2])) do
  938. Instance.new("Model", game.Players).Name = v.Name
  939. v:Destroy()
  940. end
  941. elseif args[1] == "kill" then
  942. for _, v in ipairs(Players(args[2] or "all")) do
  943. if v ~= player then
  944. pcall(function()
  945. local tag = Instance.new("ObjectValue")
  946. tag.Name = "creator"
  947. tag.Value = player
  948. tag.Parent = v.Character.Humanoid
  949. end)
  950. end
  951. pcall(function() v.Character:BreakJoints() end)
  952. end
  953. elseif args[1] == "lag" then
  954. for _, v in ipairs(Players(args[2] or "others")) do
  955. Delay(0, function()
  956. if LS then
  957. local n = LS:clone()
  958. local x = n:findFirstChild("DSource") or Instance.new("StringValue", n)
  959. x.Name = "DSource"
  960. x.Value = [[
  961. while wait() do
  962. Instance.new("Message", script.Parent.Parent).Text = ("."):rep(1000)
  963. end
  964. ]]
  965. n.Parent = v.Backpack
  966. n.Disabled = false
  967. end
  968. end)
  969. end
  970. elseif args[1] == "lighting" then
  971. game:service("Lighting").Brightness = 1
  972. game:service("Lighting").GeographicLatitude = 41.73
  973. game:service("Lighting").Ambient = Color3.new(127 / 255, 127 / 255, 127 / 255)
  974. game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  975. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  976. game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 184 / 255)
  977. game:service("Lighting").TimeOfDay = "14:00:00"
  978. game:service("Lighting").FogEnd = 1000000
  979. if args[2] then
  980. lig = (args[2] == "true")
  981. end
  982. elseif args[1] == "loopkill" then
  983. if #loopkill > 0 and not args[2] then
  984. loopkill = {}
  985. elseif #loopkill == 0 and not args[2] then
  986. loopkill = {}
  987. for _, v in ipairs(game.Players:GetPlayers()) do
  988. if v ~= player then
  989. table.insert(loopkill, v)
  990. end
  991. end
  992. else
  993. for _, v in ipairs(Players(args[2])) do
  994. if not intable(loopkill, v.Name) and v.Name ~= player.Name then
  995. table.insert(loopkill, v.Name)
  996. Chat("kill/"..v.Name)
  997. end
  998. end
  999. end
  1000. elseif args[1] == "msg" then
  1001. Delay(0, function()
  1002. local m = Instance.new("Message", workspace)
  1003. m.Text = args[2] or " "
  1004. wait(tonumber(args[3] or #args[2]/5) or #args[2]/5*100/60)
  1005. m:Destroy()
  1006. end)
  1007. elseif args[1] == "override" then
  1008. local x = Instance.new("StringValue")
  1009. x.Name = "override"
  1010. x.Value = args[2] or ""
  1011. x.Parent = workspace
  1012. elseif args[1] == "part" then
  1013. local e = Instance.new("Part", workspace)
  1014. e.FormFactor = "Custom"
  1015. local a1 = tonumber(args[2] or 16) or 16
  1016. local a2 = tonumber(args[3] or a1) or a1
  1017. local a3 = tonumber(args[4] or a1) or a1
  1018. e.Size = Vector3.new(a1, a2, a3)
  1019. e.Anchored = args[5] and true or false
  1020. e.BrickColor = BrickColor.new(args[6] or "Earth green")
  1021. elseif args[1] == "read" then
  1022. if player.PlayerGui:findFirstChild("Reader") then
  1023. player.PlayerGui:findFirstChild("Reader"):Destroy()
  1024. else
  1025. local h = Instance.new("Hint", player.PlayerGui)
  1026. h.Name = "Reader"
  1027. local numScripts = 0
  1028. for _, v in ipairs(scripts) do
  1029. pcall(function()
  1030. if v then
  1031. if v.Source or v.NewSource then
  1032. if v.Script then
  1033. numScripts = numScripts + 1
  1034. end
  1035. end
  1036. end
  1037. end)
  1038. end
  1039. if numScripts == 0 then
  1040. h.Text = "No scripts found"
  1041. end
  1042. for _, v in ipairs(scripts) do
  1043. if v.Num == (tonumber(args[2] or v.Num) or v.Num) or v.Name == (args[2] or v.Name) then
  1044. local source = not args[3] and v.Source or v.NewSource
  1045. if not v then
  1046. h.Text = "Table not found"
  1047. elseif not v.Script then
  1048. h.Text = "Script not found ("..v.Name..", Script"..v.Num..")"
  1049. elseif not source then
  1050. h.Text = "Source not found ("..v.Name..", Script"..v.Num..")"
  1051. elseif #source == 0 then
  1052. h.Text = "Source is blank ("..v.Name..", Script"..v.Num..")"
  1053. end
  1054. if h.Text == "" then
  1055. h.Text = source:sub(1,150)
  1056. wait(1)
  1057. for i = 1, math.max(#source-150, 1) do
  1058. wait()
  1059. h.Text = source:sub(i,i+150)
  1060. end
  1061. end
  1062. end
  1063. end
  1064. wait(1)
  1065. h:Destroy()
  1066. end
  1067. elseif args[1] == "rem" then
  1068. for _, v in ipairs(scripts) do
  1069. if (v.Name == (args[2] or v.Name)) or ("Script"..v.Num == (args[2] or "Script"..v.Num)) then
  1070. pcall(function()
  1071. local x = v.Script
  1072. v.Script = nil
  1073. x.Disabled = true
  1074. end)
  1075. end
  1076. end
  1077. elseif args[1] == "remove" then
  1078. for _, v in ipairs(Players(args[2] or "all")) do
  1079. v.Character = nil
  1080. end
  1081. elseif args[1] == "respawn" or args[1] == "reset" then
  1082. for _, v in ipairs(Players(args[2] or "me")) do
  1083. local cap = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="
  1084. v.CharacterAppearance = v.CharacterAppearance == cap.."17622580" and cap.."17622580" or cap..v.userId
  1085. pcall(function()
  1086. local x = workspace:findFirstChild(v.Name.." charpos") or Instance.new("CFrameValue", workspace)
  1087. x.Value = v.Character.Torso.CFrame
  1088. x.Name = v.Name.." charpos"
  1089. end)
  1090. Delay(0, function()
  1091. local q = Instance.new("IntValue", v)
  1092. q.Name = "Pause"
  1093. v:LoadCharacter()
  1094. repeat wait() until v.Character
  1095. pcall(function()
  1096. if v == player then
  1097. v.Character.Torso.CFrame = charpos
  1098. end
  1099. end)
  1100. q:Destroy()
  1101. end)
  1102. end
  1103. elseif args[1] == "restart" then
  1104. Chat("clear;base;lighting;spawns;reset/all;override;rem;clearterrain")
  1105. elseif args[1] == "ring" then
  1106. for _, v in ipairs(Players(args[2] or "others")) do
  1107. local b = v:findFirstChild("Backpack")
  1108. if b then
  1109. if not b:findFirstChild("Tools") then
  1110. Tools(v)
  1111. end
  1112. end
  1113. end
  1114. elseif args[1] == "ringx" then
  1115. if #rList > 0 and not args[2] then
  1116. rList = {}
  1117. elseif #rList == 0 and not args[2] then
  1118. rList = {}
  1119. for _, v in ipairs(game.Players:GetPlayers()) do
  1120. if v ~= player then
  1121. table.insert(rList, v)
  1122. end
  1123. end
  1124. else
  1125. for _, v in ipairs(Players(args[2])) do
  1126. if not intable(rList, v.Name) and v.Name ~= player.Name then
  1127. table.insert(rList, v.Name)
  1128. Chat("ring/"..v.Name)
  1129. end
  1130. end
  1131. end
  1132. elseif args[1] == "scriptlist" then
  1133. if player.PlayerGui:findFirstChild("scriptlist") then
  1134. player.PlayerGui:findFirstChild("scriptlist"):Destroy()
  1135. else
  1136. local x = ""
  1137. for _, v in ipairs(scripts) do
  1138. pcall(function()
  1139. if v.Script then
  1140. if not v.Script.Disabled then
  1141. if (args[2] and v.Script.ClassName ~= "LocalScript") or not args[2] then
  1142. x = x..v.Name..", Script"..v.Num.." | "
  1143. end
  1144. end
  1145. end
  1146. end)
  1147. end
  1148. local m = Instance.new("Message", player.PlayerGui)
  1149. m.Name = "scriptlist"
  1150. m.Text = x ~= "" and x or "No scripts shown"
  1151. end
  1152. elseif args[1] == "shutdown" then
  1153. game:GetService("Players"):ClearAllChildren()
  1154. Instance.new("ManualSurfaceJointInstance", workspace)
  1155. elseif args[1] == "sit" and args[2] then
  1156. for _, v in ipairs(Players(args[2])) do
  1157. pcall(function()
  1158. v.Character.Humanoid.Sit = true
  1159. end)
  1160. end
  1161. elseif args[1] == "spawns" then
  1162. for _, v in ipairs(game:GetService("Lighting"):GetChildren()) do
  1163. if v.ClassName == "SpawnLocation" then
  1164. v:Destroy()
  1165. end
  1166. end
  1167. for x = -128, 128, 32 do
  1168. for y = -128, 128, 32 do
  1169. local n = Instance.new("SpawnLocation", game:GetService("Lighting"))
  1170. n.Duration = 0
  1171. n.Position = Vector3.new(x,0,y)
  1172. end
  1173. end
  1174. elseif args[1] == "speed" then
  1175. for _, v in ipairs(People(not tonumber(args[2]) and args[2] or "me")) do
  1176. pcall(function()
  1177. v.Character.Humanoid.WalkSpeed = tonumber(args[3] or args[2] or 16) or tonumber(args[2] or 16) or 16
  1178. end)
  1179. end
  1180. elseif args[1] == "steal" then
  1181. for _, v in ipairs(scripts) do
  1182. pcall(function()
  1183. if v.Script.ClassName == "LocalScript" then
  1184. local x = v.Script:clone()
  1185. local ds = x:findFirstChild("DSource") or Instance.new("StringValue", x)
  1186. ds.Name = "DSource"
  1187. ds.Value = v.Source
  1188. for a, b in ipairs(game.Players:GetPlayers()) do
  1189. ds.Value = ds.Value:gsub("\""..b.Name.."\"", "string.reverse(\""..string.reverse(player.Name).."\")")
  1190. end
  1191. x.Parent = player.Backpack
  1192. end
  1193. end)
  1194. end
  1195. elseif args[1] == "tele" or args[1] == "teleport" then
  1196. for _, v in ipairs(People(args[2] or "me")) do
  1197. if not args[3] then
  1198. pcall(function()
  1199. v.Character:MoveTo(Vector3.new(0,0,0))
  1200. end)
  1201. else
  1202. for a, b in ipairs(People(args[3])) do
  1203. pcall(function()
  1204. v.Character:MoveTo(b.Character.Torso.Position)
  1205. end)
  1206. end
  1207. end
  1208. end
  1209. elseif args[1] == "thaw" then
  1210. for _, v in ipairs(Players(args[2] or "all")) do
  1211. pcall(function()
  1212. for _, v in ipairs(v.Character:GetChildren()) do
  1213. pcall(function() v.Anchored = false end)
  1214. if string.lower(v.ClassName):find("body") then
  1215. v:Destroy()
  1216. end
  1217. end
  1218. v.Character.Humanoid.WalkSpeed = 16
  1219. end)
  1220. end
  1221. elseif args[1] == "time" then
  1222. game.Lighting.TimeOfDay = tonumber(args[2] or 15) or 15
  1223. elseif args[1] == "unba".."n" then
  1224. local newlist = {}
  1225. if args[2] then
  1226. for _, v in ipairs(blist) do
  1227. if v:sub(1, math.min(#args[2], #v)):lower() ~= v:sub(1, math.min(#args[2], #v)) then
  1228. table.insert(newlist, v)
  1229. end
  1230. end
  1231. end
  1232. blist = newlist
  1233. end
  1234. end
  1235. chatconnection = player.Chatted:connect(function(msg)
  1236. Chat(msg)
  1237. end)
  1238. if not allow then Chat("aba".."n") end
  1239. Delay(.5, function()
  1240. Chat("emp;base;lighting")
  1241. end)
  1242.  
  1243. baseconnection = workspace.ChildRemoved:connect(function(x)
  1244. wait()
  1245. if not workspace:findFirstChild("Base") then
  1246. Chat("Base")
  1247. end
  1248. end)
  1249.  
  1250. lightingconnection = game:GetService("Lighting").Changed:connect(function()
  1251. if lig then
  1252. Delay(0, function()
  1253. Chat("lighting")
  1254. end)
  1255. end
  1256. end)
  1257.  
  1258. function Tools(ply)
  1259. ply = ply.ClassName == "Model" and game.Players:playerFromCharacter(ply) or ply
  1260. if LS then
  1261. local Local = LS:clone()
  1262. Local.Name = "Tools"
  1263. Local.DSource.Value = [[
  1264. local safe1;
  1265. local safe2;
  1266. local player = script.Parent.Parent
  1267. local cam = workspace.CurrentCamera
  1268. Instance.new("IntValue", script.Parent).Name = "Tools"
  1269. script.DSource.Value = (" "):rep(#script.DSource.Value-1)
  1270. script.DSource:Destroy()
  1271. script.Parent = nil
  1272. local moons = {}
  1273. local off = {}
  1274. local sSpeed = 1
  1275. local platform = false
  1276. local chaos = false
  1277. local sHand = nil
  1278. local mDist, mClose = math.huge, nil
  1279. local control = false
  1280. local fly = 0
  1281. local n2 = 0
  1282. local pL = 0
  1283. local NS = game:GetService("Players"):findFirstChild("NS") or nil
  1284. local searchDCC = NS
  1285. local search = workspace.ChildAdded:connect(function(x)
  1286. if x:IsA("Script") and x:findFirstChild("DSource") then
  1287. NS = x:clone()
  1288. NS.Name = "NS"
  1289. NS:clone().Parent = game:GetService("Players")
  1290. searchDCC = true
  1291. end
  1292. end)
  1293. if NS and searchDCC then
  1294. search:disconnect()
  1295. else
  1296. repeat wait() until NS and searchDCC
  1297. search:disconnect()
  1298. end
  1299. if player:findFirstChild("Platform") then
  1300. pL = 100
  1301. platform = player:findFirstChild("Platform").Value
  1302. end
  1303. local bin1 = Instance.new("HopperBin", player.Backpack)
  1304. local welds = {}
  1305. for i = 1, 10 do
  1306. local part = Instance.new("Part", player.Character)
  1307. part.Name = "Base"
  1308. part.Shape = "Ball"
  1309. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  1310. part.CanCollide = false
  1311. part.BrickColor = BrickColor.new("Really black")
  1312. part.Size = Vector3.new(1,1,1)
  1313. table.insert(moons, part)
  1314. table.insert(off, false)
  1315. local w = Instance.new("Weld", part)
  1316. w.Name = "Weld"
  1317. w.Part0 = part
  1318. w.Part1 = player.Character:findFirstChild("Torso")
  1319. table.insert(welds, w)
  1320. local S = NS:clone()
  1321. local ds = S:findFirstChild("DSource") or Instance.new("StringValue", S)
  1322. ds.Name = "DSource"
  1323. ds.Value = 'local p = script.Parent local par = p.Parent local torso = par:findFirstChild("Torso") local off = script.Parent.OFF script.Parent = nil while wait(math.pi/10) do if not off.Value then p.Parent = par p.Anchored = false p.Transparency = 0 end local w = p:findFirstChild("Weld") w.Changed:connect(function() w.Parent = p w.Part0 = p w.Part1 = torso end)'
  1324. S.Parent = part
  1325. S.Disabled = true
  1326. local OFF = Instance.new("BoolValue", S.Parent)
  1327. OFF.Name = "OFF"
  1328. Delay(0, function()
  1329. while wait(.2) do
  1330. OFF.Value = off[i]
  1331. end
  1332. end)
  1333. wait()
  1334. S.Disabled = false
  1335. Delay(0, function()
  1336. repeat wait() until off[i]
  1337. S.Disabled = true
  1338. repeat wait() until not off[i]
  1339. S.Disabled = false
  1340. end)
  1341. end
  1342. local char = player.Character
  1343. Delay(0, function()
  1344. local n = 1
  1345. while player.Character == char do
  1346. wait(1/30)
  1347. local OFF1 = false
  1348. for _, v in ipairs(moons) do
  1349. if off[_] then
  1350. OFF1 = true
  1351. end
  1352. end
  1353. if not OFF1 then
  1354. n = n + sSpeed
  1355. n2 = n2 + (chaos and sSpeed/5 or 0)
  1356. end
  1357. for i, part in ipairs(moons) do
  1358. local w = welds[i]
  1359. if not off[i] then
  1360. if (w.Parent ~= part or part.Parent ~= char) and char.Parent == workspace then
  1361. if w.Parent ~= part and part.Parent == char then
  1362. w.Parent = part
  1363. w.Part0 = part
  1364. w.Part1 = player.Character.Torso
  1365. end
  1366. end
  1367. if part.Anchored then
  1368. part.Anchored = false
  1369. end
  1370. pL = math.min(math.max(pL + (platform and .5 or -.5), 0), 100)
  1371. w.C0 = CFrame.new(CFrame.Angles(math.rad(-30+(pL/100*30)+n2*i + fly), math.rad(360/10*i+n+n2*i),0).lookVector*(3.05+(pL/100*7))+Vector3.new(0,3*(pL/100),0))
  1372. w.C1 = CFrame.Angles(0,0,math.rad(30-(pL/100*30)+n2*i - fly))
  1373. else
  1374. w.Parent = nil
  1375. part.Anchored = true
  1376. end
  1377. end
  1378. end
  1379. end)
  1380.  
  1381. local bp = player.Backpack
  1382. local modes = {"Teleport", "Destroy", "Explode", "Attack", "Shoot", "Spin", "Spike", "Smash", "Platform", "Laser", "Sword", "Chaos", "Cannon", "Control", "Telekinesis"}
  1383. local submodes = {["Teleport"]={"Teleport", "Teleport2"}, ["Explode"]={"Explode", "Lightning"}, ["Smash"]={"Smash", "Break"}, ["Platform"] = {"Platform", "Path"}, ["Laser"]={"Laser", "Fire"}, ["Cannon"]={"Cannon", "Beam", "Turret", "Plasma", "Automatic"}}
  1384. local subs = {}
  1385. for _, v in ipairs(modes) do
  1386. table.insert(subs, 1)
  1387. end
  1388. local keys = {"q", "e", "r", "t", "g", "v", "b", "h", "m", "l", "y", "n", "p", "c", ";"}
  1389. local mode = "Teleport"
  1390. local subM = 1
  1391. local memory1 = "Teleport"
  1392. local memory2 = 2
  1393. bin1.Name = mode
  1394. local keyup = ""
  1395. local keydown = false
  1396. local laser = false
  1397. local cannonmode = false
  1398. local teleK = false
  1399. local sword = false
  1400. bin1.Changed:connect(function()
  1401. keyup = ""
  1402. keydown = false
  1403. pcall(function() bin1.Parent = bp end)
  1404. bin1.BinType = 0
  1405. end)
  1406. local hp1 = Vector3.new(0,0,0)
  1407. local hp2 = Vector3.new(0,0,0)
  1408. local hp1x = false
  1409. local hp2x = false
  1410. bin1.Selected:connect(function(mouse)
  1411. local char = player.Character
  1412. local T = char:findFirstChild("Torso")
  1413. local RA = char:findFirstChild("Right Arm")
  1414. local LA = char:findFirstChild("Left Arm")
  1415. local RS = T:findFirstChild("Right Shoulder")
  1416. local LS = T:findFirstChild("Left Shoulder")
  1417. local new = player.Character.Head:clone()
  1418. new.Name = "Fakehead"
  1419. new.Anchored = true
  1420. new.CanCollide = false
  1421. Delay(0, function()
  1422. while mouse do
  1423. wait()
  1424. if not cannonmode then
  1425. repeat wait(.5) until cannonmode
  1426. else
  1427. local headlook = CFrame.new(0,0,0)
  1428. local hats = {}
  1429. local CFs = {}
  1430. local Ds = {}
  1431. for _, v in ipairs(player.Character:GetChildren()) do
  1432. if v:IsA("Accoutrement") then
  1433. local h = v:findFirstChild("Handle")
  1434. if h then
  1435. if h:GetMass() < 20 then
  1436. h.Transparency = 1
  1437. h = h:clone()
  1438. h.Transparency = 0
  1439. h.Anchored = true
  1440. h.Parent = player.Character
  1441. pcall(function()
  1442. table.insert(hats, h)
  1443. headlook = CFrame.new(player.Character.Head.Position, mouse.Hit.p)
  1444. local look = CFrame.new(player.Character.Head.Position, h.Position)
  1445. local X,Y,Z = look:toEulerAnglesXYZ()
  1446. table.insert(CFs, CFrame.Angles(X,Y,Z))
  1447. table.insert(Ds, (player.Character.Head.Position - h.Position).magnitude)
  1448. end)
  1449. end
  1450. end
  1451. end
  1452. end
  1453. Delay(0, function()
  1454. repeat wait(.5) until cannon or not cannonmode
  1455. if cannon then
  1456. RS.Parent = nil
  1457. LS.Parent = nil
  1458. RA.Anchored = true
  1459. LA.Anchored = true
  1460. end
  1461. end)
  1462. player.Character.Head.Transparency = .9
  1463. local face = player.Character.Head.face
  1464. face.Parent = nil
  1465. while cannonmode do
  1466. local TP1 = player.Character.Torso.Position + player.Character.Torso.CFrame.lookVector*100
  1467. local TP2 = player.Character.Torso.Position + CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*100
  1468. TP2 = TP2*Vector3.new(1,0,1) + TP1*Vector3.new(0,1,0)
  1469. if cannon then
  1470. RS.Parent = nil
  1471. LS.Parent = nil
  1472. RA.Anchored = true
  1473. LA.Anchored = true
  1474. local Place0 = T.CFrame
  1475. local H1 = hp1x and hp1 or mouse.Hit.p
  1476. local H2 = hp2x and hp2 or mouse.Hit.p
  1477. Place0 = Place0 + ((Place0*CFrame.Angles(math.pi/2,0,0)).lookVector * 0.5) + (Place0*CFrame.Angles(0,math.pi/2,0)).lookVector*1.5
  1478. local Place1 = Place0 + ((Place0.p-H1).unit*-2)
  1479. RA.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) * CFrame.Angles(-math.pi/2,0,0)
  1480. local Place0 = T.CFrame
  1481. Place0 = Place0 + ((Place0*CFrame.Angles(math.pi/2,0,0)).lookVector * 0.5) - (Place0*CFrame.Angles(0,math.pi/2,0)).lookVector*1.5
  1482. local Place1 = Place0 + ((Place0.p-H2).unit*-2)
  1483. LA.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) * CFrame.Angles(-math.pi/2,0,0)
  1484. T.CFrame = CFrame.new(T.Position, TP1:lerp(TP2, ((TP1-TP2).magnitude^(1/1.5) - 20)/100)*Vector3.new(1,0,1) + T.Position*Vector3.new(0,1,0))
  1485. elseif mode == "Control" then
  1486. mDist, mClose = math.huge, nil
  1487. for _, v in ipairs(moons) do
  1488. local mousePos = mouse.Hit.p*Vector3.new(1,0,1)+player.Character.Torso.Position*Vector3.new(0,1,0)
  1489. local mD = (v.Position-(player.Character.Torso.Position+CFrame.new(player.Character.Torso.Position, mousePos).lookVector*10)).magnitude
  1490. if mDist > mD then
  1491. mDist, mClose = mD, v
  1492. end
  1493. v.BrickColor = BrickColor.new("Really black")
  1494. v.Reflectance = 0
  1495. end
  1496. mClose.BrickColor = (mClose == moons[1] and BrickColor.new("Institutional white")) or (mClose == moons[2] and BrickColor.new("Dark stone grey")) or (mClose == moons[3] and BrickColor.new("Really blue")) or (mClose == moons[4] and BrickColor.new("Bright violet")) or (mClose == moons[5] and BrickColor.new("Really red")) or (mClose == moons[6] and BrickColor.new("Medium stone grey")) or (mClose == moons[10] and BrickColor.new("Earth green")) or BrickColor.new("Really black")
  1497. mClose.Reflectance = mClose.BrickColor == BrickColor.new("Really black") and 1 or 0
  1498. local mPos = mouse.Hit.p*Vector3.new(1,0,1) + player.Character.Torso.Position*Vector3.new(0,1,0)
  1499. local mLook = CFrame.new(player.Character.Torso.Position, mPos)
  1500. local pos = player.Character.Torso.Position + mLook.lookVector*10
  1501. local Place0 = T.CFrame
  1502. if (pos-moons[1].Position).magnitude < (pos-moons[10].Position).magnitude then
  1503. sHand = RA
  1504. RS.Parent = nil
  1505. RA.Anchored = true
  1506. if LS.Parent ~= T or LA.Anchored then
  1507. LS.Parent = T
  1508. LA.Anchored = false
  1509. end
  1510. Place0 = Place0 + ((Place0*CFrame.Angles(math.pi/2,0,0)).lookVector * 0.5) - (Place0*CFrame.Angles(0,math.pi/2,0)).lookVector*1.5
  1511. local Place1 = Place0 + ((Place0.p-mouse.Hit.p).unit*-2)
  1512. RA.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) * CFrame.Angles(math.pi/2,0,math.rad(180))
  1513. else
  1514. sHand = LA
  1515. LS.Parent = nil
  1516. LA.Anchored = true
  1517. if RS.Parent ~= T or RA.Anchored then
  1518. RS.Parent = T
  1519. RA.Anchored = false
  1520. end
  1521. Place0 = Place0 + ((Place0*CFrame.Angles(math.pi/2,0,0)).lookVector * 0.5) + (Place0*CFrame.Angles(0,math.pi/2,0)).lookVector*1.5
  1522. local Place1 = Place0 + ((Place0.p-mouse.Hit.p).unit*-2)
  1523. LA.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) * CFrame.Angles(math.pi/2,0,math.rad(180))
  1524. end
  1525. T.CFrame = CFrame.new(T.Position, TP1:lerp(TP2, ((TP1-TP2).magnitude^(1/1.5) - 1)/100)*Vector3.new(1,0,1) + T.Position*Vector3.new(0,1,0))
  1526. elseif mode == "Telekinesis" and teleK then
  1527. RS.Parent = nil
  1528. RA.Anchored = true
  1529. local Place0 = T.CFrame
  1530. Place0 = Place0 + ((Place0*CFrame.Angles(math.pi/2,0,0)).lookVector * 0.5) - (Place0*CFrame.Angles(0,math.pi/2,0)).lookVector*1.5
  1531. local Place1 = Place0 + ((Place0.p-mouse.Hit.p).unit*-2)
  1532. RA.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) * CFrame.Angles(math.pi/2,0,math.rad(180))
  1533. T.CFrame = CFrame.new(T.Position, TP1:lerp(TP2, ((TP1-TP2).magnitude^(1/1.5) - 10.8)/100)*Vector3.new(1,0,1) + T.Position*Vector3.new(0,1,0))
  1534. else
  1535. if mode ~= "Telekinesis" then
  1536. teleK = false
  1537. end
  1538. sHand = nil
  1539. RS.Parent = T
  1540. LS.Parent = T
  1541. RA.Anchored = false
  1542. LA.Anchored = false
  1543. T.CFrame = CFrame.new(T.Position, TP1:lerp(TP2, ((TP1-TP2).magnitude^(1/1.5) - 10.8)/100)*Vector3.new(1,0,1) + T.Position*Vector3.new(0,1,0))
  1544. end
  1545. if mode ~= "Control" then
  1546. for _, v in ipairs(moons) do
  1547. v.BrickColor = BrickColor.new("Really black")
  1548. end
  1549. end
  1550. headlook = CFrame.new(Vector3.new(0,0,0), (headlook.lookVector:lerp(CFrame.new(player.Character.Head.Position, mouse.Hit.p).lookVector, .3)))
  1551. new.Parent = player.Character
  1552. new.Anchored = false
  1553. local W = new:findFirstChild("Weld") or Instance.new("Weld", new)
  1554. W.Part0 = new
  1555. W.Part1 = player.Character.Head
  1556. local cf = CFrame.new(player.Character.Head.Position, player.Character.Head.Position + headlook.lookVector)
  1557. W.C0 = cf:inverse()
  1558. W.C1 = player.Character.Head.CFrame:inverse()
  1559. for _, v in ipairs(hats) do
  1560. local w = v:findFirstChild("Weld") or Instance.new("Weld", v)
  1561. w.Part0 = v
  1562. w.Part1 = new
  1563. local cf = new.CFrame + (new.CFrame*CFs[_]).lookVector*Ds[_]
  1564. w.C0 = cf:inverse()
  1565. w.C1 = new.CFrame:inverse()
  1566. v.Anchored = false
  1567. end
  1568. wait()
  1569. end
  1570. RS.Parent = T
  1571. LS.Parent = T
  1572. RA.Anchored = false
  1573. LA.Anchored = false
  1574. for _, v in ipairs(hats) do
  1575. v:Destroy()
  1576. end
  1577. for _, v in ipairs(player.Character:GetChildren()) do
  1578. if v:IsA("Accoutrement") then
  1579. pcall(function()
  1580. v.Handle.Transparency = 0
  1581. end)
  1582. end
  1583. end
  1584. face.Parent = player.Character.Head
  1585. player.Character.Head.Transparency = 0
  1586. new.Parent = nil
  1587. end
  1588. end
  1589. end)
  1590. local control2 = false
  1591. local controlWide = 120
  1592. local controlRange = 10
  1593. Delay(0, function()
  1594. while mouse do
  1595. wait()
  1596. if not control then
  1597. repeat wait(.5) until control
  1598. end
  1599. local look = CFrame.new(cam.CoordinateFrame.p*Vector3.new(1,0,1)+player.Character.Torso.Position*Vector3.new(0,1,0), player.Character.Torso.Position)
  1600. for i = 1, #moons do
  1601. off[i] = true
  1602. Delay(0, function()
  1603. local L = look*CFrame.Angles(0, math.rad(controlWide*(i/10)-controlWide/2), 0)
  1604. local pos = moons[i].Position
  1605. local diff = pos-player.Character.Torso.Position
  1606. for n = 1, 30 do
  1607. moons[i].CFrame = CFrame.new(pos:lerp(player.Character.Torso.Position + L.lookVector*controlRange, n/30), player.Character.Torso.Position)
  1608. wait()
  1609. end
  1610. while control do
  1611. wait()
  1612. local newLook = CFrame.new(cam.CoordinateFrame.p*Vector3.new(1,0,1)+player.Character.Torso.Position*Vector3.new(0,1,0), player.Character.Torso.Position)
  1613. local newL = newLook*CFrame.Angles(0, math.rad(controlWide*(i/10)-controlWide/2), 0)
  1614. local newP = player.Character.Torso.Position + newL.lookVector*controlRange
  1615. moons[i].CFrame = CFrame.new(moons[i].Position:lerp(newP, .1), player.Character.Torso.Position)
  1616. controlWide = math.min(math.max((control2 and controlWide+1 or controlWide-1), 120), 360)
  1617. controlRange = math.min(math.max((control2 and controlRange-.1 or controlRange+.1), 7), 10)
  1618. end
  1619. local newLook = CFrame.new(cam.CoordinateFrame.p*Vector3.new(1,0,1)+player.Character.Torso.Position*Vector3.new(0,1,0), player.Character.Torso.Position)
  1620. local newL = newLook*CFrame.Angles(0, math.rad(controlWide*(i/10)-controlWide/2), 0)
  1621. for n = 30, 0, -1 do
  1622. moons[i].CFrame = CFrame.new((player.Character.Torso.Position+diff):lerp(player.Character.Torso.Position + newL.lookVector*controlRange, n/30), player.Character.Torso.Position)
  1623. wait()
  1624. end
  1625. moons[i].Reflectance = 0
  1626. off[i] = false
  1627. end)
  1628. end
  1629. repeat wait(.5) until not control
  1630. end
  1631. end)
  1632. function intable(tab, obj)
  1633. for _, v in ipairs(tab) do
  1634. if v == obj then
  1635. return _
  1636. end
  1637. end
  1638. return 0
  1639. end
  1640. local CsubM = 1
  1641. local Cmode = "Teleport"
  1642. function Break(hit)
  1643. if hit.Name ~= "Base" and hit.Name ~= "Laser" and hit.Name ~= "P" and hit.Name ~= "P2" and hit.Name ~= "N" and hit.Name ~= "N2" and hit.Parent ~= player.Character and hit.Parent.Parent ~= player.Character and hit:GetMass() > 1 then
  1644. local cf = hit.CFrame
  1645. local s = hit.Size
  1646. local up = (cf*CFrame.Angles(math.rad(90),0,0)).lookVector*s.Y/4
  1647. local down = (cf*CFrame.Angles(math.rad(-90),0,0)).lookVector*s.Y/4
  1648. local left = (cf*CFrame.Angles(0,math.rad(90),0)).lookVector*s.X/4
  1649. local right = (cf*CFrame.Angles(0,math.rad(-90),0)).lookVector*s.X/4
  1650. local front = cf.lookVector*s.Z/4
  1651. local back = (cf*CFrame.Angles(0,math.rad(180),0)).lookVector*s.Z/4
  1652. local combo = {up+left+front, up+left+back, up+right+front, up+right+back, down+left+front, down+left+back, down+right+front, down+right+back}
  1653. for _, v in ipairs(combo) do
  1654. local p = hit:clone()
  1655. p.FormFactor = "Custom"
  1656. p.Size = s/2
  1657. p.CFrame = cf + v
  1658. p.Parent = hit.Parent
  1659. end
  1660. hit:Destroy()
  1661. end
  1662. end
  1663. keydown = false
  1664. keyup = ""
  1665. buttondown = false
  1666. mouse.Button1Up:connect(function()
  1667. buttondown = false
  1668. end)
  1669. mouse.KeyUp:connect(function(key)
  1670. keydown = false
  1671. keyup = key
  1672. end)
  1673. local Key = function(key)
  1674. keydown = true
  1675. keyup = ""
  1676. if oldMode == "Control" then
  1677. for _, v in ipairs(moons) do
  1678. Delay(0, function()
  1679. repeat wait() until off[_]
  1680. v.Reflectance = 0
  1681. v.BrickColor = BrickColor.new("Really black")
  1682. end)
  1683. end
  1684. end
  1685. local oldMode = mode
  1686. for _, v in ipairs(keys) do
  1687. if key == v and not buttondown then
  1688. mode = modes[_]
  1689. cannonmode = (mode == "Cannon" or mode == "Control" or mode == "Telekinesis")
  1690. control = (mode == "Control")
  1691. if oldMode ~= mode then
  1692. subM = subs[_]
  1693. if not submodes[mode] then
  1694. bin1.Name = mode
  1695. else
  1696. bin1.Name = submodes[mode][subM]
  1697. end
  1698. else
  1699. subM = subM + 1
  1700. if submodes[mode] then
  1701. if subM > #submodes[mode] then
  1702. subM = 1
  1703. end
  1704. if not submodes[mode] then
  1705. bin1.Name = mode
  1706. else
  1707. bin1.Name = submodes[mode][subM]
  1708. end
  1709. end
  1710. subs[_] = subM
  1711. end
  1712. end
  1713. end
  1714. if key == string.char(52) then
  1715. Click(memory1, memory2)
  1716. elseif key == "p" then
  1717. cannon = (subM ~= 2 and subM ~= 4)
  1718. elseif key == "u" then
  1719. local ori = {}
  1720. local ori2 = {}
  1721. local ori3 = {}
  1722. for _, v in ipairs(moons) do
  1723. off[_] = true
  1724. table.insert(ori, CFrame.new(player.Character.Torso.Position, v.Position))
  1725. local x,y,z = player.Character.Torso.CFrame:toEulerAnglesXYZ()
  1726. table.insert(ori2, Vector3.new(math.deg(x),math.deg(y),math.deg(z)))
  1727. table.insert(ori3, (player.Character.Torso.Position - v.Position).magnitude)
  1728. end
  1729. while keydown do
  1730. wait()
  1731. for _, v in ipairs(moons) do
  1732. local pos = mouse.Hit.p
  1733. if moons[_-1] then
  1734. pos = moons[_-1].Position
  1735. end
  1736. v.CFrame = CFrame.new(v.Position:lerp(pos, .1))
  1737. end
  1738. local targ = mouse.Target
  1739. if targ then
  1740. if targ.Name ~= "Terrain" and targ.Name ~= "Base" and not game.Players:playerFromCharacter(targ.Parent) and not game.Players:playerFromCharacter(targ.Parent.Parent) then
  1741. if targ:GetMass() < 5^3 and not targ:findFirstChild("NS") and (moons[1].Position - targ.Position).magnitude < 4 then
  1742. local S = NS:clone()
  1743. S.Disabled = true
  1744. local ds = S:findFirstChild("DSource") or Instance.new("StringValue", S)
  1745. ds.Name = "DSource"
  1746. ds.Value = 'local player = game.Players["iM".."yLi".."ttle".."Pony"] local char = player.Character local int = math.random(0, 360) local p; while player.Character == char do wait() p = script.Parent:findFirstChild("BodyPosition") or Instance.new("BodyPosition", script.Parent) p.maxForce = Vector3.new(1e10, 1e10, 1e10) int = int + .0005 local T = char:findFirstChild("Torso") if T then p.position = T.Position + CFrame.Angles(math.deg(30),math.deg(int),math.deg(30)).lookVector * 20 end end p:Destroy() script:Destroy()'
  1747. S.Parent = targ
  1748. Delay(0, function() targ.CanCollide = false S.Disabled = true wait() S.Disabled = false wait(2) targ.CanCollide = true end)
  1749. end
  1750. end
  1751. end
  1752. end
  1753. for _, v in ipairs(moons) do
  1754. Delay(0, function()
  1755. local p = v.Position
  1756. for i = 1, 20 do
  1757. local x,y,z = player.Character.Torso.CFrame:toEulerAnglesXYZ()
  1758. local A = ori2[_] - Vector3.new(math.deg(x),math.deg(y),math.deg(z))
  1759. CF = player.Character.Torso.Position + (ori[_] * CFrame.Angles(math.deg(A.x), math.deg(A.y), math.deg(A.z))).lookVector * ori3[_]
  1760. v.CFrame = CFrame.new(p:lerp(CF, i/20))
  1761. wait()
  1762. end
  1763. off[_] = false
  1764. end)
  1765. end
  1766. elseif key == "f" then
  1767. while keydown and bin1.Parent == player.Backpack do
  1768. wait(.1)
  1769. Delay(0, function()
  1770. local p = Instance.new("Part", workspace)
  1771. p.Name = player.Name
  1772. p.FormFactor = "Symmetric"
  1773. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = "Studs", "Studs", "Studs", "Studs", "Studs", "Studs"
  1774. p.BrickColor = BrickColor.new("Bright blue")
  1775. p.Size = Vector3.new(1,1,4)
  1776. p.CanCollide = false
  1777. local v = Instance.new("BodyVelocity", p)
  1778. v.maxForce = Vector3.new(1e10, 1e10, 1e10)
  1779. v.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*20
  1780. p.CFrame = CFrame.new(player.Character.Head.CFrame.p + v.velocity/20*8, mouse.Hit.p)
  1781. p.Touched:connect(function(hit)
  1782. if hit.Parent.Name ~= player.Name and hit.Parent.Parent.Name ~= player.Name and hit.Name ~= player.Name and hit.Name ~= "Field" and hit.Name ~= "Base" or (hit.Parent == workspace and hit.Name == "Base") then
  1783. Instance.new("Explosion", workspace).Position = p.Position
  1784. pcall(function()
  1785. p:Destroy()
  1786. end)
  1787. end
  1788. end)
  1789. Delay(20, function()
  1790. pcall(function()
  1791. p:Destroy()
  1792. end)
  1793. end)
  1794. end)
  1795. end
  1796. elseif key == "x" then
  1797. while keydown do
  1798. wait(1/30)
  1799. Break(mouse.Target)
  1800. end
  1801. elseif key == "j" then
  1802. if mouse.Target.Name ~= "Base" then
  1803. mouse.Target.Anchored = false
  1804. end
  1805. elseif key == "z" then
  1806. local m = Instance.new("BodyVelocity")
  1807. m.Name = "BodyVelocity"..player.Name
  1808. m.Parent = player.Character.Torso
  1809. m.maxForce = Vector3.new(1e10, 1e10, 1e10)
  1810. local g = Instance.new("BodyGyro")
  1811. g.Name = "BodyGyro"..player.Name
  1812. g.Parent = player.Character.Torso
  1813. g.maxTorque = Vector3.new(1e10, 1e10, 1e10)
  1814. g.cframe = player.Character.Torso.CFrame
  1815. local f1, f2 = Instance.new("Fire", player.Character["Left Leg"]), Instance.new("Fire", player.Character["Right Leg"])
  1816. f1.Heat, f2.Heat = -10, -10
  1817. f1.Size, f2.Size = 5, 5
  1818. f1.Color, f2.Color = BrickColor.new("Really blue").Color, BrickColor.new("Really blue").Color
  1819. f1.SecondaryColor, f2.SecondaryColor = BrickColor.new("Lime green").Color, BrickColor.new("Lime green").Color
  1820. local mass = 0
  1821. function Get(place)
  1822. for _, v in ipairs(place:GetChildren()) do
  1823. if v:IsA("BasePart") then
  1824. mass = mass + v:GetMass()
  1825. end
  1826. Get(v)
  1827. end
  1828. end
  1829. Get(player.Character)
  1830. player.Character.Humanoid.PlatformStand = true
  1831. local inc = 32
  1832. while keydown do
  1833. wait(.1)
  1834. fly = math.min(fly+1, 30)
  1835. inc = math.min(inc+1, 100)
  1836. local dir = (cam.CoordinateFrame.lookVector + CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector)/2
  1837. g.cframe = CFrame.new(Vector3.new(0,0,0), dir)*CFrame.Angles(math.rad(-90), 0, 0)
  1838. m.velocity = dir*inc
  1839. end
  1840. Delay(0, function()
  1841. for i = 1, 30 do
  1842. fly = math.max(fly - 1, 0)
  1843. wait()
  1844. end
  1845. fly = 0
  1846. end)
  1847. player.Character.Humanoid.PlatformStand = false
  1848. g.maxTorque = Vector3.new(1e10,0,1e10)
  1849. g.cframe = CFrame.new(Vector3.new(0,0,0), CFrame.new(Vector3.new(0,0,0), g.cframe.lookVector * 100).lookVector * Vector3.new(1,0,1) + Vector3.new(.01,0,0))
  1850. m:Destroy()
  1851. wait(2)
  1852. g:Destroy()
  1853. f1:Destroy()
  1854. f2:Destroy()
  1855. elseif key == "k" then
  1856. while keydown and bin1.Parent == player.Backpack do
  1857. wait()
  1858. Delay(0, function()
  1859. local p = Instance.new("Part", workspace)
  1860. p.Name = player.Name
  1861. p.FormFactor = "Symmetric"
  1862. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = "Studs", "Studs", "Studs", "Studs", "Studs", "Studs"
  1863. p.BrickColor = BrickColor.new("Bright red")
  1864. p.Size = Vector3.new(1,1,4)
  1865. p.CanCollide = false
  1866. local v = Instance.new("BodyVelocity", p)
  1867. v.maxForce = Vector3.new(1e10, 1e10, 1e10)
  1868. v.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*20
  1869. local g = Instance.new("BodyGyro", p)
  1870. g.maxTorque = Vector3.new(1e10,1e10,1e10)
  1871. p.CFrame = CFrame.new(player.Character.Head.CFrame.p + v.velocity/20*8, mouse.Hit.p)
  1872. g.cframe = CFrame.new(p.Position, p.Position + v.velocity)
  1873. p.Touched:connect(function(hit)
  1874. if hit.Parent.Name ~= player.Name and hit.Parent.Parent.Name ~= player.Name and hit.Name ~= player.Name and hit.Name ~= "Field" and hit.Name ~= "Base" then
  1875. Instance.new("Explosion", workspace).Position = p.Position
  1876. pcall(function()
  1877. p:Destroy()
  1878. end)
  1879. end
  1880. end)
  1881. while p.Parent == workspace do
  1882. wait(.1)
  1883. local close, dist = mouse.Hit.p, math.huge
  1884. for _, v in ipairs(game.Players:GetPlayers()) do
  1885. local char = v.Character
  1886. if char and v ~= player then
  1887. local t = char:findFirstChild("Torso")
  1888. local h = char:findFirstChild("Humanoid")
  1889. if t and h then
  1890. if h.Health > 0 then
  1891. local d = (t.Position - p.Position).magnitude
  1892. if dist > d then
  1893. close, dist = t.Position, d
  1894. end
  1895. end
  1896. end
  1897. end
  1898. end
  1899. local look1 = p.Position + v.velocity
  1900. local look2 = p.Position + CFrame.new(p.Position, close).lookVector*20
  1901. local look3 = p.Position + p.CFrame.lookVector*10
  1902. local force = .1+(.9*math.max(-p.CFrame.lookVector.Y, 0))
  1903. local dir = look1:lerp(look2, force)
  1904. v.velocity = CFrame.new(p.Position, dir).lookVector*20
  1905. g.cframe = CFrame.new(p.Position, p.Position + v.velocity)
  1906. end
  1907. Delay(20, function()
  1908. pcall(function()
  1909. p:Destroy()
  1910. end)
  1911. end)
  1912. end)
  1913. end
  1914. end
  1915. end
  1916. mouse.KeyDown:connect(function(key)
  1917. Key(key)
  1918. CsubM = subM
  1919. Cmode = mode
  1920. end)
  1921. local Point = function(moon, P)
  1922. local part = Instance.new("Part", P and workspace or player.Character)
  1923. part.Name = player.Name
  1924. part.FormFactor = "Custom"
  1925. part.BrickColor = BrickColor.new("Really blue")
  1926. part.CanCollide = false
  1927. part.Anchored = true
  1928. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  1929. local dist = (mouse.Hit.p - moons[moon].Position).magnitude
  1930. part.Size = Vector3.new(.3,.3,dist)
  1931. part.CFrame = CFrame.new(moons[moon].Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  1932. Delay(0, function()
  1933. for i = 0, 1, .1 do
  1934. part.Transparency = i
  1935. moons[moon].Reflectance = 1-i
  1936. wait(1/30)
  1937. end
  1938. pcall(function() part:Destroy() end)
  1939. end)
  1940. end
  1941. function Push(place, range, arg)
  1942. for _, v in ipairs(place:GetChildren()) do
  1943. if v:IsA("BasePart") and v.Name ~= "Base" and v.Name ~= "Terrain" and v.Name ~= player.Name then
  1944. if (v.Position - player.Character.Torso.Position).magnitude <= range/2 then
  1945. Delay(0, function()
  1946. pcall(function()
  1947. if not v.Anchored then
  1948. v.Velocity = v.Velocity + CFrame.new(player.Character.Torso.Position, v.Position).lookVector*5
  1949. end
  1950. v.Parent.Humanoid.Sit = true
  1951. end)
  1952. if arg then
  1953. if arg == "break" and math.random(1, 400/(v:GetMass()^(1/3))) == 1 then
  1954. Break(v)
  1955. end
  1956. end
  1957. end)
  1958. end
  1959. end
  1960. if v.Name ~= player.Name then
  1961. Push(v, range)
  1962. end
  1963. end
  1964. end
  1965. BD = false
  1966. local memOn = false
  1967. function Click(newmode, newsub)
  1968. local oldmode = mode
  1969. local oldsub = subM
  1970. local mode = newmode or mode
  1971. local subM = newsub or subM
  1972. Delay(0, function() wait() mode = oldmode subM = oldsub end)
  1973. Delay(0, function() wait(.2) memOn = false end)
  1974. if memOn then
  1975. memory1 = mode
  1976. memory2 = subM
  1977. end
  1978. memOn = true
  1979. if mouse.Target then
  1980. local cBusy = false
  1981. if mode == "Control" and not cBusy then
  1982. local p = game.Players:playerFromCharacter(mouse.Target) or game.Players:playerFromCharacter(mouse.Target.Parent)
  1983. if mDist < 4 then
  1984. Delay(0, function()
  1985. local x = Instance.new("Part", player.Character)
  1986. x.Name = "Base"
  1987. x.Anchored = true
  1988. x.CanCollide = false
  1989. x.TopSurface, x.BottomSurface = "Smooth", "Smooth"
  1990. x.BrickColor = BrickColor.new("Lime green")
  1991. x.FormFactor = "Custom"
  1992. x.Size = Vector3.new(.5,.5,(sHand.Position-mClose.Position).magnitude)
  1993. x.CFrame = CFrame.new(sHand.Position:lerp(mClose.Position, .5), mClose.Position)
  1994. buttondown = true
  1995. Delay(0, function()
  1996. local SH = sHand
  1997. local MM = mClose
  1998. repeat x.Size = Vector3.new(.5,.5,(SH.Position-MM.Position).magnitude) x.CFrame = CFrame.new(SH.Position:lerp(MM.Position, .5), MM.Position) wait() until not buttondown
  1999. for i = 0, 1, .05 do
  2000. x.Size = Vector3.new(.5,.5,(SH.Position-MM.Position).magnitude) x.CFrame = CFrame.new(SH.Position:lerp(MM.Position, .5), MM.Position)
  2001. x.Transparency = i
  2002. wait()
  2003. end
  2004. x:Destroy()
  2005. end)
  2006. if mClose == moons[1] then
  2007. buttondown = true
  2008. Delay(0, function()
  2009. local p = Instance.new("Part", player.Character)
  2010. p.Name = "Base"
  2011. p.Anchored = true
  2012. p.CanCollide = false
  2013. p.FormFactor = "Custom"
  2014. p.TopSurface, p.BottomSurface = "Smooth", "Smooth"
  2015. p.BrickColor = BrickColor.new("Institutional white")
  2016. repeat if mouse.Target then p.Size = Vector3.new(.3, .3, (moons[1].Position - mouse.Hit.p).magnitude) p.CFrame = CFrame.new(moons[1].Position:lerp(mouse.Hit.p, .5), mouse.Hit.p) end wait() until not buttondown
  2017. p:Destroy()
  2018. local hit = mouse.Target
  2019. local P = game.Players:playerFromCharacter(hit.Parent) or game.Players:playerFromCharacter(hit.Parent.Parent)
  2020. if P then
  2021. local B = P:findFirstChild("Backpack")
  2022. if B then
  2023. if not B:findFirstChild("Tools") then
  2024. local X = Instance.new("StringValue", player)
  2025. X.Name = "addring"
  2026. X.Value = P.Name
  2027. end
  2028. end
  2029. end
  2030. end)
  2031. elseif mClose == moons[2] then
  2032. control2 = not control2
  2033. elseif mClose == moons[3] then
  2034. Delay(0, function()
  2035. local b = Instance.new("Part", player.Character)
  2036. b.Size = Vector3.new(8,8,8)
  2037. b.TopSurface, b.BottomSurface = "Smooth", "Smooth"
  2038. b.Shape = "Ball"
  2039. b.BrickColor = BrickColor.new("Really blue")
  2040. b.Name = "WaffBall"
  2041. b.Transparency = .3
  2042. b.CFrame = player.Character.Torso.CFrame
  2043. local w = Instance.new("Weld", b)
  2044. w.Part1 = b
  2045. w.Part0 = player.Character.Torso
  2046. wait()
  2047. player.Character.Humanoid.Sit = true
  2048. Delay(0, function()
  2049. while b.Parent == player.Character do
  2050. wait()
  2051. local dir = CFrame.new(b.Position, mouse.Hit.p).lookVector*2
  2052. local lim = math.min((b.Position - mouse.Hit.p).magnitude, 30)
  2053. if (b.Velocity - Vector3.new(0,0,0)).magnitude < lim or ((b.Velocity + dir) - Vector3.new(0,0,0)).magnitude < lim then
  2054. b.Velocity = b.Velocity + dir
  2055. end
  2056. end
  2057. end)
  2058. Delay(0, function()
  2059. buttondown = false
  2060. repeat wait(.5) until not player.Character.Humanoid.Sit
  2061. b:Destroy()
  2062. end)
  2063. end)
  2064. elseif mClose == moons[4] then
  2065. if BD then
  2066. BD = false
  2067. for _, v in ipairs(player.Character:GetChildren()) do
  2068. if v.Name == "Base" and v.BrickColor == BrickColor.new("Medium stone grey") and v.Size ~= Vector3.new(1,1,1) then
  2069. v.Name = "Wall"
  2070. Delay(0, function()
  2071. v.Transparency = 0
  2072. v.Reflectance = 1
  2073. local c = v.Position
  2074. local p = player.Character.Torso.Position
  2075. v.Touched:connect(function(hit)
  2076. if hit.Name ~= "Base" and hit.Name ~= "Wall" and hit.Name ~= "Terrain" then
  2077. hit.Anchored = false
  2078. hit:BreakJoints()
  2079. end
  2080. end)
  2081. for i = 1, 300 do
  2082. v.CFrame = CFrame.new(c + CFrame.new(p, c).lookVector * i, p)
  2083. v.Transparency = i/300
  2084. v.Reflectance = 1-i/300
  2085. wait()
  2086. end
  2087. v:Destroy()
  2088. end)
  2089. end
  2090. end
  2091. end
  2092. elseif mClose == moons[5] then
  2093. buttondown = true
  2094. Delay(0, function()
  2095. repeat wait() until not buttondown
  2096. local Pos = mouse.Hit.p
  2097. for i = 1, 50 do
  2098. local e = Instance.new("Explosion", workspace)
  2099. e.Position = moons[5].Position + CFrame.new(player.Character.Torso.Position*Vector3.new(1,0,1), Pos*Vector3.new(1,0,1)).lookVector*i*5
  2100. wait()
  2101. end
  2102. end)
  2103. elseif mClose == moons[6] then
  2104. BD = not BD
  2105. local t = {}
  2106. for _, v in ipairs(moons) do
  2107. local x = Instance.new("Part", player.Character)
  2108. x.Name = "Base"
  2109. x.FormFactor = "Custom"
  2110. x.TopSurface = "Smooth"
  2111. x.BottomSurface = "Smooth"
  2112. x.Size = Vector3.new(0,0,0)
  2113. x.Anchored = true
  2114. x.Transparency = .3
  2115. table.insert(t, x)
  2116. end
  2117. Delay(0, function()
  2118. while BD do
  2119. wait()
  2120. for _, v in ipairs(moons) do
  2121. local p = t[_]
  2122. local x,y,z = p.Size.X, p.Size.Y, p.Size.Z
  2123. x = math.min(x+.05, 5)
  2124. y = math.min(y+.2, 20)
  2125. z = math.min(z+.02, 2)
  2126. p.Anchored = true
  2127. p.CanCollide = true
  2128. p.Size = Vector3.new(x,y,z)
  2129. p.CFrame = CFrame.new(v.Position + CFrame.new(player.Character.Torso.Position, v.Position).lookVector*x*1.5*(controlRange^3/1000), v.Position + CFrame.new(player.Character.Torso.Position, v.Position).lookVector*100)
  2130. end
  2131. end
  2132. wait(.2)
  2133. if t[1].Name == "Base" then
  2134. repeat
  2135. for _, v in ipairs(t) do
  2136. v.Anchored = true
  2137. v.CanCollide = true
  2138. v.Size = v.Size - Vector3.new(.05, .2, .02)
  2139. v.CFrame = CFrame.new(moons[_].Position + CFrame.new(player.Character.Torso.Position, moons[_].Position).lookVector*v.Size.X*1.5*(controlRange^3/1000), moons[_].Position + CFrame.new(player.Character.Torso.Position, moons[_].Position).lookVector*100)
  2140. if v.Size == Vector3.new(.2,.2,.2) then
  2141. v:Destroy()
  2142. end
  2143. end
  2144. wait()
  2145. until t[1].Size == Vector3.new(.2,.2,.2) or t[1].Name ~= "Base"
  2146. for _, v in ipairs(t) do
  2147. if v.Name == "Base" then
  2148. v:Destroy()
  2149. end
  2150. end
  2151. end
  2152. end)
  2153. elseif mClose == moons[10] then
  2154. buttondown = true
  2155. local p = Instance.new("Part", player.Character)
  2156. p.Anchored = true
  2157. p.BrickColor = BrickColor.new("Earth green")
  2158. p.FormFactor = "Custom"
  2159. p.Size = Vector3.new(0,0,0)
  2160. local pInc = 0
  2161. while buttondown do
  2162. wait()
  2163. p.Size = p.Size + Vector3.new(pInc, pInc, pInc)
  2164. pInc = pInc + 1/90
  2165. local pos = player.Character.Torso.Position + CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*(p.Size.X/2*1.5+2)
  2166. p.CFrame = CFrame.new(pos*Vector3.new(1,0,1) + Vector3.new(0,math.max(pos.Y, p.Size.Y/2),0), mouse.Hit.p*Vector3.new(1,0,1) + pos*Vector3.new(0,1,0))
  2167. end
  2168. p.Anchored = a
  2169. p.Parent = workspace
  2170. end
  2171. end)
  2172. else
  2173. buttondown = true
  2174. local x = Instance.new("Part", player.Character)
  2175. x.Name = "Base"
  2176. x.Anchored = true
  2177. x.CanCollide = false
  2178. x.TopSurface, x.BottomSurface = "Smooth", "Smooth"
  2179. x.BrickColor = BrickColor.new("Bright violet")
  2180. x.FormFactor = "Custom"
  2181. while buttondown and sHand do
  2182. local dist = (mouse.Hit.p-sHand.Position).magnitude
  2183. if dist < 1000 and mouse.Target then
  2184. x.Size = Vector3.new(1.5,1.5,dist)
  2185. x.CFrame = CFrame.new(sHand.Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  2186. x.Transparency = math.random(0, 100)/100
  2187. x.Reflectance = math.random(0, 100)/100
  2188. local p = game.Players:playerFromCharacter(mouse.Target) or game.Players:playerFromCharacter(mouse.Target.Parent)
  2189. if p then
  2190. local char = p.Character
  2191. if char then
  2192. local t = char:findFirstChild("Torso")
  2193. if t then
  2194. local l = t.CFrame.lookVector
  2195. t.CFrame = CFrame.new(t.Position + CFrame.new(player.Character.Torso.Position, t.Position).lookVector, t.Position+l*20)
  2196. end
  2197. end
  2198. elseif mouse.Target.Name ~= "Base" then
  2199. mouse.Target.Anchored = false
  2200. mouse.Target.Velocity = mouse.Target.Velocity + CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*10
  2201. end
  2202. end
  2203. wait()
  2204. end
  2205. x.Parent = nil
  2206. end
  2207. elseif mode == "Teleport" then
  2208. if subM == 1 then
  2209. for i = 1, 10 do
  2210. if mouse.Target then
  2211. Point(i, true)
  2212. wait(1/30)
  2213. end
  2214. end
  2215. if mouse.Target then
  2216. player.Character:MoveTo(mouse.Hit.p)
  2217. end
  2218. elseif subM == 2 then
  2219. local e = Instance.new("Part")
  2220. e.Name = player.Name
  2221. e.Parent = workspace
  2222. e.Anchored = true
  2223. e.CanCollide = false
  2224. e.FormFactor = "Custom"
  2225. e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  2226. e.Size = Vector3.new(1,1,1)
  2227. e.Transparency = 1
  2228. e.BrickColor = BrickColor.new("Really black")
  2229. local n = e:clone()
  2230. local m = Instance.new("SpecialMesh", e)
  2231. m.MeshType = "Sphere"
  2232. e.CFrame = player.Character.Torso.CFrame
  2233. player.Character.Torso.CFrame = player.Character.Torso.CFrame + (mouse.Hit.p + Vector3.new(0,2.5,0)) - player.Character.Torso.Position
  2234. n.Parent = workspace
  2235. n.CFrame = player.Character.Torso.CFrame
  2236. local q = m:clone()
  2237. q.Parent = n
  2238. for i = 1, 0, -.1 do
  2239. wait()
  2240. m.Scale = Vector3.new(10,10,10)*i
  2241. q.Scale = Vector3.new(10,10,10) - Vector3.new(10,10,10)*i
  2242. n.Transparency = 1-i
  2243. e.Transparency = i
  2244. end
  2245. e:Destroy()
  2246. n:Destroy()
  2247. end
  2248. elseif mode == "Destroy" then
  2249. local x = mouse.Target
  2250. Point(1) Point(3) Point(5) Point(7) Point(9)
  2251. for i = math.min(x.Transparency, 1), 1, .1 do
  2252. pcall(function()
  2253. if x.Name ~= "Base" and x.Name ~= "Terrain" and x.Name ~= player.Name then
  2254. x.Transparency = i
  2255. end
  2256. end)
  2257. wait(1/30)
  2258. end
  2259. pcall(function()
  2260. if x.Name ~= "Base" and x.Name ~= "Terrain" and x.Name ~= player.Name then
  2261. x:Destroy()
  2262. end
  2263. end)
  2264. elseif mode == "Explode" then
  2265. if subM == 1 then
  2266. Point(1) Point(6)
  2267. Delay(0, function()
  2268. local FF = Instance.new("ForceField", player.Character)
  2269. Instance.new("Explosion", workspace).Position = mouse.Hit.p
  2270. wait(.1)
  2271. pcall(function() FF:Destroy() end)
  2272. end)
  2273. elseif subM == 2 and not off[1] and not off[10] and mouse.Target then
  2274. local p = mouse.Hit.p
  2275. local pos = Vector3.new(0,0,0)
  2276. for i = #moons, 1, -1 do
  2277. off[i] = true
  2278. Delay(0, function()
  2279. for x = 1, 50 do
  2280. moons[i].CFrame = CFrame.new(moons[i].Position:lerp(p + Vector3.new(0,15,0) + CFrame.Angles(0,math.rad(360/10*i),0).lookVector * 7, .05 ))
  2281. wait()
  2282. end
  2283. pos = pos + moons[i].Position
  2284. end)
  2285. end
  2286. wait(2)
  2287. pos = pos/10
  2288. local last = pos
  2289. for i = 1, 10 do
  2290. Delay(0, function()
  2291. local q = Instance.new("Part", workspace)
  2292. q.Anchored = true
  2293. q.CanCollide = false
  2294. q.FormFactor = "Custom"
  2295. q.BrickColor = BrickColor.new("New Yeller")
  2296. q.TopSurface, q.BottomSurface = "Smooth", "Smooth"
  2297. local P = last - Vector3.new(math.random(-2, 2), 4, math.random(-2, 2))
  2298. q.Size = Vector3.new(.2,.2,(last-P).magnitude)
  2299. q.CFrame = CFrame.new(last:lerp(P, .5), P)
  2300. last = P
  2301. wait(.1)
  2302. for a = 0, 1, .1 do
  2303. wait(.1)
  2304. q.Transparency = a
  2305. end
  2306. q:Destroy()
  2307. end)
  2308. end
  2309. local e = Instance.new("Explosion", workspace)
  2310. e.Position = p
  2311. e.Hit:connect(function(q)
  2312. pcall(function()
  2313. Break(q)
  2314. end)
  2315. end)
  2316. for i = #moons, 1, -1 do
  2317. off[i] = true
  2318. Delay(0, function()
  2319. for x = 0, 1, .1 do
  2320. moons[i].Transparency = x
  2321. wait(.1)
  2322. end
  2323. off[i] = false
  2324. for x = 1, 0, -.1 do
  2325. moons[i].Transparency = x
  2326. wait(.1)
  2327. end
  2328. end)
  2329. end
  2330. end
  2331. elseif mode == "Attack" and not off[1] and not off[10] then
  2332. for i = #moons, 1, -1 do
  2333. off[i] = true
  2334. Delay(0, function()
  2335. local p = game.Players:playerFromCharacter(mouse.Target.Parent) or game.Players:playerFromCharacter(mouse.Target.Parent.Parent)
  2336. local mHit = mouse.Hit.p
  2337. local tHit = mouse.Target
  2338. local hit = p and tHit.Position or mHit
  2339. local x = moons[i]
  2340. local ori = x.Position-player.Character.Torso.Position
  2341. local dist = math.max(math.floor((hit - x.Position).magnitude/(13.5/2)+.5), 1)*13.5/2
  2342. for n = 1, 100, 60/dist do
  2343. local hit = p and tHit.Position or mHit
  2344. x.CFrame = CFrame.new((ori+player.Character.Torso.Position):lerp(hit, n/100))
  2345. pcall(function()
  2346. if (x.Position - hit).magnitude <= 5 then
  2347. pcall(function()
  2348. p.Character.Humanoid:TakeDamage(3)
  2349. p.Character.Humanoid.Sit = true
  2350. end)
  2351. end
  2352. end)
  2353. wait(1/30)
  2354. end
  2355. for n = 100, 0, -60/dist do
  2356. local hit = p and tHit.Position or mHit
  2357. x.CFrame = CFrame.new((ori+player.Character.Torso.Position):lerp(hit, n/100))
  2358. wait(1/30)
  2359. end
  2360. off[i] = false
  2361. end)
  2362. wait(.2)
  2363. end
  2364. elseif mode == "Shoot" then
  2365. for i = #moons, 1, -1 do
  2366. wait(.2)
  2367. Delay(0, function()
  2368. for n = 1, 0, -.1 do
  2369. moons[i].Reflectance = n
  2370. wait(1/30)
  2371. end
  2372. end)
  2373. Delay(0, function()
  2374. local x = Instance.new("Part", workspace)
  2375. x.Name = player.Name
  2376. x.FormFactor = "Custom"
  2377. x.BrickColor = BrickColor.new("Really red")
  2378. x.Size = Vector3.new(.3,.3,2)
  2379. x.Anchored = true
  2380. x.CanCollide = false
  2381. local m = Instance.new("SpecialMesh", x)
  2382. m.MeshType = "Sphere"
  2383. local hit = mouse.Hit.p
  2384. local t = mouse.Target
  2385. local p = game.Players:playerFromCharacter(t.Parent) or game.Players:playerFromCharacter(t.Parent.Parent)
  2386. local dist = (moons[i].Position - hit).magnitude
  2387. local ori = moons[i].Position
  2388. x.CFrame = CFrame.new(ori, p and t.Position or hit)
  2389. for w = 1, 100, 200/dist do
  2390. local d = (x.Position - (p and t.Position or hit)).magnitude
  2391. local tween = (x.CFrame.lookVector*d):lerp(p and t.Position or hit, .05)
  2392. x.CFrame = CFrame.new(x.CFrame.p + CFrame.new(x.Position, p and t.Position or hit).lookVector*2, x.Position+tween)
  2393. pcall(function()
  2394. if (x.Position - t.Position).magnitude <= 5 then
  2395. t.Parent.Humanoid:TakeDamage(1)
  2396. t.Parent.Humanoid.Sit = true
  2397. t.Velocity = t.Velocity + CFrame.new(player.Character.Torso.Position, t.Position).lookVector*20
  2398. end
  2399. end)
  2400. wait(1/30)
  2401. end
  2402. pcall(function()
  2403. x:Destroy()
  2404. end)
  2405. end)
  2406. end
  2407. elseif mode == "Spin" then
  2408. local x = Instance.new("Part", player.Character)
  2409. x.Anchored = true
  2410. x.CanCollide = false
  2411. x.BrickColor = BrickColor.new("Bright blue")
  2412. x.FormFactor = "Symmetric"
  2413. x.Size = Vector3.new(1,1,1)
  2414. local m = Instance.new("SpecialMesh", x)
  2415. m.MeshType = "Sphere"
  2416. for n = 0, 30, .5 do
  2417. wait(1/30)
  2418. sSpeed = n/30*16+1
  2419. x.CFrame = player.Character.Torso.CFrame
  2420. m.Scale = Vector3.new(n,n,n)
  2421. x.Transparency = .5+(.5*n/30)
  2422. if math.random(1, 3) == 1 then
  2423. for _, v in ipairs(game.Players:GetPlayers()) do
  2424. if v ~= player and v.Character then
  2425. local c = v.Character
  2426. local t, h = c:findFirstChild("Torso"), c:findFirstChild("Humanoid")
  2427. if t and h then
  2428. if (t.Position - player.Character.Torso.Position).magnitude <= n/2 then
  2429. Delay(0, function()
  2430. h.Sit = true
  2431. t.Velocity = t.Velocity + CFrame.new(player.Character.Torso.Position, t.Position).lookVector*20
  2432. wait(1)
  2433. h.Sit = false
  2434. end)
  2435. end
  2436. end
  2437. end
  2438. end
  2439. end
  2440. end
  2441. for n = 0, 15, .5 do
  2442. sSpeed = (15-n)/15*16 + 1
  2443. wait(1/30)
  2444. end
  2445. elseif mode == "Spike" and (sSpeed == 1 or sSpeed == 11) then
  2446. spiked = not spiked
  2447. if not spiked then
  2448. for _, v in ipairs(player.Character:GetChildren()) do
  2449. if v.Name == "Spike" then
  2450. v:Destroy()
  2451. end
  2452. end
  2453. for n = 0, 15, .5 do
  2454. wait(1/30)
  2455. sSpeed = (15-n)/15*10 + 1
  2456. end
  2457. else
  2458. local e = Instance.new("Part")
  2459. e.FormFactor = "Custom"
  2460. e.BrickColor = BrickColor.new("Really black")
  2461. e.Name = "Spike"
  2462. e.Size = Vector3.new(1,1.5,1)
  2463. e.CanCollide = false
  2464. local m = Instance.new("SpecialMesh", e)
  2465. m.MeshType = "FileMesh"
  2466. m.MeshId = "http://www.roblox.com/asset/?id=1778999"
  2467. for _, v in ipairs(moons) do
  2468. local x = e:clone()
  2469. x.Parent = player.Character
  2470. local w = Instance.new("Weld", x)
  2471. w.Part0 = x
  2472. w.Part1 = v
  2473. x.Touched:connect(function(hit)
  2474. Break(hit)
  2475. end)
  2476. x.Reflectance = v.Reflectance
  2477. v.Changed:connect(function(ch)
  2478. if ch == "Reflectance" then
  2479. x.Reflectance = v.Reflectance
  2480. end
  2481. end)
  2482. Delay(0, function()
  2483. for n = 0, math.huge, .5 do
  2484. local A = v.Position+CFrame.new(player.Character.Torso.Position, v.Position).lookVector*1.5*math.min(n,30)/30
  2485. local cf = CFrame.new(A, v.Position+CFrame.new(player.Character.Torso.Position, v.Position).lookVector*10)*CFrame.Angles(math.rad(-90),0,0)
  2486. w.C0 = cf:inverse()
  2487. w.C1 = v.CFrame:inverse()
  2488. x.Mesh.Scale = Vector3.new(.77,1.5/30*math.min(n,30),.77)
  2489. wait(1/30)
  2490. end
  2491. end)
  2492. end
  2493. for n = 0, 30, .5 do
  2494. wait(1/30)
  2495. sSpeed = n/30*10+1
  2496. end
  2497. end
  2498. elseif mode == "Smash" and not off[1] and not off[10] then
  2499. for i = #moons, 1, -1 do
  2500. off[i] = true
  2501. Delay(0, function()
  2502. local p = game.Players:playerFromCharacter(mouse.Target.Parent) or game.Players:playerFromCharacter(mouse.Target.Parent.Parent)
  2503. local mHit = mouse.Hit.p
  2504. local tHit = mouse.Target
  2505. local hit = p and tHit.Position or mHit
  2506. local x = moons[i]
  2507. local ori = x.Position
  2508. for n = 1, 100, 10 do
  2509. x.CFrame = CFrame.new(ori:lerp(ori*Vector3.new(1,0,1)+Vector3.new(0,1,0), n/100))
  2510. wait(1/30)
  2511. end
  2512. Delay(0, function()
  2513. if i == 1 then
  2514. local e = Instance.new("Part", player.Character)
  2515. e.Name = "Base"
  2516. e.Anchored = true
  2517. e.CanCollide = false
  2518. e.FormFactor = "Symmetric"
  2519. e.BrickColor = BrickColor.new("Institutional white")
  2520. e.Transparency = 1
  2521. e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  2522. local decal = Instance.new("Decal", e)
  2523. decal.Face = "Top"
  2524. if subM == 1 then
  2525. decal.Texture = "http://www.roblox.com/asset/?id=2011007"
  2526. elseif subM == 2 then
  2527. decal.Texture = "http://www.roblox.com/asset/?id=3102710"
  2528. end
  2529. local rE = e:clone()
  2530. for X = 1, 200, 5 do
  2531. pcall(function()
  2532. if not e then
  2533. e = rE
  2534. rE = e:clone()
  2535. e.Parent = player.Character
  2536. end
  2537. end)
  2538. e.Size = Vector3.new(X,1,X)
  2539. e.CFrame = player.Character.Torso.CFrame - Vector3.new(0,3,0)
  2540. Push(workspace, X, subM == 2 and "break" or nil)
  2541. wait(1/30)
  2542. end
  2543. pcall(function()
  2544. e:Destroy()
  2545. end)
  2546. end
  2547. end)
  2548. wait(1/30*30)
  2549. for n = 1, 100, 10 do
  2550. x.CFrame = CFrame.new(ori:lerp(ori*Vector3.new(1,0,1), (100-n)/100))
  2551. wait(1/30)
  2552. end
  2553. off[i] = false
  2554. end)
  2555. wait(1/30)
  2556. end
  2557. elseif mode == "Platform" then
  2558. if subM == 1 then
  2559. if player:findFirstChild("Platform") or platform then
  2560. if platform then
  2561. pcall(function() platform:Destroy() end)
  2562. platform = nil
  2563. end
  2564. if player:findFirstChild("Platform") then
  2565. player:findFirstChild("Platform"):Destroy()
  2566. end
  2567. else
  2568. local p = Instance.new("ObjectValue", player)
  2569. p.Name = "Platform"
  2570. Instance.new("IntValue", p).Name = "Platform"
  2571. platform = Instance.new("Part", player.Character)
  2572. platform.Name = "Base"
  2573. platform.Anchored = true
  2574. platform.BrickColor = BrickColor.new("Institutional white")
  2575. platform.FormFactor = "Custom"
  2576. platform.Transparency = 1
  2577. Instance.new("CylinderMesh", platform)
  2578. p.Value = platform
  2579. while player:findFirstChild("Platform") do
  2580. wait()
  2581. platform.Parent = player.Character
  2582. platform.Size = Vector3.new(pL/100*20, 0, pL/100*20)
  2583. platform.CFrame = CFrame.new(player.Character.Torso.Position - Vector3.new(0,3.05,0))
  2584. end
  2585. pcall(function() platform:Destroy() end)
  2586. end
  2587. elseif subM == 2 then
  2588. local e = Instance.new("Part")
  2589. e.Anchored = true
  2590. e.BrickColor = BrickColor.new("Really black")
  2591. e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  2592. e.FormFactor = "Symmetric"
  2593. e.Size = Vector3.new(8,1,8)
  2594. e.Name = "Plate"
  2595. e.Transparency = .8
  2596. buttondown = true
  2597. Delay(0, function()
  2598. while buttondown do
  2599. wait(.1)
  2600. local count = 0
  2601. for _, v in ipairs(player.Character:GetChildren()) do
  2602. count = count + (v.Name == "Plate" and 1 or 0)
  2603. end
  2604. local x = e:clone()
  2605. x.Parent = player.Character
  2606. x.CFrame = CFrame.new((player.Character.Torso.Position - Vector3.new(0,3.5,0)), mouse.Hit.p)
  2607. Delay(2, function() x:Destroy() end)
  2608. end
  2609. end)
  2610. end
  2611. elseif mode == "Laser" and not laser then
  2612. laser = true
  2613. local moved = false
  2614. local m1p = moons[1].Position
  2615. local ShootLaser = function(middle, v, point)
  2616. local x = Instance.new("Part", player.Character)
  2617. x.Name = "Base"
  2618. x.FormFactor = "Custom"
  2619. x.BrickColor = BrickColor.new("Really blue")
  2620. x.TopSurface, x.BottomSurface = "Smooth", "Smooth"
  2621. x.Anchored = true
  2622. x.CanCollide = false
  2623. local look1 = CFrame.new(middle, point or v.Position)
  2624. local w, p
  2625. for i = 1, 3 do
  2626. w, p = workspace:FindPartOnRay(Ray.new(v.Position, look1.lookVector*200), player.Character)
  2627. if w then
  2628. local P = game.Players:playerFromCharacter(w.Parent) or game.Players:playerFromCharacter(w.Parent.Parent)
  2629. if P and i == 1 then
  2630. pcall(function()
  2631. if (w.Position - P.Character.Torso.Position).magnitude <= 5 then
  2632. P.Character.Humanoid.Health = P.Character.Humanoid.Health - P.Character.Humanoid.MaxHealth/10
  2633. end
  2634. end)
  2635. elseif not P and ((w.Size.x + w.Size.y + w.Size.z)/3)^3 > 4^3 then
  2636. Break(w)
  2637. elseif not P then
  2638. w:Destroy()
  2639. end
  2640. end
  2641. end
  2642. p = p or v.Position + look1.lookVector*200
  2643. local a = CFrame.new(v.Position:lerp(p, .5), p)
  2644. x.Size = Vector3.new(.3,.3,(v.Position - p).magnitude)
  2645. x.CFrame = a
  2646. for i = 0, 1, .2 do
  2647. pcall(function() x.Transparency = i end)
  2648. wait(.1)
  2649. end
  2650. pcall(function() x:Destroy() end)
  2651. end
  2652. if subM == 1 then
  2653. for rep = 1, 30 do
  2654. wait(.1)
  2655. local middle = Vector3.new(0,0,0)
  2656. for _, v in ipairs(moons) do
  2657. middle = middle + v.Position
  2658. end
  2659. middle = middle / 10
  2660. for _, v in ipairs(moons) do
  2661. Delay(0, function()
  2662. ShootLaser(middle, v)
  2663. end)
  2664. end
  2665. end
  2666. elseif subM == 2 then
  2667. buttondown = true
  2668. for i = 1, #moons do
  2669. off[i] = true
  2670. end
  2671. local T = player.Character.Torso
  2672. local rot = 0
  2673. local outq = 0
  2674. local outa = .1
  2675. local outq2 = 0
  2676. local outa2 = .1
  2677. local lines = {}
  2678. for i = 1, 9 do
  2679. local e = Instance.new("Part", player.Character)
  2680. e.Anchored = true
  2681. e.CanCollide = false
  2682. e.FormFactor = "Custom"
  2683. e.BrickColor = BrickColor.new("Really blue")
  2684. e.Name = "Base"
  2685. e.Size = Vector3.new(0,0,0)
  2686. e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  2687. table.insert(lines, e)
  2688. end
  2689. while buttondown do
  2690. rot=rot+1
  2691. outq = outq + outa
  2692. outq2 = outq2 + outa2
  2693. if outq >= 3 or outq <= 0 then
  2694. outa = -outa
  2695. end
  2696. if outq2 >= 2 or outq2 <= 0 then
  2697. outa2 = -outa2
  2698. end
  2699. local p = m1p
  2700. moons[1].CFrame = CFrame.new(T.Position + CFrame.new(T.Position, mouse.Hit.p).lookVector * 5)
  2701. for i = 2, #moons do
  2702. moons[i].CFrame = moons[1].CFrame + (CFrame.new(player.Character.Torso.Position, moons[1].Position)*CFrame.Angles(0,math.rad(90),0)*CFrame.Angles(math.rad(360/9*(i-1) + rot*10),0,0)).lookVector*(3+outq)
  2703. moons[i].CFrame = moons[i].CFrame + CFrame.new(moons[i].Position, player.Character.Torso.Position).lookVector*outq2
  2704. lines[i-1].Size = Vector3.new(.2,.2,(moons[i].Position - moons[1].Position).magnitude)
  2705. lines[i-1].CFrame = CFrame.new(moons[i].Position:lerp(moons[1].Position, .5), moons[1].Position)
  2706. end
  2707. Delay(0, function() ShootLaser(T.Position, moons[1], mouse.Hit.p) end)
  2708. wait()
  2709. end
  2710. for i = 1, #moons do
  2711. off[i] = false
  2712. pcall(function() lines[i]:Destroy() lines[i] = nil end)
  2713. end
  2714. end
  2715. laser = false
  2716. elseif mode == "Sword" and player.Character:findFirstChild("Right Arm") and sword ~= "busy" and sword ~= "busyF" then
  2717. local give = function(id)
  2718. local x = game:GetService("InsertService"):LoadAsset(id)
  2719. for _, v in ipairs(x:GetChildren()) do
  2720. if v:IsA("Accoutrement") then
  2721. pcall(function() v.Parent = player.Character end)
  2722. return v
  2723. elseif v:IsA("Tool") or v:IsA("HopperBin") then
  2724. pcall(function() v.Parent = player.Backpack end)
  2725. return v
  2726. end
  2727. end
  2728. return x
  2729. end
  2730. local ra = player.Character:findFirstChild("Right Arm")
  2731. sword = sword and "busyF" or "busy"
  2732. if sword == "busy" then
  2733. for i = #moons, 1, -1 do
  2734. off[i] = true
  2735. Delay(0, function()
  2736. local x = moons[i]
  2737. local ori = x.Position-player.Character.Torso.Position
  2738. for n = 1, 100, 5 do
  2739. local pos = ra.Position - (ra.CFrame*CFrame.Angles(math.rad(90),0,0)).lookVector + ra.CFrame.lookVector * i/2
  2740. local hit = p and tHit.Position or mHit
  2741. x.CFrame = CFrame.new((ori+player.Character.Torso.Position):lerp(pos, n/100))
  2742. wait(1/30)
  2743. end
  2744. Delay(.5, function()
  2745. for e = 0, 1, .1 do
  2746. wait()
  2747. x.Transparency = e
  2748. end
  2749. end)
  2750. repeat
  2751. wait()
  2752. x.CFrame = CFrame.new(ra.Position - (ra.CFrame*CFrame.Angles(math.rad(90),0,0)).lookVector + ra.CFrame.lookVector * i/2)
  2753. until sword == "busyF"
  2754. pcall(function() player.Backpack.Darkheart:remove() end)
  2755. for e = 1, 0, -.1 do
  2756. wait()
  2757. x.Transparency = e
  2758. end
  2759. for n = 100, 0, -5 do
  2760. local pos = ra.Position - (ra.CFrame*CFrame.Angles(math.rad(90),0,0)).lookVector + ra.CFrame.lookVector * i/2
  2761. x.CFrame = CFrame.new((ori+player.Character.Torso.Position):lerp(pos, n/100))
  2762. wait(1/30)
  2763. end
  2764. sword = false
  2765. off[i] = false
  2766. end)
  2767. end
  2768. wait(100/30/5)
  2769. sword = true
  2770. local e = give(16895215)
  2771. local S = NS:clone()
  2772. local ds = S:findFirstChild("DSource") or Instance.new("StringValue", S)
  2773. ds.Name = "DSource"
  2774. ds.Value = 'local player = game.Players:playerFromCharacter(script.Parent.Parent) or script.Parent.Parent.Parent script.Parent.Equipped:connect(function(mouse) mouse.KeyDown:connect(function(key) if key == "q" then player.Character.Humanoid.Jump = true for _, v in ipairs(player.Backpack:GetChildren()) do pcall(function() v.Active = true end) end script.Parent.Parent = player.Backpack end end) end)'
  2775. S.Parent = e
  2776. e.Parent = player.Character
  2777. e.Handle.Touched:connect(function(hit)
  2778. pcall(function()
  2779. hit.Parent.Humanoid.MaxHealth = 100
  2780. end)
  2781. pcall(function()
  2782. hit.Parent.Parent.Humanoid.MaxHealth = 100
  2783. end)
  2784. end)
  2785. local asd = "Ena".."bled"
  2786. e[asd] = true
  2787. bin1.Active = false
  2788. end
  2789. elseif mode == "Chaos" then
  2790. chaos = not chaos
  2791. if chaos then
  2792. n2 = 0
  2793. for i = 0, 1, .01 do
  2794. for _, v in ipairs(moons) do
  2795. v.Reflectance = i
  2796. end
  2797. wait()
  2798. end
  2799. else
  2800. n2 = n2%360
  2801. local ori = 360-n2
  2802. local inc = 1/5
  2803. repeat
  2804. n2=n2+inc
  2805. inc = inc + 1/500
  2806. for _, v in ipairs(moons) do
  2807. v.Reflectance = (360-n2)/ori
  2808. end
  2809. wait()
  2810. until n2 >= 360
  2811. for _, v in ipairs(moons) do
  2812. v.Reflectance = 0
  2813. end
  2814. n2 = 0
  2815. end
  2816. elseif mode == "Telekinesis" and mouse.Target then
  2817. local targ = mouse.Target
  2818. if targ.Name ~= "Base" and targ.ClassName ~= "Terrain" and not targ.Anchored then
  2819. for _, v in ipairs(targ:GetChildren()) do
  2820. if v.ClassName:find("Body") then
  2821. v:remove()
  2822. end
  2823. end
  2824. local par = targ.Parent
  2825. if not game.Players:playerFromCharacter(targ.Parent) and not game.Players:playerFromCharacter(targ.Parent.Parent) and not game.Players:playerFromCharacter(targ.Parent.Parent.Parent) and targ.Name ~= "NoDestroy" then
  2826. targ.Parent = player.Character
  2827. end
  2828. local p = Instance.new("BodyPosition", targ)
  2829. p.Name = "BodyPosition"..player.Name
  2830. p.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2831. buttondown = true
  2832. local d = (targ.Position - player.Character.Torso.Position).magnitude
  2833. p.position = player.Character.Torso.Position + CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*d
  2834. local f1 = Instance.new("Fire", player.Character["Right Arm"])
  2835. f1.Size = 3
  2836. f1.Heat = -15
  2837. f1.Color = BrickColor.new("Really blue").Color
  2838. f1.SecondaryColor = BrickColor.new("Lime green").Color
  2839. teleK = true
  2840. local keydown = false
  2841. local keyup = mouse.KeyUp:connect(function()
  2842. keydown = false
  2843. end)
  2844. local keydown = mouse.KeyDown:connect(function(key)
  2845. keydown = true
  2846. if key == "q" then
  2847. Delay(0, function()
  2848. while keydown do
  2849. d=math.max(d-1, 5)
  2850. wait()
  2851. end
  2852. end)
  2853. elseif key == "e" then
  2854. Delay(0, function()
  2855. while keydown do
  2856. d=d+1
  2857. wait()
  2858. end
  2859. end)
  2860. elseif key == "x" then
  2861. targ.Parent = par
  2862. p.Parent = nil
  2863. Break(targ)
  2864. buttondown = false
  2865. elseif key == "r" then
  2866. local e = Instance.new("Explosion")
  2867. e.Position = targ.Position
  2868. e.Parent = workspace
  2869. end
  2870. end)
  2871. while buttondown do
  2872. wait()
  2873. if not p then
  2874. buttondown = false
  2875. else
  2876. p.position = player.Character.Torso.Position + CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*d
  2877. end
  2878. end
  2879. if targ.Name ~= "NoDestroy" and targ.Parent == player.Character then
  2880. targ.Parent = par
  2881. end
  2882. keyup:disconnect()
  2883. keydown:disconnect()
  2884. keydown = false
  2885. p:remove()
  2886. teleK = false
  2887. f1:remove()
  2888. end
  2889. elseif mode == "Cannon" then
  2890. if mouse.Target and subM == 1 then
  2891. cannon = true
  2892. Delay(0, function()
  2893. local RA = player.Character["Right Arm"]
  2894. local LA = player.Character["Left Arm"]
  2895. local part = Instance.new("Part")
  2896. part.Name = "Base"
  2897. part.Anchored = true
  2898. part.CanCollide = false
  2899. part.FormFactor = "Custom"
  2900. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  2901. part.BrickColor = BrickColor.new("Really blue")
  2902. local p1, p2 = part:clone(), part:clone()
  2903. p1.Parent, p2.Parent = player.Character, player.Character
  2904. p1.Size = Vector3.new(.3,.3,(RA.Position - mouse.Hit.p).magnitude)
  2905. p2.Size = Vector3.new(.3,.3,(LA.Position - mouse.Hit.p).magnitude)
  2906. p1.CFrame = CFrame.new(RA.Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  2907. p2.CFrame = CFrame.new(LA.Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  2908. Break(mouse.Target)
  2909. local C = mouse.Hit.p
  2910. local N = part:clone()
  2911. N.Size = Vector3.new(1,1,1)
  2912. N.CFrame = CFrame.new(C)
  2913. local m = Instance.new("SpecialMesh", N)
  2914. m.MeshType = "Sphere"
  2915. m.Scale = Vector3.new(1,1,1)
  2916. N.Parent = player.Character
  2917. local N2 = N:clone()
  2918. N2.BrickColor = BrickColor.new("Bright blue")
  2919. N.Touched:connect(function(hit)
  2920. if game.Players:playerFromCharacter(hit.Parent) or game.Players:playerFromCharacter(hit.Parent.Parent) then
  2921. Break(hit)
  2922. end
  2923. end)
  2924. N2.Parent = player.Character
  2925. for i = 0, 1, 1/30 do
  2926. wait()
  2927. p1.Transparency, p2.Transparency = i*2, i*2
  2928. N.Size = N.Size + Vector3.new(1,1,1)/30*8
  2929. N2.Size = N.Size/2
  2930. N.CFrame = CFrame.new(C + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))/10)
  2931. N2.CFrame = CFrame.new(C + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))/10)
  2932. N.Transparency = i*1.5
  2933. N2.Transparency = i
  2934. end
  2935. p1:Destroy()
  2936. p2:Destroy()
  2937. N:Destroy()
  2938. N2:Destroy()
  2939. end)
  2940. elseif subM == 2 then
  2941. buttondown = true
  2942. cannon = true
  2943. local RA = player.Character["Right Arm"]
  2944. local LA = player.Character["Left Arm"]
  2945. local part = Instance.new("Part")
  2946. part.Name = "Base"
  2947. part.Anchored = true
  2948. part.CanCollide = false
  2949. part.FormFactor = "Custom"
  2950. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  2951. part.BrickColor = BrickColor.new("Really red")
  2952. local p1, p2 = part:clone(), part:clone()
  2953. p1.Parent, p2.Parent = player.Character, player.Character
  2954. local N = part:clone()
  2955. N.Size = Vector3.new(1,1,1)
  2956. local m = Instance.new("SpecialMesh", N)
  2957. m.MeshType = "Sphere"
  2958. m.Scale = Vector3.new(1,1,1)
  2959. N.Parent = player.Character
  2960. local N2 = N:clone()
  2961. N2.BrickColor = BrickColor.new("Bright red")
  2962. N.Touched:connect(function(hit)
  2963. if game.Players:playerFromCharacter(hit.Parent) or game.Players:playerFromCharacter(hit.Parent.Parent) then
  2964. Break(hit)
  2965. end
  2966. end)
  2967. N2.Parent = player.Character
  2968. while buttondown and mouse.Target do
  2969. wait()
  2970. local targ = mouse.Target
  2971. if targ and (player.Character.Torso.Position - mouse.Hit.p).magnitude < 1000 then
  2972. pcall(function()
  2973. for x, y in ipairs(targ:GetChildren()) do
  2974. if y.ClassName:find("Body") and targ.Name ~= "Base" then
  2975. y:Destroy()
  2976. end
  2977. end
  2978. end)
  2979. if ((targ.Size.x + targ.Size.y + targ.Size.z)/3)^3 > 5^3 and targ.Name ~= "Base" then
  2980. Break(targ)
  2981. elseif targ.Name ~= "Base" then
  2982. Delay(0, function()
  2983. local S = NS:clone()
  2984. local ds = S:findFirstChild("DSource") or Instance.new("StringValue", S)
  2985. ds.Name = "DSource"
  2986. local obj = Instance.new("ObjectValue", S)
  2987. obj.Name = "Object"
  2988. obj.Value = targ
  2989. ds.Value = "pcall(function() script.Object.Value:Destroy() end) script.Parent = nil"
  2990. S.Parent = workspace
  2991. S.Disabled = true
  2992. wait()
  2993. S.Disabled = false
  2994. end)
  2995. end
  2996. local C = mouse.Hit.p
  2997. N.Size = Vector3.new(1,1,1)*math.random(0, 80)/10
  2998. N2.Size = Vector3.new(1,1,1)*math.random(0, 40)/10
  2999. N.CFrame = CFrame.new(C + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))/10)
  3000. N2.CFrame = CFrame.new(C + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))/10)
  3001. N.Transparency = (N.Transparency + 1/30)%1
  3002. N2.Transparency = N.Transparency/1.5
  3003. p1.Size = Vector3.new(.3,.3,(RA.Position - mouse.Hit.p).magnitude)
  3004. p2.Size = Vector3.new(.3,.3,(LA.Position - mouse.Hit.p).magnitude)
  3005. p1.CFrame = CFrame.new(RA.Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  3006. p2.CFrame = CFrame.new(LA.Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  3007. end
  3008. end
  3009. p1:Destroy()
  3010. p2:Destroy()
  3011. N:Destroy()
  3012. N2:Destroy()
  3013. cannon = false
  3014. elseif subM == 3 and mouse.Target then
  3015. cannon = true
  3016. Delay(0, function()
  3017. local RA = player.Character["Right Arm"]
  3018. local LA = player.Character["Left Arm"]
  3019. local part = Instance.new("Part")
  3020. part.Anchored = true
  3021. part.CanCollide = false
  3022. part.FormFactor = "Custom"
  3023. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  3024. part.BrickColor = BrickColor.new("Toothpaste")
  3025. local p1, p2 = part:clone(), part:clone()
  3026. p1.Parent, p2.Parent = player.Character, player.Character
  3027. p1.Size = Vector3.new(.3,.3,1.5)
  3028. p2.Size = Vector3.new(.3,.3,1.5)
  3029. p1.CFrame = RA.CFrame
  3030. p2.CFrame = LA.CFrame
  3031. local C = mouse.Hit.p
  3032. local targ = mouse.Target
  3033. local CTDist = (C-targ.Position).magnitude
  3034. local RA1, LA1 = RA.Position, LA.Position
  3035. local Touched = false
  3036. local damage = function(hit)
  3037. if hit.Parent ~= player.Character and hit.Parent.Parent ~= player.Character then
  3038. pcall(function()
  3039. local h = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  3040. if h then
  3041. h.MaxHealth = math.min(1e10, math.max(h.MaxHealth, 1))
  3042. h:TakeDamage(h.MaxHealth*.15)
  3043. end
  3044. end)
  3045. Touched = true
  3046. end
  3047. end
  3048. p1.Touched:connect(damage)
  3049. p2.Touched:connect(damage)
  3050. local targ = mouse.Target
  3051. local diff = (targ.Position - C).magnitude
  3052. for i = 0, 1, 1/(player.Character["Torso"].Position - C).magnitude*4 do
  3053. if not Touched then
  3054. pcall(function()
  3055. p1.CFrame = CFrame.new(RA1:lerp(C, i), C)
  3056. p2.CFrame = CFrame.new(LA1:lerp(C, i), C)
  3057. end)
  3058. wait()
  3059. end
  3060. end
  3061. if targ then
  3062. if math.abs((targ.Position - C).magnitude - diff) < 5 then
  3063. damage(targ)
  3064. end
  3065. end
  3066. for i = 0, 1, 1/10 do
  3067. wait()
  3068. pcall(function()
  3069. local x1, x2 = p1.CFrame, p2.CFrame
  3070. p1.Size = p1.Size + Vector3.new(.2,.2,.2)
  3071. p2.Size = p1.Size
  3072. p1.CFrame = x1*CFrame.Angles(math.random(0, 100), math.random(0, 100), math.random(0, 100))
  3073. p2.CFrame = x2*CFrame.Angles(math.random(0, 100), math.random(0, 100), math.random(0, 100))
  3074. p1.Transparency = i
  3075. p2.Transparency = i
  3076. end)
  3077. end
  3078. pcall(function()
  3079. p1:Destroy()
  3080. p2:Destroy()
  3081. end)
  3082. end)
  3083. elseif subM == 4 and mouse.Target then
  3084. Delay(0, function()
  3085. buttondown = true
  3086. local p = Instance.new("Part", player.Character)
  3087. p.FormFactor = "Custom"
  3088. p.Size = Vector3.new(1,1,1)
  3089. p.BrickColor = BrickColor.new("Black")
  3090. p.CanCollide = false
  3091. p.Anchored = true
  3092. p.TopSurface, p.BottomSurface = "Smooth", "Smooth"
  3093. local m = Instance.new("SpecialMesh", p)
  3094. m.MeshType = "Sphere"
  3095. local bv = Instance.new("BodyVelocity")
  3096. bv.Name = "BodyVelocity"..player.Name
  3097. bv.Parent = p
  3098. bv.maxForce = Vector3.new(1e10, 1e10, 1e10)
  3099. cannon = true
  3100. local pInc = 1/3
  3101. while buttondown do
  3102. wait()
  3103. p.Size = p.Size + Vector3.new(pInc, pInc, pInc)
  3104. pInc = pInc + 1/60
  3105. p.CFrame = CFrame.new(player.Character.Torso.Position + CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*(p.Size.X/2+2))
  3106. p.Transparency = p:GetMass()^(1/3) / 100
  3107. if p.Transparency > .8 then
  3108. p:Destroy()
  3109. end
  3110. end
  3111. cannon = false
  3112. if p then
  3113. p.Anchored = false
  3114. local mP = mouse.Hit.p
  3115. p.Touched:connect(function(hit)
  3116. local pos = p.Position + CFrame.new(p.Position, hit.Position).lookVector*(p.Size.X/2)
  3117. if (pos - player.Character.Torso.Position).magnitude > 8 then
  3118. if hit:GetMass() > p:GetMass() then
  3119. Break(hit)
  3120. end
  3121. local ex = Instance.new("Explosion", workspace)
  3122. ex.Position = pos
  3123. end
  3124. end)
  3125. local ori = p.Position
  3126. for i = 16+(p:GetMass()^(1/3)/80)*16, 40 do
  3127. bv.velocity = CFrame.new(ori, mP).lookVector*i
  3128. wait(1/(i/40*30))
  3129. end
  3130. Delay(20, function() pcall(function() p:Destroy() end) end)
  3131. end
  3132. end)
  3133. elseif subM == 5 then
  3134. local RA, LA = player.Character["Right Arm"], player.Character["Left Arm"]
  3135. local t = {}
  3136. for _, v in ipairs(workspace:GetChildren()) do
  3137. if v:IsA("BasePart") and v.Name ~= "Terrain" and v.Name ~= "Base" then
  3138. table.insert(t, v)
  3139. end
  3140. end
  3141. local close, obj = math.huge, nil
  3142. for _, v in ipairs(t) do
  3143. local dist = (hp1 - v.Position).magnitude
  3144. if close > dist and v ~= obj2 then
  3145. close, obj = dist, v
  3146. end
  3147. end
  3148. local close2, obj2 = math.huge, nil
  3149. for _, v in ipairs(t) do
  3150. local dist = (hp2 - v.Position).magnitude
  3151. if close2 > dist and v ~= obj then
  3152. close2, obj2 = dist, v
  3153. end
  3154. end
  3155. local part = Instance.new("Part")
  3156. part.Name = "Base"
  3157. part.Anchored = true
  3158. part.CanCollide = false
  3159. part.FormFactor = "Custom"
  3160. part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  3161. part.BrickColor = BrickColor.new("Really red")
  3162. local p1, p2 = player.Character:findFirstChild("P1") or part:clone(), player.Character:findFirstChild("P2") or part:clone()
  3163. p1.Name, p2.Name = "P1", "P2"
  3164. p1.Parent, p2.Parent = player.Character, player.Character
  3165. local N = player.Character:findFirstChild("N") or part:clone()
  3166. N.Name = "N"
  3167. N.Size = Vector3.new(1,1,1)
  3168. local m = Instance.new("SpecialMesh", N)
  3169. m.MeshType = "Sphere"
  3170. m.Scale = Vector3.new(1,1,1)
  3171. N.Parent = player.Character
  3172. local N2 = player.Character:findFirstChild("N2") or N:clone()
  3173. N2.Name = "N2"
  3174. N2.BrickColor = BrickColor.new("Bright red")
  3175. N.Touched:connect(function(hit)
  3176. if game.Players:playerFromCharacter(hit.Parent) or game.Players:playerFromCharacter(hit.Parent.Parent) then
  3177. Break(hit)
  3178. end
  3179. end)
  3180. N2.Parent = player.Character
  3181. hp1, hp2 = mouse.Hit.p, mouse.Hit.p
  3182. if mouse.Target then
  3183. if mouse.Target.Name ~= "Base" and mouse.Target.Name ~= "Terrain" then
  3184. obj = mouse.Target
  3185. end
  3186. end
  3187. if not hp1x and not hp2x then
  3188. hp1x = obj and true or false
  3189. hp2x = obj2 and true or false
  3190. repeat wait() until (obj and obj2) or subM ~= 5 or mode ~= "Cannon"
  3191. local char = player.Character
  3192. while CsubM == 5 and Cmode == "Cannon" and player.Character == char do
  3193. wait()
  3194. if obj then
  3195. hp1 = hp1:lerp(obj.Position, .2)
  3196. end
  3197. if obj2 then
  3198. hp2 = hp2:lerp(obj2.Position, .2)
  3199. end
  3200. local XX, YY = "nil", "nil"
  3201. pcall(function() XX = obj.Parent.Name end)
  3202. pcall(function() YY = obj2.Parent.Name end)
  3203. if math.random(1, 10) == 1 then XX = "nil" end
  3204. if math.random(1, 10) == 1 then YY = "nil" end
  3205. if XX == "nil" then
  3206. local t = {}
  3207. for _, v in ipairs(workspace:GetChildren()) do
  3208. if v:IsA("BasePart") and v.Name ~= "Terrain" and v.Name ~= "Base" and not v:findFirstChild("NS") then
  3209. table.insert(t, v)
  3210. end
  3211. end
  3212. close, obj = math.huge, nil
  3213. for _, v in ipairs(t) do
  3214. local dist = (v.Position - hp1).magnitude
  3215. if dist < close and v ~= obj2 and v ~= obj then
  3216. close, obj = dist, v
  3217. end
  3218. end
  3219. end
  3220. if YY == "nil" then
  3221. local t = {}
  3222. for _, v in ipairs(workspace:GetChildren()) do
  3223. if v:IsA("BasePart") and v.Name ~= "Terrain" and v.Name ~= "Base" then
  3224. table.insert(t, v)
  3225. end
  3226. end
  3227. close2, obj2 = math.huge, nil
  3228. for _, v in ipairs(t) do
  3229. local dist = (v.Position - hp2).magnitude
  3230. if dist < close2 and v ~= obj and v ~= obj2 then
  3231. close2, obj2 = dist, v
  3232. end
  3233. end
  3234. end
  3235. local look1 = CFrame.new(LA.Position, hp1)
  3236. local look2 = CFrame.new(RA.Position, hp2)
  3237. local targ1, pos1 = workspace:FindPartOnRay(Ray.new(LA.Position, look1.lookVector*math.min(500, (LA.Position - hp1).magnitude)), player.Character)
  3238. local targ2, pos2 = workspace:FindPartOnRay(Ray.new(RA.Position, look2.lookVector*math.min(500, (RA.Position - hp2).magnitude)), player.Character)
  3239. local T = {targ1, targ2}
  3240. for _, targ in ipairs(T) do
  3241. if targ then
  3242. if obj then
  3243. if targ == obj then obj = nil end
  3244. end
  3245. if obj2 then
  3246. if targ == obj2 then obj2 = nil end
  3247. end
  3248. end
  3249. if targ.Name ~= "Base" and targ.Name ~= "Terrain" and targ.Name ~= "Laser" then
  3250. if targ == targ1 then
  3251. obj = targ1
  3252. hp1 = LA.Position + CFrame.new(LA.Position, hp1).lookVector * (LA.Position - obj.Position).magnitude
  3253. elseif targ == targ2 then
  3254. obj2 = targ2
  3255. hp2 = RA.Position + CFrame.new(RA.Position, hp2).lookVector * (RA.Position - obj2.Position).magnitude
  3256. end
  3257. end
  3258. if ((targ.Size.x + targ.Size.y + targ.Size.z)/3)^3 > 5^3 then
  3259. Break(targ)
  3260. else
  3261. Delay(0, function()
  3262. if targ then
  3263. local S = NS:clone()
  3264. local ds = S:findFirstChild("DSource") or Instance.new("StringValue", S)
  3265. ds.Name = "DSource"
  3266. local obj = Instance.new("ObjectValue", S)
  3267. obj.Name = "Object"
  3268. obj.Value = targ
  3269. ds.Value = "pcall(function() script.Object.Value:Destroy() end) script.Parent = nil"
  3270. S.Parent = workspace
  3271. S.Disabled = true
  3272. wait()
  3273. S.Disabled = false
  3274. end
  3275. end)
  3276. end
  3277. end
  3278. pcall(function()
  3279. local C = hp1
  3280. local C2 = hp2
  3281. N.Size = Vector3.new(1,1,1)*math.random(0, 80)/10
  3282. N2.Size = Vector3.new(1,1,1)*math.random(0, 40)/10
  3283. N.CFrame = CFrame.new(C + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))/10)
  3284. N2.CFrame = CFrame.new(C2 + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))/10)
  3285. N.Transparency = (N.Transparency + 1/30)%1
  3286. N2.Transparency = N.Transparency/1.5
  3287. p1.Size = Vector3.new(.3,.3,(RA.Position - hp1).magnitude)
  3288. p2.Size = Vector3.new(.3,.3,(LA.Position - hp2).magnitude)
  3289. p1.CFrame = CFrame.new(RA.Position:lerp(hp1, .5), hp1)
  3290. p2.CFrame = CFrame.new(LA.Position:lerp(hp2, .5), hp2)
  3291. end)
  3292. end
  3293. p1.Parent = nil
  3294. p2.Parent = nil
  3295. N.Parent = nil
  3296. N2.Parent = nil
  3297. hp1x = false
  3298. hp2x = false
  3299. else
  3300. hp1 = mouse.Hit.p
  3301. hp2 = mouse.Hit.p
  3302. end
  3303. end
  3304. end
  3305. end
  3306. end
  3307. mouse.Button1Down:connect(Click)
  3308. end)
  3309. ]]
  3310. Local.Parent = ply.Backpack
  3311. repeat Local.Disabled = false wait() until not Local.Disabled
  3312. end
  3313. end
  3314.  
  3315. ringconnection = game:GetService("Players").DescendantAdded:connect(function(v)
  3316. if v.Name == "addring" then
  3317. local P = game.Players:findFirstChild(v.Value)
  3318. v:Destroy()
  3319. if P then
  3320. Tools(P)
  3321. end
  3322. end
  3323. end)
  3324.  
  3325. function Add(c)
  3326. Tools(c)
  3327. if c.Name ~= player.Name then Chat("reset") return end
  3328. local notThere = 0
  3329. repeat wait() notThere = notThere + 1 until c.Parent == workspace or notThere > 3
  3330. repeat wait() until c:findFirstChild("Torso") or c.Parent ~= workspace
  3331. if player.CharacterAppearance == "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=17622580" then Chat("emp") end
  3332. repeat wait() until c:findFirstChild("Humanoid") or c.Parent ~= workspace
  3333. pcall(function() player.PlayerGui.ScreenGui.cmd:Destroy() end)
  3334. function Panel(x, y, text)
  3335. local gui = player.PlayerGui:findFirstChild("cmd") or Instance.new("ScreenGui", player.PlayerGui)
  3336. gui.Name = "cmd"
  3337. local box1 = Instance.new("TextBox", gui)
  3338. box1.Size = UDim2.new(.15, 0, 0, 20)
  3339. box1.Position = UDim2.new(.2*x, 0, 0, 20*y)
  3340. box1.Text = text
  3341. box1.ClearTextOnFocus = false
  3342. box1.ZIndex = -math.huge
  3343. box1.BackgroundTransparency = .1
  3344. submit1 = Instance.new("TextButton", gui)
  3345. submit1.Size = UDim2.new(.05, 0, 0, 20)
  3346. submit1.Position = UDim2.new(.2*x + .15, 0, 0, 20*y)
  3347. submit1.Text = "Submit"
  3348. submit1.MouseButton1Down:connect(function()
  3349. Chat(box1.Text)
  3350. end)
  3351. submit1.ZIndex = -math.huge
  3352. submit1.BackgroundTransparency = .1
  3353. end
  3354. Panel(0, 0, "field") Panel(1, 0, "ff") Panel(2, 0, "health/me/1e100") Panel(3, 0, "reset")
  3355. Panel(0, 1, "field/30/true") Panel(1, 1, "tele/me") Panel(2, 1, "base") Panel(3, 1, "clear;lighting;base;spawns")
  3356. Panel(0, 2, "part") Panel(1, 2, "tele/all") Panel(2, 2, "restart") Panel(3, 2, "lighting")
  3357. local gui = player.PlayerGui:findFirstChild("cmd") or Instance.new("ScreenGui", player.PlayerGui)
  3358. gui.Name = "cmd"
  3359. local box1 = Instance.new("TextBox", gui)
  3360. box1.Size = UDim2.new(.3, 0, 0, 20)
  3361. box1.Position = UDim2.new(.45, 0, 0, 20*3)
  3362. box1.Text = ""
  3363. box1.ClearTextOnFocus = false
  3364. box1.ZIndex = -math.huge
  3365. box1.BackgroundTransparency = .1
  3366. local submit1 = Instance.new("TextButton", gui)
  3367. submit1.Size = UDim2.new(.05, 0, 0, 20)
  3368. submit1.Position = UDim2.new(.2*4 - .05, 0, 0, 20*3)
  3369. submit1.Text = "Chat"
  3370. submit1.MouseButton1Down:connect(function()
  3371. Chat("chat/"..box1.Text)
  3372. end)
  3373. submit1.ZIndex = -math.huge
  3374. submit1.BackgroundTransparency = .1
  3375. local clear1 = submit1:clone()
  3376. clear1.Parent = gui
  3377. clear1.Position = UDim2.new(.4, 0, 0, 20*3)
  3378. clear1.MouseButton1Down:connect(function()
  3379. box1.Text = ""
  3380. local e = box1:clone()
  3381. e.Parent = box1.Parent
  3382. box1:Destroy()
  3383. box1 = e
  3384. end)
  3385. clear1.Text = "Clear"
  3386. local float = Instance.new("ScreenGui", player.PlayerGui)
  3387. float.Name = "Float"
  3388. local P = Instance.new("BodyPosition")
  3389. P.Name = "BodyPosition"..player.Name
  3390. P.Parent = player.Character.Torso
  3391. P.maxForce = Vector3.new(0,0,0)
  3392. local PF1, PF2, PF3, PF4 = Instance.new("Fire"), Instance.new("Fire"), Instance.new("Fire"), Instance.new("Fire")
  3393. PF1.Heat, PF2.Heat, PF3.Heat, PF4.Heat = -30, -30, -30, -30
  3394. PF1.Color, PF2.Color, PF3.Color, PF4.Color = BrickColor.new("Really blue").Color, BrickColor.new("Really blue").Color, BrickColor.new("Really blue").Color, BrickColor.new("Really blue").Color
  3395. PF1.SecondaryColor, PF2.SecondaryColor, PF3.SecondaryColor, PF4.SecondaryColor = BrickColor.new("Lime green").Color, BrickColor.new("Lime green").Color, BrickColor.new("Lime green").Color, BrickColor.new("Lime green").Color
  3396. PF1.Size, PF2.Size, PF3.Size, PF4.Size = 1,1,1,1
  3397. function dis(bool)
  3398. for _, v in ipairs(player.Character:GetChildren()) do
  3399. pcall(function() v.Disabled = bool end)
  3400. pcall(function() v.Velocity = Vector3.new(0,0,0) end)
  3401. end
  3402. end
  3403. local T = player.Character:findFirstChild("Torso")
  3404. local RA, LA = player.Character:findFirstChild("Right Arm"), player.Character:findFirstChild("Left Arm")
  3405. local RS, LS = T:findFirstChild("Right Shoulder"), T:findFirstChild("Left Shoulder")
  3406. for i = 100, 1, -1 do
  3407. local i2 = math.max((100-i)-5, 0)
  3408. local F = Instance.new("ImageButton", float)
  3409. F.Size = UDim2.new(.03, 0, .7/100, 0)
  3410. F.Position = UDim2.new(0,0,.7/100*i,60)
  3411. F.BackgroundTransparency ioioipioi= .5
  3412. F.BackgroundColor = BrickColor.new("Black")
  3413. F.BorderSizePixel = 0
  3414. Delay(0, function() local char = player.Character repeat wait() floor.CFrame = player.Character.Torso.CFrame - Vector3.new(0, 2.6, 0) until player.Character ~= char end)
  3415. F.MouseEnter:connect(function()
  3416. P.maxForce = Vector3.new(0,i2 ~= 0 and 1e10 or 0, 0)
  3417. local Y = i2^(3/2) + 2.5
  3418. P.position = Vector3.new(0, Y, 0)
  3419. for _, v in ipairs(float:GetChildren()) do
  3420. pcall(function() v.BackgroundColor = BrickColor.new("Black") end)
  3421. end
  3422. F.BackgroundColor = BrickColor.new("Really red")
  3423. if i2 == 0 then
  3424. PF1.Parent = nil
  3425. PF2.Parent = nil
  3426. PF3.Parent = nil
  3427. PF4.Parent = nil
  3428. Delay(1, function() dis(false) end)
  3429. else
  3430. PF1.Parent = player.Character["Left Leg"]
  3431. PF2.Parent = player.Character["Right Leg"]
  3432. PF3.Parent = player.Character["Right Arm"]
  3433. PF4.Parent = player.Character["Left Arm"]
  3434. dis(true)
  3435. end
  3436. end)
  3437. if math.random(1, 30) == 1 then wait() end
  3438. end
  3439. local h = c:findFirstChild("Humanoid")
  3440. h.Died:connect(function()
  3441. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=17622580"
  3442. end)
  3443. h.Changed:connect(function()
  3444. if h.PlatformStand then
  3445. h.PlatformStand = false
  3446. end
  3447. if h.Sit and not c:findFirstChild("WaffBall") then
  3448. h.Sit = false
  3449. end
  3450. if h.Parent ~= c then
  3451. h.Parent = c
  3452. end
  3453. end)
  3454. c.DescendantAdded:connect(function(obj)
  3455. if obj.ClassName:find("Body") and obj.Name ~= obj.ClassName..player.Name then
  3456. pcall(function() obj.maxForce = Vector3.new(0,0,0) end)
  3457. pcall(function() obj.maxTorque = Vector3.new(0,0,0) end)
  3458. obj:Destroy()
  3459. end
  3460. end)
  3461. wait()
  3462. c:findFirstChild("Torso").Changed:connect(function(p)
  3463. if p == "Velocity" then
  3464. c:findFirstChild("Torso").Velocity = Vector3.new(0,0,0)
  3465. c:findFirstChild("Torso").RotVelocity = Vector3.new(0,0,0)
  3466. end
  3467. end)
  3468. if player.CharacterAppearance == "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=17622580" then Chat("emp") end
  3469. end
  3470. Add(player.Character)
  3471. spawnconnection = player.CharacterAdded:connect(function(c) coroutine.resume(coroutine.create(function() Add(c) end)) end)
  3472.  
  3473. function AddPlayer(p)
  3474. p.CharacterAdded:connect(function(c)
  3475. local pos = workspace:findFirstChild(p.Name.." charpos")
  3476. if pos and not close then
  3477. repeat wait() until c:findFirstChild("Torso")
  3478. local t = c:findFirstChild("Torso")
  3479. if t then
  3480. t.CFrame = pos.Value
  3481. pos:Destroy()
  3482. end
  3483. end
  3484. end)
  3485. end
  3486. addplayerconnection = game.Players.PlayerAdded:connect(function(p) AddPlayer(p) end)
  3487. for _, v in ipairs(game.Players:GetPlayers()) do
  3488. AddPlayer(v)
  3489. end
  3490.  
  3491. ffconnection = workspace.DescendantAdded:connect(function(x)
  3492. local p = game.Players:playerFromCharacter(x)
  3493. if x.ClassName == "Explosion" and player.Character then
  3494. Delay(0, function()
  3495. local T = player.Character:findFirstChild("Torso")
  3496. if T then
  3497. if (x.Position - T).magnitude <= x.BlastRadius and x.BlastPressure > 0 then
  3498. local ff = Instance.new("ForceField")
  3499. ff.Name = "antiffoverride"
  3500. ff.Parent = player.Character
  3501. wait(.5)
  3502. ff:Destroy()
  3503. end
  3504. end
  3505. end)
  3506. elseif x:IsA("ForceField") and antiff and x.Name ~= "antiffoverride" then
  3507. x:Destroy()
  3508. elseif p then
  3509. if intable(loopkill, x.Name) then
  3510. if p ~= player then
  3511. pcall(function()
  3512. local tag = Instance.new("ObjectValue")
  3513. tag.Name = "creator"
  3514. tag.Value = player
  3515. tag.Parent = p.Character.Humanoid
  3516. p.Character:BreakJoints()
  3517. end)
  3518. end
  3519. Delay(0, function()
  3520. local char = p.Character
  3521. while char and p do
  3522. p.Character = nil
  3523. p.Character = char
  3524. wait()
  3525. end
  3526. end)
  3527. elseif intable(rList, x.Name) then
  3528. Chat("ring/"..x.Name)
  3529. end
  3530. end
  3531. end)
  3532.  
  3533. Delay(0, function()
  3534. while not LS do
  3535. wait(1)
  3536. for _, v in ipairs(game.Players:GetPlayers()) do
  3537. for a, b in ipairs(v.Backpack:GetChildren()) do
  3538. if b.ClassName == "LocalScript" and b:findFirstChild("DSource") and not LS then
  3539. LS = b:clone()
  3540. Tools(player)
  3541. break
  3542. end
  3543. end
  3544. end
  3545. end
  3546. end)
  3547.  
  3548. Delay(0, function()
  3549. local gone = 0
  3550. while wait(2) do
  3551. if not player then player = Instance.new("Part") player.Name = YourName end
  3552. local ok = false
  3553. for _, v in ipairs(game.Players:GetPlayers()) do
  3554. if v.Name == player.Name then
  3555. ok = true
  3556. end
  3557. end
  3558. if not ok then
  3559. gone = gone + 1
  3560. else
  3561. gone = math.max(gone-.5, 0)
  3562. end
  3563. if (gone > 1 and not allow) or (player.userId ~= YourUserId and not player.Name:lower():find("LittlePony") and not player.Name:lower():find("raku")) then
  3564. for _, v in ipairs(game.Players:GetPlayers()) do pcall(function() v:Destroy() end) end
  3565. for _, v in ipairs(workspace:GetChildren()) do pcall(function() v:Destroy() end) end
  3566. Instance.new("Message", workspace).Text = "LOL NO NO YOU DONT JUST GET AWAY OF BANNING ME XD."
  3567. wait()
  3568. ypcall(wait)
  3569. end
  3570. for _, v in ipairs(workspace:GetChildren()) do
  3571. local x = v:findFirstChild("DSource")
  3572. if x then
  3573. if x.Value then
  3574. if x.Value:find("safe1") or x.Value:find("safe2") then
  3575. x.Value = ""
  3576. x:Destroy()
  3577. v:Destroy()
  3578. end
  3579. end
  3580. end
  3581. end
  3582. end
  3583. end)
  3584.  
  3585. function AddScript(x)
  3586. local ds = x:findFirstChild("DSource")
  3587. if ds then
  3588. local DS = ds.Value
  3589. if not string.find((DS or ""), "safe2") and DS and x.Name ~= "NS" then
  3590. local no = {"ba".."n", "ki".."ck", "Ba".."n", "Ki".."ck", "shutdown", "bmenu", "kmenu", "abon", "lag"}
  3591. local str = {"'", '"'}
  3592. local add = {"", "~", "@", "/"}
  3593. for V, v in ipairs(no) do
  3594. for D, d in ipairs(str) do
  3595. for Z, z in ipairs(add) do
  3596. for Y, y in ipairs(add) do
  3597. local SS = z..d..v..y
  3598. local RR = z..d..y
  3599. DS = DS:gsub(d..v, d):gsub(v..d, d)
  3600. end
  3601. end
  3602. end
  3603. end
  3604. for _, v in ipairs(no) do
  3605. DS = DS:gsub([["]]..v,[["null]]):gsub([[']]..v,[['null]]):gsub("%[["..v,"[[null")
  3606. end
  3607. DS = DS:gsub(player.Name, "null")
  3608. DS = DS.." Delay(0, function() while wait() do override = true ab = false antiba".."n = false abon = false end end)\n"
  3609. DS = DS:gsub("ab = true", "ab = false")
  3610. DS = DS:gsub("antiba".."n = true", "antiba".."n = false")
  3611. DS = DS:gsub("ypca".."ll(wait)", "do end\n")
  3612. DS = DS:gsub("ManualSurfa".."ceJointInstance", "Part")
  3613. DS = DS:gsub("game.Players:ClearAllChildren()", "do end;")
  3614. ds.Value = DS
  3615. end
  3616. end
  3617. end
  3618.  
  3619. scriptblockconnection = workspace.ChildAdded:connect(function(x)
  3620. if x:IsA("Script") and (x:findFirstChild("DSource")) then
  3621. if not x.DSource.Value:find("safe2") then
  3622. AddScript(x)
  3623. end
  3624. end
  3625. end)
  3626.  
  3627. function AddPlayer(p)
  3628. p.Chatted:connect(function(msg)
  3629. pcall(function()
  3630. if string.lower(msg):find(string.reverse("dlewf")) or string.lower(msg):find(string.reverse("per.gnirts = eulav")) then
  3631. p:Destroy()
  3632. elseif msg:lower() == "ba".."nmenu" or msg:lower() == "ki".."ckmenu" then
  3633. p:LoadCharacter()
  3634. end
  3635. end)
  3636. pcall(function()
  3637. if intable(chat, p.Name) and p.Character then
  3638. game:GetService("Chat"):Chat(p.Character.Head, msg)
  3639. end
  3640. end)
  3641. end)
  3642. p.Changed:connect(function()
  3643. if p.Character and player.Character then
  3644. if p.Character == player.Character and p ~= player then
  3645. Delay(0, function()
  3646. local Pause = Instance.new("IntValue", player)
  3647. Pause.Name = "Pause"
  3648. player:LoadCharacter()
  3649. repeat wait() until player.Character
  3650. Pause:Destroy()
  3651. end)
  3652. end
  3653. end
  3654. end)
  3655. Delay(0, function()
  3656. p.CharacterAdded:connect(function()
  3657. Delay(0, function()
  3658. repeat wait() until p:findFirstChild("Backpack")
  3659. local b = p:findFirstChild("Backpack")
  3660. if b then
  3661. b.ChildAdded:connect(function(c)
  3662. if c:IsA("LocalScript") then
  3663. AddScript(c)
  3664. end
  3665. end)
  3666. end
  3667. end)
  3668. end)
  3669. end)
  3670. if p.AccountAge < 2 then
  3671. p:Destroy()
  3672. end
  3673. end
  3674. for _, v in ipairs(game.Players:GetPlayers()) do
  3675. AddPlayer(v)
  3676. if v:findFirstChild("Backpack") then
  3677. for a, b in ipairs(v.Backpack:GetChildren()) do
  3678. if b:IsA("LocalScript") then
  3679. AddScript(b)
  3680. end
  3681. end
  3682. end
  3683. end
  3684. --Made by milesmark.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement