Advertisement
astronaut32

magic guy

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