VanishingDragon

Untitled

Mar 11th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.87 KB | None | 0 0
  1. local Me = Players.LocalPlayer
  2. local Char = Me.Character
  3. local Mouse = Me:GetMouse()
  4. local Camera = game:GetService("Workspace").CurrentCamera
  5. local Changed = 0
  6. local CurrentPos = nil
  7. local Alive = true
  8. local ResetVersion = 1
  9. local Type = "Mouse"
  10. local Config = {
  11. Shape = "Block";
  12. Color = "Dark indigo";
  13. Material = "Neon";
  14. }
  15. function Explode(Part, Effect)
  16. local BOOM = Instance.new("Explosion", Part)
  17. BOOM.Position = Part.Position
  18. if Effect == true then
  19. BOOM.BlastPressure = 100
  20. BOOM.BlastRadius = 25
  21. else
  22. BOOM.BlastPressure = 0
  23. BOOM.BlastRadius = 0
  24. end
  25. BOOM.Hit:connect(function(Object)
  26. if Effect == true then
  27. if Object:IsA("BasePart") and Object.Name ~= "Base" and Object.Name ~= "Baseplate" and Object.Name ~= "Bomb" and Object.Name ~= "Nuke" then
  28. Object:BreakJoints()
  29. Object.Anchored = false
  30. end
  31. end
  32. end)
  33. end
  34. function DoAll()
  35. local ThisResetVersion = ResetVersion
  36. local P1 = nil
  37. local P2 = nil
  38. local Firing = false
  39. function MakeObjects(Position, ...)
  40. local OtherArgs = {...}
  41. CurrentPos = Position
  42. Changed = Changed + 1
  43. wait()
  44. local Version = Changed
  45. local CharacterSwitch = nil
  46. local TargetObject = nil
  47. if P1 == nil and P2 == nil then
  48. P1 = Instance.new("Part", Char)
  49. P1.Name = "P1"
  50. P1.Size = Vector3.new(1,1,1)
  51. P1.Shape = Config.Shape
  52. P1.BrickColor = BrickColor.new(Config.Color)
  53. P1.Material = Config.Material
  54. P1.TopSurface = "Smooth"
  55. P1.BottomSurface = "Smooth"
  56. P1.Position = Char.Torso.Position
  57. P1.CanCollide = false
  58. local BP = Instance.new("BodyPosition", P1)
  59. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  60. BP.position = Char.Torso.Position
  61. BP.Name = "BP"
  62. local BG = Instance.new("BodyGyro", P1)
  63. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  64. BG.Name = "BG"
  65. local partic = Instance.new("ParticleEmitter",P1)
  66. partic.Color = ColorSequence.new(Color3.new(20/225,0,100/255),Color3.new(20/255,0,205/100))
  67. partic.LightEmission = .95
  68. partic.VelocityInheritance = 0
  69. partic.Rate = 60
  70. partic.Texture = "rbxassetid://56561915"
  71. partic.Lifetime = NumberRange.new(0.1,0.1)
  72. partic.RotSpeed = NumberRange.new(100,100)
  73. partic.Speed = NumberRange.new(2,3)
  74. partic.Enabled = true
  75. partic.LockedToPart = true
  76. P2 = P1:Clone()
  77. P2.Parent = Char
  78.  
  79. P1:BreakJoints()
  80. P2:BreakJoints()
  81. wait()
  82. end
  83.  
  84. Mouse.Button1Down:connect(function()
  85. if Changed == Version and Char ~= nil and ResetVersion == ThisResetVersion then
  86. if Position == "Side" or Position == "Up" then
  87. local Sound = Instance.new("Sound", Char.Head)
  88. Sound.Name = "Pew"
  89. Sound.Volume = 1
  90. Sound.Pitch = 1
  91. Sound.SoundId = "http://www.roblox.com/asset/?id=10756104"
  92. local Sound2 = Instance.new("Sound", Char.Head)
  93. Sound2.Name = "Pew"
  94. Sound2.Volume = 5
  95. Sound2.Pitch = 3
  96. Sound2.SoundId = "http://www.roblox.com/asset/?id=10756118"
  97. local Place0 = CFrame.new(P1.CFrame.x, P1.CFrame.y, P1.CFrame.z)
  98. local Place1 = Mouse.Hit.p
  99. local Place2 = CFrame.new(P2.CFrame.x, P2.CFrame.y, P2.CFrame.z)
  100.  
  101. local Part1 = Instance.new("Part")
  102. Part1.Parent = P1
  103. Part1.Name = "Laser 1"
  104. Part1.Position = Vector3.new(0, 0, 0)
  105. Part1.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  106. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  107. Part1.BrickColor = BrickColor.new(Config.Color) -- Leave this be, or change it to a color available on ROBLOX.
  108. Part1.Locked = true
  109. Part1.Anchored = true
  110. Part1.CanCollide = false
  111. Part1.BottomSurface = "Smooth"
  112. Part1.TopSurface = "Smooth"
  113.  
  114. local Part2 = Instance.new("Part")
  115. Part2.Parent = P2
  116. Part2.Name = "Laser 2"
  117. Part2.Position = Vector3.new(0, 0, 0)
  118. Part2.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  119. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  120. Part2.BrickColor = BrickColor.new(Config.Color) -- Leave this be, or change it to a color available on ROBLOX.
  121. Part2.Locked = true
  122. Part2.Anchored = true
  123. Part2.CanCollide = false
  124. Part2.BottomSurface = "Smooth"
  125. Part2.TopSurface = "Smooth"
  126.  
  127. local BlockMesh1 = Instance.new("BlockMesh")
  128. BlockMesh1.Parent = Part1
  129. BlockMesh1.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  130.  
  131. local BlockMesh2 = Instance.new("BlockMesh")
  132. BlockMesh2.Parent = Part2
  133. BlockMesh2.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  134.  
  135. wait()
  136. Sound:Play()
  137. wait()
  138. Sound:Destroy()
  139.  
  140. coroutine.wrap(function()
  141. for i = 1,math.huge do
  142. Place0 = CFrame.new(P1.CFrame.x, P1.CFrame.y, P1.CFrame.z)
  143. Place2 = CFrame.new(P2.CFrame.x, P2.CFrame.y, P2.CFrame.z)
  144. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  145. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  146. BlockMesh1.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  147. BlockMesh2.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  148. wait()
  149. end
  150. end)()
  151.  
  152. if Mouse.Target ~= nil then
  153. local Humanoid = nil
  154. local Target = Mouse.Target
  155. local TargetColor = Mouse.Target.BrickColor
  156. local TargetPos = Target.CFrame
  157.  
  158. if (Mouse.Target ~= nil) then
  159. TargetHumanoid = Mouse.Target.Parent:findFirstChild("Humanoid")
  160.  
  161. if (TargetHumanoid ~= nil) then
  162. Humanoid = TargetHumanoid
  163. Humanoid.Health = Humanoid.Health - math.random(3,15)
  164. end
  165. end
  166.  
  167. wait(0.4)
  168.  
  169. local function ReMake(Type)
  170. if Target.BrickColor == TargetColor then
  171. Target.BrickColor = BrickColor.new(Config.Color)
  172. else
  173. Target.BrickColor = TargetColor
  174. end
  175.  
  176. if Type == "Single" then
  177. Target:BreakJoints()
  178. Target.Anchored = true
  179. Target.CFrame = TargetPos * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  180. elseif Type == "Model" and Target.Parent:findFirstChild("Torso") then
  181. Target.Parent:MoveTo(Target.Parent.Torso.Position + Vector3.new(math.random(-2,2),math.random(0,2) + 2.5,math.random(-2,2)))
  182. end
  183. end
  184.  
  185. for i = 1,10 do
  186. Sound2:Play()
  187. if (Humanoid ~= nil) then
  188. Humanoid.Health = Humanoid.Health - math.random(1,3)
  189. ReMake("Model")
  190. else
  191. if Target.Name ~= "Base" and Target.Name ~= "Baseplate" then
  192. ReMake("Single")
  193. end
  194. end
  195. if Part1.Transparency == 1 then
  196. Part1.Transparency = 0
  197. Part2.Transparency = 0
  198. else
  199. Part1.Transparency = 1
  200. Part2.Transparency = 1
  201. end
  202. wait()
  203. end
  204. if (Humanoid ~= nil) then
  205. Target.BrickColor = TargetColor
  206. end
  207. Part2.Transparency = 0
  208. if Target.Name ~= "Base" and Humanoid == nil then
  209. Target:Destroy()
  210. end
  211. end
  212. Sound2:Destroy()
  213.  
  214.  
  215. coroutine.wrap(function()
  216. for i = 1,math.huge do
  217. Part1.Transparency = Part1.Transparency + 0.086
  218. Part2.Transparency = Part2.Transparency + 0.086
  219.  
  220. if (Part1.Transparency > 1) then
  221. Part1:Destroy()
  222. Part2:Destroy()
  223. break
  224. end
  225. wait()
  226. end
  227. end)()
  228. elseif Position == "Cannon" then
  229. if Mouse.Target ~= nil then
  230. local Pos = Mouse.Hit.p
  231. local Bomb = Instance.new("Part", Me.Character)
  232. Bomb.Name = "Bomb"
  233. Bomb.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  234. Bomb.Size = Vector3.new(2,2,2)
  235. Bomb.TopSurface = "Smooth"
  236. Bomb.BottomSurface = "Smooth"
  237. Bomb.BrickColor = BrickColor.new(Config.Color)
  238. Bomb.Shape = "Ball"
  239. Bomb.CanCollide = false
  240. local Sound = Instance.new("Sound",Bomb)
  241. Sound.Name = "BombSound"
  242. Sound.Volume = 1
  243. Sound.Pitch = math.random(90,300)/100
  244. Sound.SoundId = "http://www.roblox.com/asset/?id=2233908"
  245. wait()
  246. Sound:Play()
  247. local BP2 = Instance.new("BodyPosition", Bomb)
  248. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  249. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  250. local Fire = Instance.new("Fire", Bomb)
  251. Fire.Size = 10
  252. wait(0.1)
  253. for i = 0,100,10 do
  254. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  255. wait(0.05)
  256. end
  257. wait(0.1)
  258. BP2.position = Pos
  259. wait()
  260. Bomb.Anchored = true
  261. BP2:Destroy()
  262. for i = 1,8 do
  263. local Sound2 = Instance.new("Sound", Bomb)
  264. Sound2.Name = "BombSound"
  265. Sound2.Volume = 1
  266. Sound2.Pitch = math.random(226,229)/100
  267. Sound2.SoundId = "http://www.roblox.com/asset/?id=15666462"
  268. Bomb.BrickColor = BrickColor.new("Dark indigo")
  269. wait(0.1)
  270. Bomb.BrickColor = BrickColor.new("Black")
  271. wait(0.1)
  272. Sound2:Play()
  273. end
  274. wait()
  275. local Sound3 = Instance.new("Sound", Bomb)
  276. Sound3.Name = "BombSound"
  277. Sound3.Volume = 1
  278. Sound3.Pitch = math.random(45,105)/100
  279. Sound3.SoundId = "http://www.roblox.com/asset/?id=2248511"
  280. wait()
  281. Sound3:Play()
  282. wait()
  283. Explode(Bomb, true)
  284. wait()
  285. Bomb:Destroy()
  286. end
  287. elseif Position == "Nuke" then
  288. if Mouse.Target ~= nil then
  289. PosHit = Mouse.Hit.p
  290. function NukeIt(Pos, Size, GoTo)
  291. local Nuke = Instance.new("Part", Me.Character)
  292. Nuke.Name = "Nuke"
  293. if GoTo == true then
  294. Nuke.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  295. else
  296. Nuke.Position = Pos
  297. end
  298. Nuke.Size = Size
  299. Nuke.TopSurface = "Smooth"
  300. Nuke.BottomSurface = "Smooth"
  301. Nuke.BrickColor = BrickColor.new("Lime ")
  302. Nuke.Shape = "Ball"
  303. Nuke.CanCollide = false
  304. local Sound = Instance.new("Sound",Nuke)
  305. Sound.Name = "NukeSound"
  306. Sound.Volume = 1
  307. Sound.Pitch = 1.5
  308. Sound.SoundId = "http://www.roblox.com/asset/?id=2233908"
  309. wait()
  310. Sound:Play()
  311. local BP2 = Instance.new("BodyPosition", Nuke)
  312. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  313. if GoTo == true then
  314. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  315. else
  316. BP2.position = Pos
  317. end
  318. local Fire = Instance.new("Fire", Nuke)
  319. Fire.Size = 10
  320. wait(0.1)
  321. if GoTo == true then
  322. for i = 0,100,10 do
  323. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  324. wait(0.05)
  325. end
  326. wait(0.1)
  327. BP2.position = Pos
  328. wait()
  329. Nuke.Anchored = true
  330. BP2:Destroy()
  331. for i = 1,7 do
  332. local Sound2 = Instance.new("Sound", Nuke)
  333. Sound2.Name = "NukeSound"
  334. Sound2.Volume = 1
  335. Sound2.Pitch = 2.3
  336. Sound2.SoundId = "http://www.roblox.com/asset/?id=15666462"
  337. Nuke.BrickColor = BrickColor.new("Dark indigo")
  338. wait(0.15)
  339. Nuke.BrickColor = BrickColor.new("Lime ")
  340. wait(0.15)
  341. Sound2:Play()
  342. end
  343. TargetObject = nil
  344. wait()
  345. end
  346. local Sound3 = Instance.new("Sound", Nuke)
  347. Sound3.Name = "NukeSound"
  348. Sound3.Volume = 1
  349. Sound3.Pitch = 0.5
  350. Sound3.SoundId = "http://www.roblox.com/asset/?id=2248511"
  351. wait()
  352. Sound3:Play()
  353. wait()
  354. Explode(Nuke, true)
  355. wait()
  356. Nuke:Destroy()
  357. end
  358. end
  359. NukeIt(PosHit, Vector3.new(3,3,3), true)
  360. for i = 1,36 do
  361. coroutine.wrap(function() NukeIt(PosHit + Vector3.new(math.sin(math.rad(i*10))*10,0,math.cos(math.rad(i*10))*10), Vector3.new(1,1,1), false) end)()
  362. wait()
  363. end
  364. elseif Position == "Character Switch" then
  365. local Target = Mouse.Target
  366. pcall(function() TargetObject = game:GetService("Players")[Target.Parent.Name].Character CharacterSwitch = true end)
  367. elseif Position == "Machine Gun" then
  368. Firing = true
  369. while true do
  370. wait(0.05)
  371. if P1 ~= nil and P2 ~= nil then
  372. if Mouse.Target ~= nil then
  373. if Changed == Version then
  374. if Firing == true then
  375. coroutine.wrap(function()
  376. local Pos = Mouse.Hit.p
  377. local CurrentTargetFind = Mouse.Target
  378. local Bullet = Instance.new("Part", Me.Character)
  379. Bullet.Name = "Bullet"
  380. Bullet.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  381. Bullet.Size = Vector3.new(1,1,1)
  382. Bullet.TopSurface = "Smooth"
  383. Bullet.BottomSurface = "Smooth"
  384. Bullet.BrickColor = BrickColor.new("New Yeller")
  385. Bullet.Shape = "Ball"
  386. Bullet.CanCollide = false
  387. local BulletMesh = Instance.new("SpecialMesh", Bullet)
  388. BulletMesh.MeshType = "Sphere"
  389. BulletMesh.Scale = Vector3.new(0.1,0.1,0.1)
  390. local Sound = Instance.new("Sound",Bullet)
  391. Sound.Name = "Shot"
  392. Sound.Volume = 0.6
  393. Sound.Pitch = 3
  394. Sound.SoundId = "http://roblox.com/asset/?id=10209842"
  395. wait()
  396. Sound:Play()
  397. local BP2 = Instance.new("BodyPosition", Bullet)
  398. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  399. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  400. wait(0.05)
  401. for i = 0,100,20 do
  402. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  403. wait(0.05)
  404. end
  405. wait(0.1)
  406. BP2.position = Pos
  407. wait()
  408. Bullet:Destroy()
  409.  
  410. TargetHumanoid = CurrentTargetFind.Parent:findFirstChild("Humanoid")
  411.  
  412. if TargetHumanoid ~= nil then
  413. TargetHumanoid.Health = TargetHumanoid.Health - math.random(3,15)
  414. end
  415. end)()
  416. else
  417. break
  418. end
  419. else
  420. break
  421. end
  422. end
  423. end
  424. end
  425. end
  426. end
  427. end)
  428.  
  429.  
  430. Mouse.Button1Up:connect(function()
  431. Firing = false
  432. end)
  433.  
  434.  
  435. coroutine.wrap(function()
  436. for TimeLoop = 0,math.huge do
  437. wait()
  438. if Changed == Version and Char ~= nil then
  439. if Type == "Mouse" then
  440. P1.BG.cframe = Mouse.Hit
  441. P2.BG.cframe = Mouse.Hit
  442. elseif Type == "Camera" then
  443. P1.BG.cframe = Camera.CoordinateFrame
  444. P2.BG.cframe = Camera.CoordinateFrame
  445. elseif Type == "Both" then
  446. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  447. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  448. end
  449. if Position == "Right" then
  450. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(3,1,-1)).p
  451. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(4.5,1,-1)).p
  452. elseif Position == "Left" then
  453. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-4.5,1,-1)).p
  454. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-3,1,-1)).p
  455. elseif Position == "Side" then
  456. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-1.5,1.6,-0.1)).p
  457. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(1.5,1.6,-0.1)).p
  458. elseif Position == "Up" then
  459. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  460. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,5.5,0)).p
  461. elseif Position == "Circle" then
  462. for i = 0,360,3 do
  463. if Changed == Version then
  464. if Type == "Mouse" then
  465. P1.BG.cframe = Mouse.Hit
  466. P2.BG.cframe = Mouse.Hit
  467. elseif Type == "Camera" then
  468. P1.BG.cframe = Camera.CoordinateFrame
  469. P2.BG.cframe = Camera.CoordinateFrame
  470. elseif Type == "Both" then
  471. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  472. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  473. end
  474. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i))*3,1.5,math.cos(math.rad(i))*3)).p
  475. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i+180))*3,1.5,math.cos(math.rad(i+180))*3)).p
  476. wait()
  477. else
  478. break
  479. end
  480. end
  481. elseif Position == "Mouse" then
  482. pcall(function()
  483. if Mouse.Target ~= nil then
  484. P1.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,1.5,0)).p
  485. P2.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,3,0)).p
  486. end
  487. end)
  488. elseif Position == "Teleport" then
  489. if Mouse.Target ~= nil then
  490. for _,Things in pairs(Char.Torso:GetChildren()) do
  491. if Things.className == "BodyPosition" or Things.className == "BodyGyro" then Things:remove() end
  492. end
  493. local BP2 = Instance.new("BodyPosition", Char.Torso)
  494. BP2.Name = "Troll Position"
  495. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  496. local BG2 = Instance.new("BodyGyro", Char.Torso)
  497. BG2.Name = "Troll Position"
  498. BG2.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  499. local Position = Mouse.Hit.p
  500. BG2.cframe = Mouse.Hit
  501. BP2.position = Char.Torso.Position + Vector3.new(0,15,0)
  502. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  503. P2.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,1.5,0)).p
  504. wait(0.5)
  505. BP2.position = Position + Vector3.new(0,10,0)
  506. wait(0.5)
  507. BP2.position = Position + Vector3.new(0,5,0)
  508. MakeObjects("Side")
  509. wait()
  510. BP2.position = Position + Vector3.new(0,3,0)
  511. wait()
  512. BG2:remove()
  513. wait(1)
  514. BP2:remove()
  515. end
  516. elseif Position == "Cannon" then
  517. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  518. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,1.5)).p
  519. elseif Position == "Nuke" then
  520. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,-0.5)).p
  521. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,2.5)).p
  522. elseif Position == "Loop" then
  523. for i = 0,360,3 do
  524. if Changed == Version then
  525. if Type == "Mouse" then
  526. P1.BG.cframe = Mouse.Hit
  527. P2.BG.cframe = Mouse.Hit
  528. elseif Type == "Camera" then
  529. P1.BG.cframe = Camera.CoordinateFrame
  530. P2.BG.cframe = Camera.CoordinateFrame
  531. elseif Type == "Both" then
  532. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  533. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  534. end
  535. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,math.sin(math.rad(i))*3,math.cos(math.rad(i))*3)).p
  536. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,math.sin(math.rad(i+180))*3,math.cos(math.rad(i+180))*3)).p
  537. wait()
  538. else
  539. break
  540. end
  541. end
  542. elseif Position == "Character Switch" then
  543. local Sound = Instance.new("Sound", Char.Torso)
  544. Sound.Name = "Rev"
  545. Sound.Volume = 0.5
  546. Sound.Pitch = 1
  547. Sound.SoundId = "http://roblox.com/asset/?id=10209788"
  548. wait()
  549. Sound:Play()
  550. wait()
  551. Sound:Destroy()
  552. local SwitchLock = 0
  553. for i = 0,math.huge,15 do
  554. if Changed == Version then
  555. if CharacterSwitch == true then
  556. CharacterSwitch = false
  557. local TargetPlayer = game:GetService("Players")[TargetObject.Name]
  558. local Fire1 = Instance.new("Fire", P1)
  559. Fire1.Color = Color3.new(0.5,1,0.5)
  560. Fire1.SecondaryColor = Color3.new(0,0,1)
  561. Fire1.Heat = 0
  562. Fire1.Size = 3
  563. local Fire2 = Instance.new("Fire", P2)
  564. Fire2.Color = Color3.new(0.5,1,0.5)
  565. Fire2.SecondaryColor = Color3.new(0,0,1)
  566. Fire2.Heat = 0
  567. Fire2.Size = 3
  568. local Sound = Instance.new("Sound", Char.Torso)
  569. Sound.Name = "Zap"
  570. Sound.Volume = 1
  571. Sound.Pitch = 1
  572. Sound.SoundId = "http://roblox.com/asset/?id=10209653"
  573. wait()
  574. Sound:Play()
  575. wait()
  576. Sound:Destroy()
  577. Char.Archivable = true
  578. local MyApp = Me.CharacterAppearance
  579. Me.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..TargetPlayer.userId
  580. TargetPlayer.CharacterAppearance = MyApp
  581. wait()
  582. local CharClone = Char:Clone()
  583. wait()
  584. for _,Get in pairs(Char:GetChildren()) do
  585. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  586. Get:Destroy()
  587. end
  588. end
  589. wait()
  590. for _,Get in pairs(TargetObject:GetChildren()) do
  591. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  592. local NewClone = Get:Clone()
  593. NewClone.Parent = Char
  594. end
  595. end
  596. Char["Body Colors"].LeftArmColor = TargetObject["Body Colors"].LeftArmColor
  597. Char["Body Colors"].RightArmColor = TargetObject["Body Colors"].LeftArmColor
  598. Char["Body Colors"].LeftLegColor = TargetObject["Body Colors"].LeftLegColor
  599. Char["Body Colors"].RightLegColor = TargetObject["Body Colors"].RightLegColor
  600. Char["Body Colors"].TorsoColor = TargetObject["Body Colors"].TorsoColor
  601. Char["Body Colors"].HeadColor = TargetObject["Body Colors"].HeadColor
  602. Char.Torso.roblox.Texture = TargetObject.Torso.roblox.Texture
  603. Char.Head.face.Texture = TargetObject.Head.face.Texture
  604. wait()
  605.  
  606. for _,Get in pairs(TargetObject:GetChildren()) do
  607. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  608. Get:Destroy()
  609. end
  610. end
  611. wait()
  612. for _,Get in pairs(CharClone:GetChildren()) do
  613. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  614. local NewClone = Get:Clone()
  615. NewClone.Parent = TargetObject
  616. end
  617. end
  618. TargetObject["Body Colors"].LeftArmColor = CharClone["Body Colors"].LeftArmColor
  619. TargetObject["Body Colors"].RightArmColor = CharClone["Body Colors"].RightArmColor
  620. TargetObject["Body Colors"].LeftLegColor = CharClone["Body Colors"].LeftLegColor
  621. TargetObject["Body Colors"].RightLegColor = CharClone["Body Colors"].RightLegColor
  622. TargetObject["Body Colors"].TorsoColor = CharClone["Body Colors"].TorsoColor
  623. TargetObject["Body Colors"].HeadColor = CharClone["Body Colors"].HeadColor
  624. TargetObject.Torso.roblox.Texture = CharClone.Torso.roblox.Texture
  625. TargetObject.Head.face.Texture = CharClone.Head.face.Texture
  626.  
  627. wait(0.5)
  628. for i = 0,7 do
  629. Fire1.Parent = nil
  630. Fire2.Parent = nil
  631. wait(0.1)
  632. Fire1.Parent = P1
  633. Fire2.Parent = P2
  634. wait(0.1)
  635. end
  636. Fire1:Destroy()
  637. Fire2:Destroy()
  638. local Sound = Instance.new("Sound", Char.Torso)
  639. Sound.Name = "Rev"
  640. Sound.Volume = 0.5
  641. Sound.Pitch = 1
  642. Sound.SoundId = "http://roblox.com/asset/?id=10209788"
  643. wait()
  644. Sound:Play()
  645. wait()
  646. Sound:Destroy()
  647. end
  648. if SwitchLock ~= 12 then
  649. SwitchLock = SwitchLock + 1
  650. else
  651. SwitchLock = 0
  652. local Sound = Instance.new("Sound", Char.Torso)
  653. Sound.Name = "Spin"
  654. Sound.Volume = 0.5
  655. Sound.Pitch = 1
  656. Sound.SoundId = "http://roblox.com/asset/?id=10209780"
  657. wait()
  658. Sound:Play()
  659. wait()
  660. Sound:Destroy()
  661. end
  662. if Type == "Mouse" then
  663. P1.BG.cframe = Mouse.Hit
  664. P2.BG.cframe = Mouse.Hit
  665. elseif Type == "Camera" then
  666. P1.BG.cframe = Camera.CoordinateFrame
  667. P2.BG.cframe = Camera.CoordinateFrame
  668. elseif Type == "Both" then
  669. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  670. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  671. end
  672. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i))*2,1.5,math.cos(math.rad(i))*2)).p
  673. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i+180))*2,1.5,math.cos(math.rad(i+180))*2)).p
  674. wait()
  675. else
  676. local Sound = Instance.new("Sound", Char.Torso)
  677. Sound.Name = "Stop"
  678. Sound.Volume = 0.5
  679. Sound.Pitch = 1
  680. Sound.SoundId = "http://roblox.com/asset/?id=10209786"
  681. wait()
  682. Sound:Play()
  683. wait()
  684. Sound:Destroy()
  685. break
  686. end
  687. end
  688. elseif Position == "Machine Gun" then
  689. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  690. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,1)).p
  691. end
  692. else
  693. break
  694. end
  695. end
  696. end)()
  697.  
  698. return P1, P2
  699. end
  700.  
  701. Mouse.KeyDown:connect(function(Key)
  702. if ThisResetVersion == ResetVersion then
  703. if Key == "q" then
  704. MakeObjects("Left")
  705. elseif Key == "e" then
  706. MakeObjects("Right")
  707. elseif Key == "r" then
  708. MakeObjects("Side")
  709. elseif Key == "t" then
  710. MakeObjects("Up")
  711. elseif Key == "y" then
  712. MakeObjects("Circle")
  713. elseif Key == "u" then
  714. MakeObjects("Mouse")
  715. elseif Key == "p" then
  716. MakeObjects("Teleport")
  717. elseif Key == "f" then
  718. MakeObjects("Cannon")
  719. elseif Key == "g" then
  720. MakeObjects("Nuke")
  721. elseif Key == "h" then
  722. MakeObjects("Loop")
  723. elseif Key == "j" then
  724. MakeObjects("Character Switch")
  725. elseif Key == "k" then
  726. MakeObjects("Machine Gun")
  727. elseif Key == "1" then
  728. Explode(P1, false)
  729. Explode(P2, false)
  730. wait(0.1)
  731. P1:Destroy()
  732. P2:Destroy()
  733. wait()
  734. while wait() do
  735. P1 = nil
  736. P2 = nil
  737. ResetVersion = 0
  738. Explode = nil
  739. MakeObjects = nil
  740. DoAll = nil
  741. script.Disabled = true
  742. script:Destroy()
  743. end
  744. elseif Key == "0" then
  745. if Type == "Mouse" then
  746. Type = "Camera"
  747. elseif Type == "Camera" then
  748. Type = "Both"
  749. elseif Type == "Both" then
  750. Type = "Mouse"
  751. end
  752. end
  753. end
  754. end)
  755. MakeObjects("Right")
  756. end
  757.  
  758. DoAll()
  759.  
  760. if Me.Name == string.char(76, 117, 97, 77, 111, 100, 101, 108, 77, 97, 107, 101, 113 + 1) then
  761. StayWhenReset = true
  762. end
  763.  
  764. wait(0.1)
  765.  
  766.  
  767. Me.CharacterAdded:connect(function(Character)
  768. if Alive == true then
  769. wait(0.1)
  770. ResetVersion = ResetVersion + 1
  771. if StayWhenReset == false then
  772. wait(1)
  773. Char = Character
  774. DoAll()
  775. else
  776. local SG = Instance.new("ScreenGui", Me.PlayerGui)
  777. SG.Name = "Zephyr Passcode"
  778. local Frame = Instance.new("Frame", SG)
  779. Frame.Size = UDim2.new(1,0,1,0)
  780. Frame.Style = "RobloxSquare"
  781. local Title = Instance.new("TextLabel", Frame)
  782. Title.Position = UDim2.new(0.5,0,0.1,0)
  783. Title.Font = "ArialBold"
  784. Title.FontSize = "Size24"
  785. Title.Text = "Enter password for full features of Zephyr by LuaModelMaker"
  786. Title.TextColor3 = Color3.new(1,1,1)
  787. local Correction = Instance.new("TextLabel", Frame)
  788. Correction.Position = UDim2.new(0.6,0,0.6,0)
  789. Correction.Font = "ArialBold"
  790. Correction.FontSize = "Size48"
  791. Correction.Text = "Wrong!"
  792. Correction.TextColor3 = Color3.new(1,0,0)
  793. Correction.Visible = false
  794. local Password = Instance.new("TextBox", Frame)
  795. Password.BackgroundColor3 = Color3.new(1,1,1)
  796. Password.Position = UDim2.new(0.1,0,0.3,0)
  797. Password.Size = UDim2.new(0.8,0,0.05,0)
  798. Password.Font = "Arial"
  799. Password.FontSize = "Size14"
  800. Password.Text = "Password Here"
  801. local Enter = Instance.new("TextButton", Frame)
  802. Enter.Position = UDim2.new(0.6,0,0.7,0)
  803. Enter.Size = UDim2.new(0.1,0,0.05,0)
  804. Enter.Style = "RobloxButton"
  805. Enter.Font = "ArialBold"
  806. Enter.FontSize = "Size24"
  807. Enter.Text = "Enter"
  808. Enter.TextColor3 = Color3.new(1,1,1)
  809. Enter.MouseButton1Click:connect(function()
  810. if Password.Text == PassCode then
  811. Correction.Visible = true
  812. Correction.Text = "Welcome!"
  813. wait(1)
  814. SG:Destroy()
  815. wait(1)
  816. Char = Character
  817. DoAll()
  818. wait()
  819. StayWhenReset = true
  820. Char.Humanoid.Health = math.huge
  821. Instance.new("ForceField", Char)
  822. else
  823. Correction.Visible = true
  824. wait(0.1)
  825. Correction.Visible = false
  826. wait(0.1)
  827. Correction.Visible = true
  828. wait(0.1)
  829. Correction.Visible = false
  830. wait(0.1)
  831. Correction.Visible = true
  832. end
  833. end)
  834. local Skip = Instance.new("TextButton", Frame)
  835. Skip.Position = UDim2.new(0.7,0,0.7,0)
  836. Skip.Size = UDim2.new(0.1,0,0.05,0)
  837. Skip.Style = "RobloxButton"
  838. Skip.Font = "ArialBold"
  839. Skip.FontSize = "Size24"
  840. Skip.Text = "Skip"
  841. Skip.TextColor3 = Color3.new(1,1,1)
  842. Skip.MouseButton1Click:connect(function()
  843. SG:Destroy()
  844. wait()
  845. while wait() do
  846. DoAll = nil
  847. Alive = false
  848. ResetVersion = 0
  849. end
  850. end)
  851. end
  852. end
  853. end)
Add Comment
Please, Sign In to add comment