Advertisement
darkeageninja

deadfield script regular script

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