PrinceNexus

Cubes

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