Advertisement
astronaut32

zephr cubes

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