Demonlord27

yllowcubes

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