astronaut32

celestial arcus

Oct 24th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 173.46 KB | None | 0 0
  1. repeat wait() script.Parent = nil until script.Parent == nil
  2. local verlet = {}
  3. verlet.step_time = 1 / 50
  4. verlet.gravity = Vector3.new(0, -10, 0)
  5.  
  6. local char = game.Players.LocalPlayer.Character
  7. local torso = char:WaitForChild("Torso")
  8. local parts = {}
  9. local render = game:GetService("RunService").RenderStepped
  10.  
  11. wait(2)
  12.  
  13. local point = {}
  14. local link = {}
  15. local rope = {}
  16.  
  17. local function ccw(A,B,C)
  18. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  19. end
  20.  
  21. local function intersect(A,B,C,D)
  22. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  23. end
  24.  
  25. local function vec2(v)
  26. return Vector2.new(v.x, v.z)
  27. end
  28.  
  29. function point:step()
  30. if not self.fixed then
  31. local derivative = (self.position - self.last_position) * 0.95
  32. self.last_position = self.position
  33. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  34. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  35. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  36. local pointE = self.position + torso.CFrame.lookVector * 100
  37. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  38. if not doIntersect then
  39. self.postition = self.position - torso.CFrame.lookVector * 10
  40. end]]
  41. end
  42. end
  43.  
  44. function link:step()
  45. for i = 1, 1 do
  46. local distance = self.point1.position - self.point2.position
  47. local magnitude = distance.magnitude
  48. local differance = (self.length - magnitude) / magnitude
  49. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  50. if not self.point1.fixed then
  51. self.point1.position = self.point1.position + translation
  52. end
  53. if not self.point2.fixed then
  54. self.point2.position = self.point2.position - translation
  55. end
  56. end
  57. end
  58.  
  59. function verlet.new(class, a, b, c)
  60. if class == "Point" then
  61. local new = {}
  62. setmetatable(new, {__index = point})
  63. new.class = class
  64. new.position = a or Vector3.new()
  65. new.last_position = new.position
  66. new.velocity = verlet.gravity
  67. new.fixed = false
  68. return new
  69. elseif class == "Link" then
  70. local new = {}
  71. setmetatable(new, {__index = link})
  72. new.class = class
  73. new.point1 = a
  74. new.point2 = b
  75. new.length = c or (a.position - b.position).magnitude
  76. return new
  77. elseif class == "Rope" then
  78. local new = {}
  79. setmetatable(new, {__index = link})
  80. new.class = class
  81. new.start_point = a
  82. new.finish_point = b
  83. new.points = {}
  84. new.links = {}
  85. local inc = (b - a) / 10
  86. for i = 0, 10 do
  87. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  88. end
  89. for i = 2, #new.points do
  90. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  91. end
  92. return new
  93. end
  94. end
  95.  
  96. local tris = {}
  97. local triParts = {}
  98.  
  99. local function GetDiscoColor(hue)
  100. local section = hue % 1 * 3
  101. local secondary = 0.5 * math.pi * (section % 1)
  102. if section < 1 then
  103. return Color3.new(0, 0, 0)
  104. elseif section < 2 then
  105. return Color3.new(0, 0, 0)
  106. else
  107. return Color3.new(0, 0, 0)
  108. end
  109. end
  110.  
  111. local function setupPart(part)
  112. part.Anchored = true
  113. part.FormFactor = 3
  114. part.CanCollide = false
  115. part.TopSurface = 10
  116. part.BottomSurface = 10
  117. part.LeftSurface = 10
  118. part.RightSurface = 10
  119. part.FrontSurface = 10
  120. part.BackSurface = 10
  121. part.Material = "Neon"
  122. local m = Instance.new("SpecialMesh", part)
  123. m.MeshType = "Wedge"
  124. m.Scale = Vector3.new(0.2, 1, 1)
  125. return part
  126. end
  127.  
  128. local function CFrameFromTopBack(at, top, back)
  129. local right = top:Cross(back)
  130. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  131. end
  132.  
  133. local function drawTri(parent, a, b, c)
  134. local this = {}
  135. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  136. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  137. function this:Set(a, b, c)
  138. local ab, bc, ca = b-a, c-b, a-c
  139. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  140. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  141. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  142. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  143. if edg1 < edg2 then
  144. if edg1 >= edg3 then
  145. a, b, c = c, a, b
  146. ab, bc, ca = ca, ab, bc
  147. abm = cam
  148. end
  149. else
  150. if edg2 < edg3 then
  151. a, b, c = b, c, a
  152. ab, bc, ca = bc, ca, ab
  153. abm = bcm
  154. else
  155. a, b, c = c, a, b
  156. ab, bc, ca = ca, ab, bc
  157. abm = cam
  158. end
  159. end
  160.  
  161. local len1 = -ca:Dot(ab)/abm
  162. local len2 = abm - len1
  163. local width = (ca + ab.unit*len1).magnitude
  164.  
  165. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  166.  
  167. if len1 > 0.2 then
  168. mPart1.Parent = parent
  169. mPart1.Size = Vector3.new(0.2, width, len1)
  170. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  171. else
  172. mPart1.Parent = nil
  173. end
  174.  
  175. if len2 > 0.2 then
  176. mPart2.Parent = parent
  177. mPart2.Size = Vector3.new(0.2, width, len2)
  178. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  179. else
  180. mPart2.Parent = nil
  181. end
  182. end
  183. function this:SetProperty(prop, value)
  184. mPart1[prop] = value
  185. mPart2[prop] = value
  186. end
  187. this:Set(a, b, c)
  188. function this:Destroy()
  189. mPart1:Destroy()
  190. mPart2:Destroy()
  191. end
  192. this.p1 = mPart1
  193. this.p2 = mPart2
  194. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  195. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  196. return this
  197. end
  198.  
  199. function verlet.draw(object, id)
  200. if object.class == "Point" then
  201. local part = parts[id]
  202. part.BrickColor = BrickColor.new(107, 0, 107)
  203. part.Transparency = 0
  204. part.formFactor = 3
  205. part.Anchored = true
  206. part.CanCollide = false
  207. part.TopSurface = 0
  208. part.BottomSurface = 0
  209. part.Size = Vector3.new(0.35, 0.35, 0.35)
  210. part.Material = "Neon"
  211. part.CFrame = CFrame.new(object.position)
  212. part.Parent = torso
  213. return part
  214. elseif object.class == "Link" then
  215. local part = parts[id]
  216. local dist = (object.point1.position - object.point2.position).magnitude
  217. part.Size = Vector3.new(0.2, 0.2, dist)
  218. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  219. part.Parent = torso
  220. return part
  221. end
  222. end
  223.  
  224. function verlet.clear()
  225. for _, v in pairs(workspace:GetChildren()) do
  226. if v.Name == "Part" then
  227. v:Destroy()
  228. end
  229. end
  230. end
  231.  
  232. local points = {}
  233. local links = {}
  234.  
  235. for x = 0, 2 do
  236. points[x] = {}
  237. for y = 0, 3 do
  238. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  239. points[x][y].fixed = y == 0
  240. end
  241. end
  242.  
  243. for x = 1, 2 do
  244. for y = 0, 3 do
  245. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  246. end
  247. end
  248.  
  249. for x = 0, 2 do
  250. for y = 1, 3 do
  251. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  252. end
  253. end
  254.  
  255. render:connect(function()
  256. for x = 0, 2 do
  257. for y = 0, 3 do
  258. if y == 0 then
  259. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  260. else
  261. points[x][y]:step()
  262. end
  263. end
  264. end
  265. for i = 1, #links do
  266. links[i]:step()
  267. end
  268. for i = 1, #tris do
  269. triParts[#triParts + 1] = tris[i].p1
  270. triParts[#triParts + 1] = tris[i].p2
  271. end
  272. tris = {}
  273. for x = 1, 2 do
  274. for y = 1, 3 do
  275. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  276. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  277. end
  278. end
  279. end)
  280.  
  281.  
  282. local StayWhenReset = true
  283.  
  284. local PassCode = string.char(67, 65, 80, 83)
  285.  
  286. local Workspace = game:GetService("Workspace")
  287. local Players = game:GetService("Players")
  288.  
  289. local Me = Players.LocalPlayer
  290. local Char = Me.Character
  291. local Mouse = Me:GetMouse()
  292. local Camera = game:GetService("Workspace").CurrentCamera
  293.  
  294. local Changed = 0
  295. local CurrentPos = nil
  296. local Alive = true
  297.  
  298. local ResetVersion = 1
  299.  
  300. local Type = "Mouse"
  301.  
  302. local Config = {
  303. Shape = "Ball";
  304. Color = "Cyan";
  305. Material = "Neon";
  306. }
  307.  
  308. function Explode(Part, Effect)
  309. local BOOM = Instance.new("Explosion", Part)
  310. BOOM.Position = Part.Position
  311. if Effect == true then
  312. BOOM.BlastPressure = 10043535
  313. BOOM.BlastRadius = 50
  314. else
  315. BOOM.BlastPressure = 0
  316. BOOM.BlastRadius = 0
  317. end
  318. BOOM.Hit:connect(function(Object)
  319. if Effect == true then
  320. if Object:IsA("BasePart") and Object.Name ~= "Base" and Object.Name ~= "Baseplate" and Object.Name ~= "Bomb" and Object.Name ~= "Nuke" then
  321. Object:BreakJoints()
  322. Object.Anchored = false
  323. end
  324. end
  325. end)
  326. end
  327.  
  328. function DoAll()
  329. local ThisResetVersion = ResetVersion
  330.  
  331. local P1 = nil
  332. local P2 = nil
  333.  
  334. local Firing = false
  335.  
  336. function MakeObjects(Position, ...)
  337. local OtherArgs = {...}
  338. CurrentPos = Position
  339.  
  340. Changed = Changed + 1
  341. wait()
  342. local Version = Changed
  343.  
  344. local CharacterSwitch = nil
  345. local TargetObject = nil
  346.  
  347. if P1 == nil and P2 == nil then
  348. P1 = Instance.new("Part", Char)
  349. P1.Name = "P1"
  350. P1.Size = Vector3.new(1,1,1)
  351. P1.Shape = Config.Shape
  352. P1.BrickColor = BrickColor.new(Config.Color)
  353. P1.Material = Config.Material
  354. P1.TopSurface = "Smooth"
  355. P1.BottomSurface = "Smooth"
  356. P1.Position = Char.Torso.Position
  357. P1.CanCollide = false
  358. local BP = Instance.new("BodyPosition", P1)
  359. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  360. BP.position = Char.Torso.Position
  361. BP.Name = "BP"
  362. local BG = Instance.new("BodyGyro", P1)
  363. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  364. BG.Name = "BG"
  365.  
  366. P2 = P1:Clone()
  367. P2.Parent = Char
  368.  
  369. P1:BreakJoints()
  370. P2:BreakJoints()
  371. wait()
  372. end
  373.  
  374. Mouse.Button1Down:connect(function()
  375. if Changed == Version and Char ~= nil and ResetVersion == ThisResetVersion then
  376. if Position == "Side" or Position == "Up" then
  377. local Sound = Instance.new("Sound", Char.Head)
  378. Sound.Name = "Pew"
  379. Sound.Volume = 1
  380. Sound.Pitch = 1
  381. Sound.SoundId = "http://www.roblox.com/asset/?id=10756104"
  382. local Sound2 = Instance.new("Sound", Char.Head)
  383. Sound2.Name = "Pew"
  384. Sound2.Volume = 5
  385. Sound2.Pitch = 3
  386. Sound2.SoundId = "http://www.roblox.com/asset/?id=10756118"
  387. local Place0 = CFrame.new(P1.CFrame.x, P1.CFrame.y, P1.CFrame.z)
  388. local Place1 = Mouse.Hit.p
  389. local Place2 = CFrame.new(P2.CFrame.x, P2.CFrame.y, P2.CFrame.z)
  390.  
  391. local Part1 = Instance.new("Part")
  392. Part1.Parent = P1
  393. Part1.Name = "Laser 1"
  394. Part1.Position = Vector3.new(0, 0, 0)
  395. Part1.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  396. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  397. Part1.BrickColor = BrickColor.new(Config.Color) -- Leave this be, or change it to a color available on ROBLOX.
  398. Part1.Locked = true
  399. Part1.Anchored = true
  400. Part1.CanCollide = false
  401. Part1.BottomSurface = "Smooth"
  402. Part1.TopSurface = "Smooth"
  403.  
  404. local Part2 = Instance.new("Part")
  405. Part2.Parent = P2
  406. Part2.Name = "Laser 2"
  407. Part2.Position = Vector3.new(0, 0, 0)
  408. Part2.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  409. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  410. Part2.BrickColor = BrickColor.new(Config.Color) -- Leave this be, or change it to a color available on ROBLOX.
  411. Part2.Locked = true
  412. Part2.Anchored = true
  413. Part2.CanCollide = false
  414. Part2.BottomSurface = "Smooth"
  415. Part2.TopSurface = "Smooth"
  416.  
  417. local BlockMesh1 = Instance.new("BlockMesh")
  418. BlockMesh1.Parent = Part1
  419. BlockMesh1.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  420.  
  421. local BlockMesh2 = Instance.new("BlockMesh")
  422. BlockMesh2.Parent = Part2
  423. BlockMesh2.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  424.  
  425. wait()
  426. Sound:Play()
  427. wait()
  428. Sound:Destroy()
  429.  
  430. coroutine.wrap(function()
  431. for i = 1,math.huge do
  432. Place0 = CFrame.new(P1.CFrame.x, P1.CFrame.y, P1.CFrame.z)
  433. Place2 = CFrame.new(P2.CFrame.x, P2.CFrame.y, P2.CFrame.z)
  434. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  435. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  436. BlockMesh1.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  437. BlockMesh2.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  438. wait()
  439. end
  440. end)()
  441.  
  442. if Mouse.Target ~= nil then
  443. local Humanoid = nil
  444. local Target = Mouse.Target
  445. local TargetColor = Mouse.Target.BrickColor
  446. local TargetPos = Target.CFrame
  447.  
  448. if (Mouse.Target ~= nil) then
  449. TargetHumanoid = Mouse.Target.Parent:findFirstChild("Humanoid")
  450.  
  451. if (TargetHumanoid ~= nil) then
  452. Humanoid = TargetHumanoid
  453. Humanoid.Health = Humanoid.Health - math.random(3,15)
  454. end
  455. end
  456.  
  457. wait(0.4)
  458.  
  459. local function ReMake(Type)
  460. if Target.BrickColor == TargetColor then
  461. Target.BrickColor = BrickColor.new(Config.Color)
  462. else
  463. Target.BrickColor = TargetColor
  464. end
  465.  
  466. if Type == "Single" then
  467. Target:BreakJoints()
  468. Target.Anchored = true
  469. Target.CFrame = TargetPos * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  470. elseif Type == "Model" and Target.Parent:findFirstChild("Torso") then
  471. Target.Parent:MoveTo(Target.Parent.Torso.Position + Vector3.new(math.random(-2,2),math.random(0,2) + 2.5,math.random(-2,2)))
  472. end
  473. end
  474.  
  475. for i = 1,10 do
  476. Sound2:Play()
  477. if (Humanoid ~= nil) then
  478. Humanoid.Health = Humanoid.Health - math.random(1,3)
  479. ReMake("Model")
  480. else
  481. if Target.Name ~= "Base" and Target.Name ~= "Baseplate" then
  482. ReMake("Single")
  483. end
  484. end
  485. if Part1.Transparency == 1 then
  486. Part1.Transparency = 0
  487. Part2.Transparency = 0
  488. else
  489. Part1.Transparency = 1
  490. Part2.Transparency = 1
  491. end
  492. wait()
  493. end
  494. if (Humanoid ~= nil) then
  495. Target.BrickColor = TargetColor
  496. end
  497. Part2.Transparency = 0
  498. if Target.Name ~= "Base" and Humanoid == nil then
  499. Target:Destroy()
  500. end
  501. end
  502. Sound2:Destroy()
  503.  
  504.  
  505. coroutine.wrap(function()
  506. for i = 1,math.huge do
  507. Part1.Transparency = Part1.Transparency + 0.086
  508. Part2.Transparency = Part2.Transparency + 0.086
  509.  
  510. if (Part1.Transparency > 1) then
  511. Part1:Destroy()
  512. Part2:Destroy()
  513. break
  514. end
  515. wait()
  516. end
  517. end)()
  518. elseif Position == "Cannon" then
  519. if Mouse.Target ~= nil then
  520. local Pos = Mouse.Hit.p
  521. local Bomb = Instance.new("Part", Me.Character)
  522. Bomb.Name = "Bomb"
  523. Bomb.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  524. Bomb.Size = Vector3.new(2,2,2)
  525. Bomb.TopSurface = "Smooth"
  526. Bomb.BottomSurface = "Smooth"
  527. Bomb.BrickColor = BrickColor.new(Config.Color)
  528. Bomb.Shape = "Ball"
  529. Bomb.CanCollide = false
  530. local Sound = Instance.new("Sound",Bomb)
  531. Sound.Name = "BombSound"
  532. Sound.Volume = 1
  533. Sound.Pitch = math.random(90,300)/100
  534. Sound.SoundId = "http://www.roblox.com/asset/?id=2233908"
  535. wait()
  536. Sound:Play()
  537. local BP2 = Instance.new("BodyPosition", Bomb)
  538. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  539. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  540. local Fire = Instance.new("Fire", Bomb)
  541. Fire.Size = 10
  542. wait(0.1)
  543. for i = 0,100,10 do
  544. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  545. wait(0.05)
  546. end
  547. wait(0.1)
  548. BP2.position = Pos
  549. wait()
  550. Bomb.Anchored = true
  551. BP2:Destroy()
  552. for i = 1,8 do
  553. local Sound2 = Instance.new("Sound", Bomb)
  554. Sound2.Name = "BombSound"
  555. Sound2.Volume = 1
  556. Sound2.Pitch = math.random(226,229)/100
  557. Sound2.SoundId = "http://www.roblox.com/asset/?id=15666462"
  558. Bomb.BrickColor = BrickColor.new("Really red")
  559. wait(0.1)
  560. Bomb.BrickColor = BrickColor.new("Black")
  561. wait(0.1)
  562. Sound2:Play()
  563. end
  564. wait()
  565. local Sound3 = Instance.new("Sound", Bomb)
  566. Sound3.Name = "BombSound"
  567. Sound3.Volume = 1
  568. Sound3.Pitch = math.random(45,105)/100
  569. Sound3.SoundId = "http://www.roblox.com/asset/?id=2248511"
  570. wait()
  571. Sound3:Play()
  572. wait()
  573. Explode(Bomb, true)
  574. wait()
  575. Bomb:Destroy()
  576. end
  577. elseif Position == "Nuke" then
  578. if Mouse.Target ~= nil then
  579. PosHit = Mouse.Hit.p
  580. function NukeIt(Pos, Size, GoTo)
  581. local Nuke = Instance.new("Part", Me.Character)
  582. Nuke.Name = "Nuke"
  583. if GoTo == true then
  584. Nuke.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  585. else
  586. Nuke.Position = Pos
  587. end
  588. Nuke.Size = Size
  589. Nuke.TopSurface = "Smooth"
  590. Nuke.BottomSurface = "Smooth"
  591. Nuke.BrickColor = BrickColor.new("Lime green")
  592. Nuke.Shape = "Ball"
  593. Nuke.CanCollide = false
  594. local Sound = Instance.new("Sound",Nuke)
  595. Sound.Name = "NukeSound"
  596. Sound.Volume = 1
  597. Sound.Pitch = 1.5
  598. Sound.SoundId = "http://www.roblox.com/asset/?id=2233908"
  599. wait()
  600. Sound:Play()
  601. local BP2 = Instance.new("BodyPosition", Nuke)
  602. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  603. if GoTo == true then
  604. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  605. else
  606. BP2.position = Pos
  607. end
  608. local Fire = Instance.new("Fire", Nuke)
  609. Fire.Size = 10
  610. wait(0.1)
  611. if GoTo == true then
  612. for i = 0,100,10 do
  613. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  614. wait(0.05)
  615. end
  616. wait(0.1)
  617. BP2.position = Pos
  618. wait()
  619. Nuke.Anchored = true
  620. BP2:Destroy()
  621. for i = 1,7 do
  622. local Sound2 = Instance.new("Sound", Nuke)
  623. Sound2.Name = "NukeSound"
  624. Sound2.Volume = 1
  625. Sound2.Pitch = 2.3
  626. Sound2.SoundId = "http://www.roblox.com/asset/?id=15666462"
  627. Nuke.BrickColor = BrickColor.new("Really red")
  628. wait(0.15)
  629. Nuke.BrickColor = BrickColor.new("Lime green")
  630. wait(0.15)
  631. Sound2:Play()
  632. end
  633. TargetObject = nil
  634. wait()
  635. end
  636. local Sound3 = Instance.new("Sound", Nuke)
  637. Sound3.Name = "NukeSound"
  638. Sound3.Volume = 1
  639. Sound3.Pitch = 0.5
  640. Sound3.SoundId = "http://www.roblox.com/asset/?id=2248511"
  641. wait()
  642. Sound3:Play()
  643. wait()
  644. Explode(Nuke, true)
  645. wait()
  646. Nuke:Destroy()
  647. end
  648. end
  649. NukeIt(PosHit, Vector3.new(3,3,3), true)
  650. for i = 1,36 do
  651. 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)()
  652. wait()
  653. end
  654. elseif Position == "Character Switch" then
  655. local Target = Mouse.Target
  656. pcall(function() TargetObject = game:GetService("Players")[Target.Parent.Name].Character CharacterSwitch = true end)
  657. elseif Position == "Machine Gun" then
  658. Firing = true
  659. while true do
  660. wait(0.05)
  661. if P1 ~= nil and P2 ~= nil then
  662. if Mouse.Target ~= nil then
  663. if Changed == Version then
  664. if Firing == true then
  665. coroutine.wrap(function()
  666. local Pos = Mouse.Hit.p
  667. local CurrentTargetFind = Mouse.Target
  668. local Bullet = Instance.new("Part", Me.Character)
  669. Bullet.Name = "Bullet"
  670. Bullet.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  671. Bullet.Size = Vector3.new(1,1,1)
  672. Bullet.TopSurface = "Smooth"
  673. Bullet.BottomSurface = "Smooth"
  674. Bullet.BrickColor = BrickColor.new("New Yeller")
  675. Bullet.Shape = "Ball"
  676. Bullet.CanCollide = false
  677. local BulletMesh = Instance.new("SpecialMesh", Bullet)
  678. BulletMesh.MeshType = "Sphere"
  679. BulletMesh.Scale = Vector3.new(0.1,0.1,0.1)
  680. local Sound = Instance.new("Sound",Bullet)
  681. Sound.Name = "Shot"
  682. Sound.Volume = 0.6
  683. Sound.Pitch = 3
  684. Sound.SoundId = "http://roblox.com/asset/?id=10209842"
  685. wait()
  686. Sound:Play()
  687. local BP2 = Instance.new("BodyPosition", Bullet)
  688. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  689. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  690. wait(0.05)
  691. for i = 0,100,20 do
  692. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  693. wait(0.05)
  694. end
  695. wait(0.1)
  696. BP2.position = Pos
  697. wait()
  698. Bullet:Destroy()
  699.  
  700. TargetHumanoid = CurrentTargetFind.Parent:findFirstChild("Humanoid")
  701.  
  702. if TargetHumanoid ~= nil then
  703. TargetHumanoid.Health = TargetHumanoid.Health - math.random(3,15)
  704. end
  705. end)()
  706. else
  707. break
  708. end
  709. else
  710. break
  711. end
  712. end
  713. end
  714. end
  715. end
  716. end
  717. end)
  718.  
  719.  
  720. Mouse.Button1Up:connect(function()
  721. Firing = false
  722. end)
  723.  
  724.  
  725. coroutine.wrap(function()
  726. for TimeLoop = 0,math.huge do
  727. wait()
  728. if Changed == Version and Char ~= nil then
  729. if Type == "Mouse" then
  730. P1.BG.cframe = Mouse.Hit
  731. P2.BG.cframe = Mouse.Hit
  732. elseif Type == "Camera" then
  733. P1.BG.cframe = Camera.CoordinateFrame
  734. P2.BG.cframe = Camera.CoordinateFrame
  735. elseif Type == "Both" then
  736. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  737. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  738. end
  739. if Position == "Right" then
  740. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(3,1,-1)).p
  741. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(4.5,1,-1)).p
  742. elseif Position == "Left" then
  743. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-4.5,1,-1)).p
  744. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-3,1,-1)).p
  745. elseif Position == "Side" then
  746. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-1.5,1.6,-0.1)).p
  747. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(1.5,1.6,-0.1)).p
  748. elseif Position == "Up" then
  749. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  750. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,5.5,0)).p
  751. elseif Position == "Circle" then
  752. for i = 0,360,3 do
  753. if Changed == Version then
  754. if Type == "Mouse" then
  755. P1.BG.cframe = Mouse.Hit
  756. P2.BG.cframe = Mouse.Hit
  757. elseif Type == "Camera" then
  758. P1.BG.cframe = Camera.CoordinateFrame
  759. P2.BG.cframe = Camera.CoordinateFrame
  760. elseif Type == "Both" then
  761. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  762. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  763. end
  764. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i))*3,1.5,math.cos(math.rad(i))*3)).p
  765. 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
  766. wait()
  767. else
  768. break
  769. end
  770. end
  771. elseif Position == "Mouse" then
  772. pcall(function()
  773. if Mouse.Target ~= nil then
  774. P1.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,1.5,0)).p
  775. P2.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,3,0)).p
  776. end
  777. end)
  778. elseif Position == "Teleport" then
  779. if Mouse.Target ~= nil then
  780. for _,Things in pairs(Char.Torso:GetChildren()) do
  781. if Things.className == "BodyPosition" or Things.className == "BodyGyro" then Things:remove() end
  782. end
  783. local BP2 = Instance.new("BodyPosition", Char.Torso)
  784. BP2.Name = "Troll Position"
  785. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  786. local BG2 = Instance.new("BodyGyro", Char.Torso)
  787. BG2.Name = "Troll Position"
  788. BG2.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  789. local Position = Mouse.Hit.p
  790. BG2.cframe = Mouse.Hit
  791. BP2.position = Char.Torso.Position + Vector3.new(0,15,0)
  792. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  793. P2.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,1.5,0)).p
  794. wait(0.5)
  795. BP2.position = Position + Vector3.new(0,10,0)
  796. wait(0.5)
  797. BP2.position = Position + Vector3.new(0,5,0)
  798. MakeObjects("Side")
  799. wait()
  800. BP2.position = Position + Vector3.new(0,3,0)
  801. wait()
  802. BG2:remove()
  803. wait(1)
  804. BP2:remove()
  805. end
  806. elseif Position == "Cannon" then
  807. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  808. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,1.5)).p
  809. elseif Position == "Nuke" then
  810. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,-0.5)).p
  811. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,2.5)).p
  812. elseif Position == "Loop" then
  813. for i = 0,360,3 do
  814. if Changed == Version then
  815. if Type == "Mouse" then
  816. P1.BG.cframe = Mouse.Hit
  817. P2.BG.cframe = Mouse.Hit
  818. elseif Type == "Camera" then
  819. P1.BG.cframe = Camera.CoordinateFrame
  820. P2.BG.cframe = Camera.CoordinateFrame
  821. elseif Type == "Both" then
  822. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  823. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  824. end
  825. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,math.sin(math.rad(i))*3,math.cos(math.rad(i))*3)).p
  826. 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
  827. wait()
  828. else
  829. break
  830. end
  831. end
  832. elseif Position == "Character Switch" then
  833. local Sound = Instance.new("Sound", Char.Torso)
  834. Sound.Name = "Rev"
  835. Sound.Volume = 0.5
  836. Sound.Pitch = 1
  837. Sound.SoundId = "http://roblox.com/asset/?id=10209788"
  838. wait()
  839. Sound:Play()
  840. wait()
  841. Sound:Destroy()
  842. local SwitchLock = 0
  843. for i = 0,math.huge,15 do
  844. if Changed == Version then
  845. if CharacterSwitch == true then
  846. CharacterSwitch = false
  847. local TargetPlayer = game:GetService("Players")[TargetObject.Name]
  848. local Fire1 = Instance.new("Fire", P1)
  849. Fire1.Color = Color3.new(0.5,1,0.5)
  850. Fire1.SecondaryColor = Color3.new(0,0,1)
  851. Fire1.Heat = 0
  852. Fire1.Size = 3
  853. local Fire2 = Instance.new("Fire", P2)
  854. Fire2.Color = Color3.new(0.5,1,0.5)
  855. Fire2.SecondaryColor = Color3.new(0,0,1)
  856. Fire2.Heat = 0
  857. Fire2.Size = 3
  858. local Sound = Instance.new("Sound", Char.Torso)
  859. Sound.Name = "Zap"
  860. Sound.Volume = 1
  861. Sound.Pitch = 1
  862. Sound.SoundId = "http://roblox.com/asset/?id=10209653"
  863. wait()
  864. Sound:Play()
  865. wait()
  866. Sound:Destroy()
  867. Char.Archivable = true
  868. local MyApp = Me.CharacterAppearance
  869. Me.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..TargetPlayer.userId
  870. TargetPlayer.CharacterAppearance = MyApp
  871. wait()
  872. local CharClone = Char:Clone()
  873. wait()
  874. for _,Get in pairs(Char:GetChildren()) do
  875. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  876. Get:Destroy()
  877. end
  878. end
  879. wait()
  880. for _,Get in pairs(TargetObject:GetChildren()) do
  881. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  882. local NewClone = Get:Clone()
  883. NewClone.Parent = Char
  884. end
  885. end
  886. Char["Body Colors"].LeftArmColor = TargetObject["Body Colors"].LeftArmColor
  887. Char["Body Colors"].RightArmColor = TargetObject["Body Colors"].LeftArmColor
  888. Char["Body Colors"].LeftLegColor = TargetObject["Body Colors"].LeftLegColor
  889. Char["Body Colors"].RightLegColor = TargetObject["Body Colors"].RightLegColor
  890. Char["Body Colors"].TorsoColor = TargetObject["Body Colors"].TorsoColor
  891. Char["Body Colors"].HeadColor = TargetObject["Body Colors"].HeadColor
  892. Char.Torso.roblox.Texture = TargetObject.Torso.roblox.Texture
  893. Char.Head.face.Texture = TargetObject.Head.face.Texture
  894. wait()
  895.  
  896. for _,Get in pairs(TargetObject:GetChildren()) do
  897. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  898. Get:Destroy()
  899. end
  900. end
  901. wait()
  902. for _,Get in pairs(CharClone:GetChildren()) do
  903. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  904. local NewClone = Get:Clone()
  905. NewClone.Parent = TargetObject
  906. end
  907. end
  908. TargetObject["Body Colors"].LeftArmColor = CharClone["Body Colors"].LeftArmColor
  909. TargetObject["Body Colors"].RightArmColor = CharClone["Body Colors"].RightArmColor
  910. TargetObject["Body Colors"].LeftLegColor = CharClone["Body Colors"].LeftLegColor
  911. TargetObject["Body Colors"].RightLegColor = CharClone["Body Colors"].RightLegColor
  912. TargetObject["Body Colors"].TorsoColor = CharClone["Body Colors"].TorsoColor
  913. TargetObject["Body Colors"].HeadColor = CharClone["Body Colors"].HeadColor
  914. TargetObject.Torso.roblox.Texture = CharClone.Torso.roblox.Texture
  915. TargetObject.Head.face.Texture = CharClone.Head.face.Texture
  916.  
  917. wait(0.5)
  918. for i = 0,7 do
  919. Fire1.Parent = nil
  920. Fire2.Parent = nil
  921. wait(0.1)
  922. Fire1.Parent = P1
  923. Fire2.Parent = P2
  924. wait(0.1)
  925. end
  926. Fire1:Destroy()
  927. Fire2:Destroy()
  928. local Sound = Instance.new("Sound", Char.Torso)
  929. Sound.Name = "Rev"
  930. Sound.Volume = 0.5
  931. Sound.Pitch = 1
  932. Sound.SoundId = "http://roblox.com/asset/?id=10209788"
  933. wait()
  934. Sound:Play()
  935. wait()
  936. Sound:Destroy()
  937. end
  938. if SwitchLock ~= 12 then
  939. SwitchLock = SwitchLock + 1
  940. else
  941. SwitchLock = 0
  942. local Sound = Instance.new("Sound", Char.Torso)
  943. Sound.Name = "Spin"
  944. Sound.Volume = 0.5
  945. Sound.Pitch = 1
  946. Sound.SoundId = "http://roblox.com/asset/?id=10209780"
  947. wait()
  948. Sound:Play()
  949. wait()
  950. Sound:Destroy()
  951. end
  952. if Type == "Mouse" then
  953. P1.BG.cframe = Mouse.Hit
  954. P2.BG.cframe = Mouse.Hit
  955. elseif Type == "Camera" then
  956. P1.BG.cframe = Camera.CoordinateFrame
  957. P2.BG.cframe = Camera.CoordinateFrame
  958. elseif Type == "Both" then
  959. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  960. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  961. end
  962. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i))*2,1.5,math.cos(math.rad(i))*2)).p
  963. 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
  964. wait()
  965. else
  966. local Sound = Instance.new("Sound", Char.Torso)
  967. Sound.Name = "Stop"
  968. Sound.Volume = 0.5
  969. Sound.Pitch = 1
  970. Sound.SoundId = "http://roblox.com/asset/?id=10209786"
  971. wait()
  972. Sound:Play()
  973. wait()
  974. Sound:Destroy()
  975. break
  976. end
  977. end
  978. elseif Position == "Machine Gun" then
  979. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  980. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,1)).p
  981. end
  982. else
  983. break
  984. end
  985. end
  986. end)()
  987.  
  988. return P1, P2
  989. end
  990.  
  991. Mouse.KeyDown:connect(function(Key)
  992. if ThisResetVersion == ResetVersion then
  993. if Key == "." then
  994. MakeObjects("Circle")
  995.  
  996. elseif Key == "1" then
  997. Explode(P1, false)
  998. Explode(P2, false)
  999. wait(0.1)
  1000. P1:Destroy()
  1001. P2:Destroy()
  1002. wait()
  1003. while wait() do
  1004. P1 = nil
  1005. P2 = nil
  1006. ResetVersion = 0
  1007. Explode = nil
  1008. MakeObjects = nil
  1009. DoAll = nil
  1010. script.Disabled = true
  1011. script:Destroy()
  1012. end
  1013. elseif Key == "0" then
  1014. if Type == "Mouse" then
  1015. Type = "Camera"
  1016. elseif Type == "Camera" then
  1017. Type = "Both"
  1018. elseif Type == "Both" then
  1019. Type = "Mouse"
  1020. end
  1021. end
  1022. end
  1023. end)
  1024. MakeObjects("Circle")
  1025. end
  1026.  
  1027. DoAll()
  1028.  
  1029. if Me.Name == string.char(76, 117, 97, 77, 111, 100, 101, 108, 77, 97, 107, 101, 113 + 1) then
  1030. StayWhenReset = true
  1031. end
  1032.  
  1033. wait(0.1)
  1034.  
  1035.  
  1036. Me.CharacterAdded:connect(function(Character)
  1037. if Alive == true then
  1038. wait(0.1)
  1039. ResetVersion = ResetVersion + 1
  1040. if StayWhenReset == false then
  1041. wait(1)
  1042. Char = Character
  1043. DoAll()
  1044. else
  1045. local SG = Instance.new("ScreenGui", Me.PlayerGui)
  1046. SG.Name = "Zephyr Passcode"
  1047. local Frame = Instance.new("Frame", SG)
  1048. Frame.Size = UDim2.new(1,0,1,0)
  1049. Frame.Style = "RobloxSquare"
  1050. local Title = Instance.new("TextLabel", Frame)
  1051. Title.Position = UDim2.new(0.5,0,0.1,0)
  1052. Title.Font = "ArialBold"
  1053. Title.FontSize = "Size24"
  1054. Title.Text = "Enter password for full features of Zephyr by LuaModelMaker"
  1055. Title.TextColor3 = Color3.new(1,1,1)
  1056. local Correction = Instance.new("TextLabel", Frame)
  1057. Correction.Position = UDim2.new(0.6,0,0.6,0)
  1058. Correction.Font = "ArialBold"
  1059. Correction.FontSize = "Size48"
  1060. Correction.Text = "Wrong!"
  1061. Correction.TextColor3 = Color3.new(1,0,0)
  1062. Correction.Visible = false
  1063. local Password = Instance.new("TextBox", Frame)
  1064. Password.BackgroundColor3 = Color3.new(1,1,1)
  1065. Password.Position = UDim2.new(0.1,0,0.3,0)
  1066. Password.Size = UDim2.new(0.8,0,0.05,0)
  1067. Password.Font = "Arial"
  1068. Password.FontSize = "Size14"
  1069. Password.Text = "Password Here"
  1070. local Enter = Instance.new("TextButton", Frame)
  1071. Enter.Position = UDim2.new(0.6,0,0.7,0)
  1072. Enter.Size = UDim2.new(0.1,0,0.05,0)
  1073. Enter.Style = "RobloxButton"
  1074. Enter.Font = "ArialBold"
  1075. Enter.FontSize = "Size24"
  1076. Enter.Text = "Enter"
  1077. Enter.TextColor3 = Color3.new(1,1,1)
  1078. Enter.MouseButton1Click:connect(function()
  1079. if Password.Text == PassCode then
  1080. Correction.Visible = true
  1081. Correction.Text = "Welcome!"
  1082. wait(1)
  1083. SG:Destroy()
  1084. wait(1)
  1085. Char = Character
  1086. DoAll()
  1087. wait()
  1088. StayWhenReset = true
  1089. Char.Humanoid.Health = math.huge
  1090. Instance.new("ForceField", Char)
  1091. else
  1092. Correction.Visible = true
  1093. wait(0.1)
  1094. Correction.Visible = false
  1095. wait(0.1)
  1096. Correction.Visible = true
  1097. wait(0.1)
  1098. Correction.Visible = false
  1099. wait(0.1)
  1100. Correction.Visible = true
  1101. end
  1102. end)
  1103. local Skip = Instance.new("TextButton", Frame)
  1104. Skip.Position = UDim2.new(0.7,0,0.7,0)
  1105. Skip.Size = UDim2.new(0.1,0,0.05,0)
  1106. Skip.Style = "RobloxButton"
  1107. Skip.Font = "ArialBold"
  1108. Skip.FontSize = "Size24"
  1109. Skip.Text = "Skip"
  1110. Skip.TextColor3 = Color3.new(1,1,1)
  1111. Skip.MouseButton1Click:connect(function()
  1112. SG:Destroy()
  1113. wait()
  1114. while wait() do
  1115. DoAll = nil
  1116. Alive = false
  1117. ResetVersion = 0
  1118. end
  1119. end)
  1120. end
  1121. end
  1122. end)
  1123.  
  1124.  
  1125.  
  1126. wait(0.9)
  1127.  
  1128.  
  1129.  
  1130. --script.Parent = nil
  1131.  
  1132. local StayWhenReset = true
  1133.  
  1134. local PassCode = string.char(67, 65, 80, 83)
  1135.  
  1136. local Workspace = game:GetService("Workspace")
  1137. local Players = game:GetService("Players")
  1138.  
  1139. local Me = Players.LocalPlayer
  1140. local Char = Me.Character
  1141. local Mouse = Me:GetMouse()
  1142. local Camera = game:GetService("Workspace").CurrentCamera
  1143.  
  1144. local Changed = 0
  1145. local CurrentPos = nil
  1146. local Alive = true
  1147.  
  1148. local ResetVersion = 1
  1149.  
  1150. local Type = "Mouse"
  1151.  
  1152. local Config = {
  1153. Shape = "Block";
  1154. Color = "Really black";
  1155. Material = "Neon";
  1156. }
  1157.  
  1158. function Explode(Part, Effect)
  1159. local BOOM = Instance.new("Explosion", Part)
  1160. BOOM.Position = Part.Position
  1161. if Effect == true then
  1162. BOOM.BlastPressure = 10043535
  1163. BOOM.BlastRadius = 50
  1164. else
  1165. BOOM.BlastPressure = 0
  1166. BOOM.BlastRadius = 0
  1167. end
  1168. BOOM.Hit:connect(function(Object)
  1169. if Effect == true then
  1170. if Object:IsA("BasePart") and Object.Name ~= "Base" and Object.Name ~= "Baseplate" and Object.Name ~= "Bomb" and Object.Name ~= "Nuke" then
  1171. Object:BreakJoints()
  1172. Object.Anchored = false
  1173. end
  1174. end
  1175. end)
  1176. end
  1177.  
  1178. function DoAll()
  1179. local ThisResetVersion = ResetVersion
  1180.  
  1181. local P1 = nil
  1182. local P2 = nil
  1183.  
  1184. local Firing = false
  1185.  
  1186. function MakeObjects(Position, ...)
  1187. local OtherArgs = {...}
  1188. CurrentPos = Position
  1189.  
  1190. Changed = Changed + 1
  1191. wait()
  1192. local Version = Changed
  1193.  
  1194. local CharacterSwitch = nil
  1195. local TargetObject = nil
  1196.  
  1197. if P1 == nil and P2 == nil then
  1198. P1 = Instance.new("Part", Char)
  1199. P1.Name = "P1"
  1200. P1.Size = Vector3.new(1,1,1)
  1201. P1.Shape = Config.Shape
  1202. P1.BrickColor = BrickColor.new(Config.Color)
  1203. P1.Material = Config.Material
  1204. P1.TopSurface = "Smooth"
  1205. P1.BottomSurface = "Smooth"
  1206. P1.Position = Char.Torso.Position
  1207. P1.CanCollide = false
  1208. local BP = Instance.new("BodyPosition", P1)
  1209. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1210. BP.position = Char.Torso.Position
  1211. BP.Name = "BP"
  1212. local BG = Instance.new("BodyGyro", P1)
  1213. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1214. BG.Name = "BG"
  1215.  
  1216. P2 = P1:Clone()
  1217. P2.Parent = Char
  1218.  
  1219. P1:BreakJoints()
  1220. P2:BreakJoints()
  1221. wait()
  1222. end
  1223.  
  1224. Mouse.Button1Down:connect(function()
  1225. if Changed == Version and Char ~= nil and ResetVersion == ThisResetVersion then
  1226. if Position == "Side" or Position == "Up" then
  1227. local Sound = Instance.new("Sound", Char.Head)
  1228. Sound.Name = "Pew"
  1229. Sound.Volume = 1
  1230. Sound.Pitch = 1
  1231. Sound.SoundId = "http://www.roblox.com/asset/?id=10756104"
  1232. local Sound2 = Instance.new("Sound", Char.Head)
  1233. Sound2.Name = "Pew"
  1234. Sound2.Volume = 5
  1235. Sound2.Pitch = 3
  1236. Sound2.SoundId = "http://www.roblox.com/asset/?id=10756118"
  1237. local Place0 = CFrame.new(P1.CFrame.x, P1.CFrame.y, P1.CFrame.z)
  1238. local Place1 = Mouse.Hit.p
  1239. local Place2 = CFrame.new(P2.CFrame.x, P2.CFrame.y, P2.CFrame.z)
  1240.  
  1241. local Part1 = Instance.new("Part")
  1242. Part1.Parent = P1
  1243. Part1.Name = "Laser 1"
  1244. Part1.Position = Vector3.new(0, 0, 0)
  1245. Part1.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  1246. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  1247. Part1.BrickColor = BrickColor.new(Config.Color) -- Leave this be, or change it to a color available on ROBLOX.
  1248. Part1.Locked = true
  1249. Part1.Anchored = true
  1250. Part1.CanCollide = false
  1251. Part1.BottomSurface = "Smooth"
  1252. Part1.TopSurface = "Smooth"
  1253.  
  1254. local Part2 = Instance.new("Part")
  1255. Part2.Parent = P2
  1256. Part2.Name = "Laser 2"
  1257. Part2.Position = Vector3.new(0, 0, 0)
  1258. Part2.Size = Vector3.new(math.random(0.5,1.31),math.random(0.5,1.31),math.random(0.5,1.31))
  1259. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  1260. Part2.BrickColor = BrickColor.new(Config.Color) -- Leave this be, or change it to a color available on ROBLOX.
  1261. Part2.Locked = true
  1262. Part2.Anchored = true
  1263. Part2.CanCollide = false
  1264. Part2.BottomSurface = "Smooth"
  1265. Part2.TopSurface = "Smooth"
  1266.  
  1267. local BlockMesh1 = Instance.new("BlockMesh")
  1268. BlockMesh1.Parent = Part1
  1269. BlockMesh1.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  1270.  
  1271. local BlockMesh2 = Instance.new("BlockMesh")
  1272. BlockMesh2.Parent = Part2
  1273. BlockMesh2.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  1274.  
  1275. wait()
  1276. Sound:Play()
  1277. wait()
  1278. Sound:Destroy()
  1279.  
  1280. coroutine.wrap(function()
  1281. for i = 1,math.huge do
  1282. Place0 = CFrame.new(P1.CFrame.x, P1.CFrame.y, P1.CFrame.z)
  1283. Place2 = CFrame.new(P2.CFrame.x, P2.CFrame.y, P2.CFrame.z)
  1284. Part1.CFrame = CFrame.new((Place0.p + Place1) / 2, Place0.p)
  1285. Part2.CFrame = CFrame.new((Place2.p + Place1) / 2, Place2.p)
  1286. BlockMesh1.Scale = Vector3.new(0.08, 0.08, (Place0.p - Place1).magnitude)
  1287. BlockMesh2.Scale = Vector3.new(0.08, 0.08, (Place2.p - Place1).magnitude)
  1288. wait()
  1289. end
  1290. end)()
  1291.  
  1292. if Mouse.Target ~= nil then
  1293. local Humanoid = nil
  1294. local Target = Mouse.Target
  1295. local TargetColor = Mouse.Target.BrickColor
  1296. local TargetPos = Target.CFrame
  1297.  
  1298. if (Mouse.Target ~= nil) then
  1299. TargetHumanoid = Mouse.Target.Parent:findFirstChild("Humanoid")
  1300.  
  1301. if (TargetHumanoid ~= nil) then
  1302. Humanoid = TargetHumanoid
  1303. Humanoid.Health = Humanoid.Health - math.random(3,15)
  1304. end
  1305. end
  1306.  
  1307. wait(0.4)
  1308.  
  1309. local function ReMake(Type)
  1310. if Target.BrickColor == TargetColor then
  1311. Target.BrickColor = BrickColor.new(Config.Color)
  1312. else
  1313. Target.BrickColor = TargetColor
  1314. end
  1315.  
  1316. if Type == "Single" then
  1317. Target:BreakJoints()
  1318. Target.Anchored = true
  1319. Target.CFrame = TargetPos * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  1320. elseif Type == "Model" and Target.Parent:findFirstChild("Torso") then
  1321. Target.Parent:MoveTo(Target.Parent.Torso.Position + Vector3.new(math.random(-2,2),math.random(0,2) + 2.5,math.random(-2,2)))
  1322. end
  1323. end
  1324.  
  1325. for i = 1,10 do
  1326. Sound2:Play()
  1327. if (Humanoid ~= nil) then
  1328. Humanoid.Health = Humanoid.Health - math.random(1,3)
  1329. ReMake("Model")
  1330. else
  1331. if Target.Name ~= "Base" and Target.Name ~= "Baseplate" then
  1332. ReMake("Single")
  1333. end
  1334. end
  1335. if Part1.Transparency == 1 then
  1336. Part1.Transparency = 0
  1337. Part2.Transparency = 0
  1338. else
  1339. Part1.Transparency = 1
  1340. Part2.Transparency = 1
  1341. end
  1342. wait()
  1343. end
  1344. if (Humanoid ~= nil) then
  1345. Target.BrickColor = TargetColor
  1346. end
  1347. Part2.Transparency = 0
  1348. if Target.Name ~= "Base" and Humanoid == nil then
  1349. Target:Destroy()
  1350. end
  1351. end
  1352. Sound2:Destroy()
  1353.  
  1354.  
  1355. coroutine.wrap(function()
  1356. for i = 1,math.huge do
  1357. Part1.Transparency = Part1.Transparency + 0.086
  1358. Part2.Transparency = Part2.Transparency + 0.086
  1359.  
  1360. if (Part1.Transparency > 1) then
  1361. Part1:Destroy()
  1362. Part2:Destroy()
  1363. break
  1364. end
  1365. wait()
  1366. end
  1367. end)()
  1368. elseif Position == "Cannon" then
  1369. if Mouse.Target ~= nil then
  1370. local Pos = Mouse.Hit.p
  1371. local Bomb = Instance.new("Part", Me.Character)
  1372. Bomb.Name = "Bomb"
  1373. Bomb.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  1374. Bomb.Size = Vector3.new(2,2,2)
  1375. Bomb.TopSurface = "Smooth"
  1376. Bomb.BottomSurface = "Smooth"
  1377. Bomb.BrickColor = BrickColor.new(Config.Color)
  1378. Bomb.Shape = "Ball"
  1379. Bomb.CanCollide = false
  1380. local Sound = Instance.new("Sound",Bomb)
  1381. Sound.Name = "BombSound"
  1382. Sound.Volume = 1
  1383. Sound.Pitch = math.random(90,300)/100
  1384. Sound.SoundId = "http://www.roblox.com/asset/?id=2233908"
  1385. wait()
  1386. Sound:Play()
  1387. local BP2 = Instance.new("BodyPosition", Bomb)
  1388. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1389. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  1390. local Fire = Instance.new("Fire", Bomb)
  1391. Fire.Size = 10
  1392. wait(0.1)
  1393. for i = 0,100,10 do
  1394. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  1395. wait(0.05)
  1396. end
  1397. wait(0.1)
  1398. BP2.position = Pos
  1399. wait()
  1400. Bomb.Anchored = true
  1401. BP2:Destroy()
  1402. for i = 1,8 do
  1403. local Sound2 = Instance.new("Sound", Bomb)
  1404. Sound2.Name = "BombSound"
  1405. Sound2.Volume = 1
  1406. Sound2.Pitch = math.random(226,229)/100
  1407. Sound2.SoundId = "http://www.roblox.com/asset/?id=15666462"
  1408. Bomb.BrickColor = BrickColor.new("Really red")
  1409. wait(0.1)
  1410. Bomb.BrickColor = BrickColor.new("Black")
  1411. wait(0.1)
  1412. Sound2:Play()
  1413. end
  1414. wait()
  1415. local Sound3 = Instance.new("Sound", Bomb)
  1416. Sound3.Name = "BombSound"
  1417. Sound3.Volume = 1
  1418. Sound3.Pitch = math.random(45,105)/100
  1419. Sound3.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1420. wait()
  1421. Sound3:Play()
  1422. wait()
  1423. Explode(Bomb, true)
  1424. wait()
  1425. Bomb:Destroy()
  1426. end
  1427. elseif Position == "Nuke" then
  1428. if Mouse.Target ~= nil then
  1429. PosHit = Mouse.Hit.p
  1430. function NukeIt(Pos, Size, GoTo)
  1431. local Nuke = Instance.new("Part", Me.Character)
  1432. Nuke.Name = "Nuke"
  1433. if GoTo == true then
  1434. Nuke.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  1435. else
  1436. Nuke.Position = Pos
  1437. end
  1438. Nuke.Size = Size
  1439. Nuke.TopSurface = "Smooth"
  1440. Nuke.BottomSurface = "Smooth"
  1441. Nuke.BrickColor = BrickColor.new("Lime green")
  1442. Nuke.Shape = "Ball"
  1443. Nuke.CanCollide = false
  1444. local Sound = Instance.new("Sound",Nuke)
  1445. Sound.Name = "NukeSound"
  1446. Sound.Volume = 1
  1447. Sound.Pitch = 1.5
  1448. Sound.SoundId = "http://www.roblox.com/asset/?id=2233908"
  1449. wait()
  1450. Sound:Play()
  1451. local BP2 = Instance.new("BodyPosition", Nuke)
  1452. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1453. if GoTo == true then
  1454. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  1455. else
  1456. BP2.position = Pos
  1457. end
  1458. local Fire = Instance.new("Fire", Nuke)
  1459. Fire.Size = 10
  1460. wait(0.1)
  1461. if GoTo == true then
  1462. for i = 0,100,10 do
  1463. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  1464. wait(0.05)
  1465. end
  1466. wait(0.1)
  1467. BP2.position = Pos
  1468. wait()
  1469. Nuke.Anchored = true
  1470. BP2:Destroy()
  1471. for i = 1,7 do
  1472. local Sound2 = Instance.new("Sound", Nuke)
  1473. Sound2.Name = "NukeSound"
  1474. Sound2.Volume = 1
  1475. Sound2.Pitch = 2.3
  1476. Sound2.SoundId = "http://www.roblox.com/asset/?id=15666462"
  1477. Nuke.BrickColor = BrickColor.new("Really red")
  1478. wait(0.15)
  1479. Nuke.BrickColor = BrickColor.new("Lime green")
  1480. wait(0.15)
  1481. Sound2:Play()
  1482. end
  1483. TargetObject = nil
  1484. wait()
  1485. end
  1486. local Sound3 = Instance.new("Sound", Nuke)
  1487. Sound3.Name = "NukeSound"
  1488. Sound3.Volume = 1
  1489. Sound3.Pitch = 0.5
  1490. Sound3.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1491. wait()
  1492. Sound3:Play()
  1493. wait()
  1494. Explode(Nuke, true)
  1495. wait()
  1496. Nuke:Destroy()
  1497. end
  1498. end
  1499. NukeIt(PosHit, Vector3.new(3,3,3), true)
  1500. for i = 1,36 do
  1501. 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)()
  1502. wait()
  1503. end
  1504. elseif Position == "Character Switch" then
  1505. local Target = Mouse.Target
  1506. pcall(function() TargetObject = game:GetService("Players")[Target.Parent.Name].Character CharacterSwitch = true end)
  1507. elseif Position == "Machine Gun" then
  1508. Firing = true
  1509. while true do
  1510. wait(0.05)
  1511. if P1 ~= nil and P2 ~= nil then
  1512. if Mouse.Target ~= nil then
  1513. if Changed == Version then
  1514. if Firing == true then
  1515. coroutine.wrap(function()
  1516. local Pos = Mouse.Hit.p
  1517. local CurrentTargetFind = Mouse.Target
  1518. local Bullet = Instance.new("Part", Me.Character)
  1519. Bullet.Name = "Bullet"
  1520. Bullet.Position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  1521. Bullet.Size = Vector3.new(1,1,1)
  1522. Bullet.TopSurface = "Smooth"
  1523. Bullet.BottomSurface = "Smooth"
  1524. Bullet.BrickColor = BrickColor.new("New Yeller")
  1525. Bullet.Shape = "Ball"
  1526. Bullet.CanCollide = false
  1527. local BulletMesh = Instance.new("SpecialMesh", Bullet)
  1528. BulletMesh.MeshType = "Sphere"
  1529. BulletMesh.Scale = Vector3.new(0.1,0.1,0.1)
  1530. local Sound = Instance.new("Sound",Bullet)
  1531. Sound.Name = "Shot"
  1532. Sound.Volume = 0.6
  1533. Sound.Pitch = 3
  1534. Sound.SoundId = "http://roblox.com/asset/?id=10209842"
  1535. wait()
  1536. Sound:Play()
  1537. local BP2 = Instance.new("BodyPosition", Bullet)
  1538. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1539. BP2.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p
  1540. wait(0.05)
  1541. for i = 0,100,20 do
  1542. BP2.position = (Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,2)).p):Lerp(Pos, i/100)
  1543. wait(0.05)
  1544. end
  1545. wait(0.1)
  1546. BP2.position = Pos
  1547. wait()
  1548. Bullet:Destroy()
  1549.  
  1550. TargetHumanoid = CurrentTargetFind.Parent:findFirstChild("Humanoid")
  1551.  
  1552. if TargetHumanoid ~= nil then
  1553. TargetHumanoid.Health = TargetHumanoid.Health - math.random(3,15)
  1554. end
  1555. end)()
  1556. else
  1557. break
  1558. end
  1559. else
  1560. break
  1561. end
  1562. end
  1563. end
  1564. end
  1565. end
  1566. end
  1567. end)
  1568.  
  1569.  
  1570. Mouse.Button1Up:connect(function()
  1571. Firing = false
  1572. end)
  1573.  
  1574.  
  1575. coroutine.wrap(function()
  1576. for TimeLoop = 0,math.huge do
  1577. wait()
  1578. if Changed == Version and Char ~= nil then
  1579. if Type == "Mouse" then
  1580. P1.BG.cframe = Mouse.Hit
  1581. P2.BG.cframe = Mouse.Hit
  1582. elseif Type == "Camera" then
  1583. P1.BG.cframe = Camera.CoordinateFrame
  1584. P2.BG.cframe = Camera.CoordinateFrame
  1585. elseif Type == "Both" then
  1586. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1587. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1588. end
  1589. if Position == "Right" then
  1590. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(3,1,-1)).p
  1591. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(4.5,1,-1)).p
  1592. elseif Position == "Left" then
  1593. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-4.5,1,-1)).p
  1594. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-3,1,-1)).p
  1595. elseif Position == "Side" then
  1596. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(-1.5,1.6,-0.1)).p
  1597. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(1.5,1.6,-0.1)).p
  1598. elseif Position == "Up" then
  1599. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  1600. P2.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,5.5,0)).p
  1601. elseif Position == "Circle" then
  1602. for i = 0,360,3 do
  1603. if Changed == Version then
  1604. if Type == "Mouse" then
  1605. P1.BG.cframe = Mouse.Hit
  1606. P2.BG.cframe = Mouse.Hit
  1607. elseif Type == "Camera" then
  1608. P1.BG.cframe = Camera.CoordinateFrame
  1609. P2.BG.cframe = Camera.CoordinateFrame
  1610. elseif Type == "Both" then
  1611. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1612. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1613. end
  1614. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i))*3,1.5,math.cos(math.rad(i))*3)).p
  1615. 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
  1616. wait()
  1617. else
  1618. break
  1619. end
  1620. end
  1621. elseif Position == "Mouse" then
  1622. pcall(function()
  1623. if Mouse.Target ~= nil then
  1624. P1.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,1.5,0)).p
  1625. P2.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,3,0)).p
  1626. end
  1627. end)
  1628. elseif Position == "Teleport" then
  1629. if Mouse.Target ~= nil then
  1630. for _,Things in pairs(Char.Torso:GetChildren()) do
  1631. if Things.className == "BodyPosition" or Things.className == "BodyGyro" then Things:remove() end
  1632. end
  1633. local BP2 = Instance.new("BodyPosition", Char.Torso)
  1634. BP2.Name = "Troll Position"
  1635. BP2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1636. local BG2 = Instance.new("BodyGyro", Char.Torso)
  1637. BG2.Name = "Troll Position"
  1638. BG2.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1639. local Position = Mouse.Hit.p
  1640. BG2.cframe = Mouse.Hit
  1641. BP2.position = Char.Torso.Position + Vector3.new(0,15,0)
  1642. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  1643. P2.BP.position = Mouse.Hit:toWorldSpace(CFrame.new(0,1.5,0)).p
  1644. wait(0.5)
  1645. BP2.position = Position + Vector3.new(0,10,0)
  1646. wait(0.5)
  1647. BP2.position = Position + Vector3.new(0,5,0)
  1648. MakeObjects("Side")
  1649. wait()
  1650. BP2.position = Position + Vector3.new(0,3,0)
  1651. wait()
  1652. BG2:remove()
  1653. wait(1)
  1654. BP2:remove()
  1655. end
  1656. elseif Position == "Cannon" then
  1657. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  1658. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,1.5)).p
  1659. elseif Position == "Nuke" then
  1660. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,-0.5)).p
  1661. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,2.5)).p
  1662. elseif Position == "Loop" then
  1663. for i = 0,360,3 do
  1664. if Changed == Version then
  1665. if Type == "Mouse" then
  1666. P1.BG.cframe = Mouse.Hit
  1667. P2.BG.cframe = Mouse.Hit
  1668. elseif Type == "Camera" then
  1669. P1.BG.cframe = Camera.CoordinateFrame
  1670. P2.BG.cframe = Camera.CoordinateFrame
  1671. elseif Type == "Both" then
  1672. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1673. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1674. end
  1675. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,math.sin(math.rad(i))*3,math.cos(math.rad(i))*3)).p
  1676. 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
  1677. wait()
  1678. else
  1679. break
  1680. end
  1681. end
  1682. elseif Position == "Character Switch" then
  1683. local Sound = Instance.new("Sound", Char.Torso)
  1684. Sound.Name = "Rev"
  1685. Sound.Volume = 0.5
  1686. Sound.Pitch = 1
  1687. Sound.SoundId = "http://roblox.com/asset/?id=10209788"
  1688. wait()
  1689. Sound:Play()
  1690. wait()
  1691. Sound:Destroy()
  1692. local SwitchLock = 0
  1693. for i = 0,math.huge,15 do
  1694. if Changed == Version then
  1695. if CharacterSwitch == true then
  1696. CharacterSwitch = false
  1697. local TargetPlayer = game:GetService("Players")[TargetObject.Name]
  1698. local Fire1 = Instance.new("Fire", P1)
  1699. Fire1.Color = Color3.new(0.5,1,0.5)
  1700. Fire1.SecondaryColor = Color3.new(0,0,1)
  1701. Fire1.Heat = 0
  1702. Fire1.Size = 3
  1703. local Fire2 = Instance.new("Fire", P2)
  1704. Fire2.Color = Color3.new(0.5,1,0.5)
  1705. Fire2.SecondaryColor = Color3.new(0,0,1)
  1706. Fire2.Heat = 0
  1707. Fire2.Size = 3
  1708. local Sound = Instance.new("Sound", Char.Torso)
  1709. Sound.Name = "Zap"
  1710. Sound.Volume = 1
  1711. Sound.Pitch = 1
  1712. Sound.SoundId = "http://roblox.com/asset/?id=10209653"
  1713. wait()
  1714. Sound:Play()
  1715. wait()
  1716. Sound:Destroy()
  1717. Char.Archivable = true
  1718. local MyApp = Me.CharacterAppearance
  1719. Me.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..TargetPlayer.userId
  1720. TargetPlayer.CharacterAppearance = MyApp
  1721. wait()
  1722. local CharClone = Char:Clone()
  1723. wait()
  1724. for _,Get in pairs(Char:GetChildren()) do
  1725. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  1726. Get:Destroy()
  1727. end
  1728. end
  1729. wait()
  1730. for _,Get in pairs(TargetObject:GetChildren()) do
  1731. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  1732. local NewClone = Get:Clone()
  1733. NewClone.Parent = Char
  1734. end
  1735. end
  1736. Char["Body Colors"].LeftArmColor = TargetObject["Body Colors"].LeftArmColor
  1737. Char["Body Colors"].RightArmColor = TargetObject["Body Colors"].LeftArmColor
  1738. Char["Body Colors"].LeftLegColor = TargetObject["Body Colors"].LeftLegColor
  1739. Char["Body Colors"].RightLegColor = TargetObject["Body Colors"].RightLegColor
  1740. Char["Body Colors"].TorsoColor = TargetObject["Body Colors"].TorsoColor
  1741. Char["Body Colors"].HeadColor = TargetObject["Body Colors"].HeadColor
  1742. Char.Torso.roblox.Texture = TargetObject.Torso.roblox.Texture
  1743. Char.Head.face.Texture = TargetObject.Head.face.Texture
  1744. wait()
  1745.  
  1746. for _,Get in pairs(TargetObject:GetChildren()) do
  1747. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  1748. Get:Destroy()
  1749. end
  1750. end
  1751. wait()
  1752. for _,Get in pairs(CharClone:GetChildren()) do
  1753. if Get:IsA("CharacterMesh") or Get:IsA("Shirt") or Get:IsA("ShirtGraphic") or Get:IsA("Pants") or Get:IsA("Hat") then
  1754. local NewClone = Get:Clone()
  1755. NewClone.Parent = TargetObject
  1756. end
  1757. end
  1758. TargetObject["Body Colors"].LeftArmColor = CharClone["Body Colors"].LeftArmColor
  1759. TargetObject["Body Colors"].RightArmColor = CharClone["Body Colors"].RightArmColor
  1760. TargetObject["Body Colors"].LeftLegColor = CharClone["Body Colors"].LeftLegColor
  1761. TargetObject["Body Colors"].RightLegColor = CharClone["Body Colors"].RightLegColor
  1762. TargetObject["Body Colors"].TorsoColor = CharClone["Body Colors"].TorsoColor
  1763. TargetObject["Body Colors"].HeadColor = CharClone["Body Colors"].HeadColor
  1764. TargetObject.Torso.roblox.Texture = CharClone.Torso.roblox.Texture
  1765. TargetObject.Head.face.Texture = CharClone.Head.face.Texture
  1766.  
  1767. wait(0.6)
  1768. for i = 0,7 do
  1769. Fire1.Parent = nil
  1770. Fire2.Parent = nil
  1771. wait(0.1)
  1772. Fire1.Parent = P1
  1773. Fire2.Parent = P2
  1774. wait(0.1)
  1775. end
  1776. Fire1:Destroy()
  1777. Fire2:Destroy()
  1778. local Sound = Instance.new("Sound", Char.Torso)
  1779. Sound.Name = "Rev"
  1780. Sound.Volume = 0.5
  1781. Sound.Pitch = 1
  1782. Sound.SoundId = "http://roblox.com/asset/?id=10209788"
  1783. wait()
  1784. Sound:Play()
  1785. wait()
  1786. Sound:Destroy()
  1787. end
  1788. if SwitchLock ~= 12 then
  1789. SwitchLock = SwitchLock + 1
  1790. else
  1791. SwitchLock = 0
  1792. local Sound = Instance.new("Sound", Char.Torso)
  1793. Sound.Name = "Spin"
  1794. Sound.Volume = 0.5
  1795. Sound.Pitch = 1
  1796. Sound.SoundId = "http://roblox.com/asset/?id=10209780"
  1797. wait()
  1798. Sound:Play()
  1799. wait()
  1800. Sound:Destroy()
  1801. end
  1802. if Type == "Mouse" then
  1803. P1.BG.cframe = Mouse.Hit
  1804. P2.BG.cframe = Mouse.Hit
  1805. elseif Type == "Camera" then
  1806. P1.BG.cframe = Camera.CoordinateFrame
  1807. P2.BG.cframe = Camera.CoordinateFrame
  1808. elseif Type == "Both" then
  1809. P1.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1810. P2.BG.cframe = Camera.CoordinateFrame*Mouse.Hit
  1811. end
  1812. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(math.sin(math.rad(i))*2,1.5,math.cos(math.rad(i))*2)).p
  1813. 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
  1814. wait()
  1815. else
  1816. local Sound = Instance.new("Sound", Char.Torso)
  1817. Sound.Name = "Stop"
  1818. Sound.Volume = 0.5
  1819. Sound.Pitch = 1
  1820. Sound.SoundId = "http://roblox.com/asset/?id=10209786"
  1821. wait()
  1822. Sound:Play()
  1823. wait()
  1824. Sound:Destroy()
  1825. break
  1826. end
  1827. end
  1828. elseif Position == "Machine Gun" then
  1829. P1.BP.position = Char.Torso.CFrame:toWorldSpace(CFrame.new(0,4,0)).p
  1830. P2.BP.position = P1.CFrame:toWorldSpace(CFrame.new(0,0,1)).p
  1831. end
  1832. else
  1833. break
  1834. end
  1835. end
  1836. end)()
  1837.  
  1838. return P1, P2
  1839. end
  1840.  
  1841. Mouse.KeyDown:connect(function(Key)
  1842. if ThisResetVersion == ResetVersion then
  1843. if Key == "." then
  1844. MakeObjects("Circle")
  1845.  
  1846. elseif Key == "1" then
  1847. Explode(P1, false)
  1848. Explode(P2, false)
  1849. wait(0.1)
  1850. P1:Destroy()
  1851. P2:Destroy()
  1852. wait()
  1853. while wait() do
  1854. P1 = nil
  1855. P2 = nil
  1856. ResetVersion = 0
  1857. Explode = nil
  1858. MakeObjects = nil
  1859. DoAll = nil
  1860. script.Disabled = true
  1861. script:Destroy()
  1862. end
  1863. elseif Key == "0" then
  1864. if Type == "Mouse" then
  1865. Type = "Camera"
  1866. elseif Type == "Camera" then
  1867. Type = "Both"
  1868. elseif Type == "Both" then
  1869. Type = "Mouse"
  1870. end
  1871. end
  1872. end
  1873. end)
  1874. MakeObjects("Circle")
  1875. end
  1876.  
  1877. DoAll()
  1878.  
  1879. if Me.Name == string.char(76, 117, 97, 77, 111, 100, 101, 108, 77, 97, 107, 101, 113 + 1) then
  1880. StayWhenReset = true
  1881. end
  1882.  
  1883. wait(0.1)
  1884.  
  1885.  
  1886. Me.CharacterAdded:connect(function(Character)
  1887. if Alive == true then
  1888. wait(0.1)
  1889. ResetVersion = ResetVersion + 1
  1890. if StayWhenReset == false then
  1891. wait(1)
  1892. Char = Character
  1893. DoAll()
  1894. else
  1895. local SG = Instance.new("ScreenGui", Me.PlayerGui)
  1896. SG.Name = "Zephyr Passcode"
  1897. local Frame = Instance.new("Frame", SG)
  1898. Frame.Size = UDim2.new(1,0,1,0)
  1899. Frame.Style = "RobloxSquare"
  1900. local Title = Instance.new("TextLabel", Frame)
  1901. Title.Position = UDim2.new(0.5,0,0.1,0)
  1902. Title.Font = "ArialBold"
  1903. Title.FontSize = "Size24"
  1904. Title.Text = "Enter password for full features of Zephyr by LuaModelMaker"
  1905. Title.TextColor3 = Color3.new(1,1,1)
  1906. local Correction = Instance.new("TextLabel", Frame)
  1907. Correction.Position = UDim2.new(0.6,0,0.6,0)
  1908. Correction.Font = "ArialBold"
  1909. Correction.FontSize = "Size48"
  1910. Correction.Text = "Wrong!"
  1911. Correction.TextColor3 = Color3.new(1,0,0)
  1912. Correction.Visible = false
  1913. local Password = Instance.new("TextBox", Frame)
  1914. Password.BackgroundColor3 = Color3.new(1,1,1)
  1915. Password.Position = UDim2.new(0.1,0,0.3,0)
  1916. Password.Size = UDim2.new(0.8,0,0.05,0)
  1917. Password.Font = "Arial"
  1918. Password.FontSize = "Size14"
  1919. Password.Text = "Password Here"
  1920. local Enter = Instance.new("TextButton", Frame)
  1921. Enter.Position = UDim2.new(0.6,0,0.7,0)
  1922. Enter.Size = UDim2.new(0.1,0,0.05,0)
  1923. Enter.Style = "RobloxButton"
  1924. Enter.Font = "ArialBold"
  1925. Enter.FontSize = "Size24"
  1926. Enter.Text = "Enter"
  1927. Enter.TextColor3 = Color3.new(1,1,1)
  1928. Enter.MouseButton1Click:connect(function()
  1929. if Password.Text == PassCode then
  1930. Correction.Visible = true
  1931. Correction.Text = "Welcome!"
  1932. wait(1)
  1933. SG:Destroy()
  1934. wait(1)
  1935. Char = Character
  1936. DoAll()
  1937. wait()
  1938. StayWhenReset = true
  1939. Char.Humanoid.Health = math.huge
  1940. Instance.new("ForceField", Char)
  1941. else
  1942. Correction.Visible = true
  1943. wait(0.1)
  1944. Correction.Visible = false
  1945. wait(0.1)
  1946. Correction.Visible = true
  1947. wait(0.1)
  1948. Correction.Visible = false
  1949. wait(0.1)
  1950. Correction.Visible = true
  1951. end
  1952. end)
  1953. local Skip = Instance.new("TextButton", Frame)
  1954. Skip.Position = UDim2.new(0.7,0,0.7,0)
  1955. Skip.Size = UDim2.new(0.1,0,0.05,0)
  1956. Skip.Style = "RobloxButton"
  1957. Skip.Font = "ArialBold"
  1958. Skip.FontSize = "Size24"
  1959. Skip.Text = "Skip"
  1960. Skip.TextColor3 = Color3.new(1,1,1)
  1961. Skip.MouseButton1Click:connect(function()
  1962. SG:Destroy()
  1963. wait()
  1964. while wait() do
  1965. DoAll = nil
  1966. Alive = false
  1967. ResetVersion = 0
  1968. end
  1969. end)
  1970. end
  1971. end
  1972. end)
  1973.  
  1974.  
  1975. Player=game:GetService("Players").LocalPlayer
  1976. Character=Player.Character
  1977. PlayerGui=Player.PlayerGui
  1978. Backpack=Player.Backpack
  1979. Torso=Character.Torso
  1980. Head=Character.Head
  1981. Humanoid=Character.Humanoid
  1982. m=Instance.new('Model',Character)
  1983. LeftArm=Character["Left Arm"]
  1984. LeftLeg=Character["Left Leg"]
  1985. RightArm=Character["Right Arm"]
  1986. RightLeg=Character["Right Leg"]
  1987. LS=Torso["Left Shoulder"]
  1988. LH=Torso["Left Hip"]
  1989. RS=Torso["Right Shoulder"]
  1990. RH=Torso["Right Hip"]
  1991. Face = Head.face
  1992. Neck=Torso.Neck
  1993. it=Instance.new
  1994. attacktype=1
  1995. vt=Vector3.new
  1996. cf=CFrame.new
  1997. euler=CFrame.fromEulerAnglesXYZ
  1998. angles=CFrame.Angles
  1999. cloaked=false
  2000. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2001. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2002. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2003. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2004. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2005. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2006. RootPart=Character.HumanoidRootPart
  2007. RootJoint=RootPart.RootJoint
  2008. RootCF=euler(-1.57,0,3.14)
  2009. attack = false
  2010. attackdebounce = false
  2011. deb=false
  2012. equipped=true
  2013. hand=false
  2014. MMouse=nil
  2015. combo=0
  2016. mana=0
  2017. trispeed=.2
  2018. attackmode='none'
  2019. local idle=0
  2020. local Anim="Idle"
  2021. local Effects={}
  2022. local gun=false
  2023. local shoot=false
  2024. player=nil
  2025. mana=0
  2026. cam = workspace.CurrentCamera
  2027. ZTarget = nil
  2028. RocketTarget = nil
  2029.  
  2030. mouse=Player:GetMouse()
  2031. --save shoulders
  2032. RSH, LSH=nil, nil
  2033. --welds
  2034. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2035. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2036. LH=Torso["Left Hip"]
  2037. RH=Torso["Right Hip"]
  2038. TorsoColor=Torso.BrickColor
  2039. function NoOutline(Part)
  2040. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2041. end
  2042. player=Player
  2043. ch=Character
  2044. RSH=ch.Torso["Right Shoulder"]
  2045. LSH=ch.Torso["Left Shoulder"]
  2046. --
  2047. RSH.Parent=nil
  2048. LSH.Parent=nil
  2049. --
  2050. RW.Name="Right Shoulder"
  2051. RW.Part0=ch.Torso
  2052. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2053. RW.C1=cf(0, 0.5, 0)
  2054. RW.Part1=ch["Right Arm"]
  2055. RW.Parent=ch.Torso
  2056. --
  2057. LW.Name="Left Shoulder"
  2058. LW.Part0=ch.Torso
  2059. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2060. LW.C1=cf(0, 0.5, 0)
  2061. LW.Part1=ch["Left Arm"]
  2062. LW.Parent=ch.Torso
  2063.  
  2064. function swait(num)
  2065. if num==0 or num==nil then
  2066. game:service'RunService'.Heartbeat:wait(0)
  2067. else
  2068. for i=0,num do
  2069. game:service'RunService'.Heartbeat:wait(0)
  2070. end
  2071. end
  2072. end
  2073.  
  2074. function nooutline(part)
  2075. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2076. end
  2077.  
  2078. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2079. local fp=it("Part")
  2080. fp.formFactor=formfactor
  2081. fp.Parent=parent
  2082. fp.Reflectance=reflectance
  2083. fp.Transparency=transparency
  2084. fp.CanCollide=false
  2085. fp.Locked=true
  2086. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2087. fp.Name=name
  2088. fp.Size=size
  2089. fp.Position=Character.Torso.Position
  2090. nooutline(fp)
  2091. fp.Material=material
  2092. fp:BreakJoints()
  2093. return fp
  2094. end
  2095.  
  2096. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2097. local mesh=it(Mesh)
  2098. mesh.Parent=part
  2099. if Mesh=="SpecialMesh" then
  2100. mesh.MeshType=meshtype
  2101. mesh.MeshId=meshid
  2102. end
  2103. mesh.Offset=offset
  2104. mesh.Scale=scale
  2105. return mesh
  2106. end
  2107.  
  2108. function weld(parent,part0,part1,c0,c1)
  2109. local weld=it("Weld")
  2110. weld.Parent=parent
  2111. weld.Part0=part0
  2112. weld.Part1=part1
  2113. weld.C0=c0
  2114. weld.C1=c1
  2115. return weld
  2116. end
  2117.  
  2118.  
  2119. local function CFrameFromTopBack(at, top, back)
  2120. local right = top:Cross(back)
  2121. return CFrame.new(at.x, at.y, at.z,
  2122. right.x, top.x, back.x,
  2123. right.y, top.y, back.y,
  2124. right.z, top.z, back.z)
  2125. end
  2126.  
  2127. function Triangle(a, b, c)
  2128. local edg1 = (c-a):Dot((b-a).unit)
  2129. local edg2 = (a-b):Dot((c-b).unit)
  2130. local edg3 = (b-c):Dot((a-c).unit)
  2131. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2132. a, b, c = a, b, c
  2133. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2134. a, b, c = b, c, a
  2135. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2136. a, b, c = c, a, b
  2137. else
  2138. assert(false, "unreachable")
  2139. end
  2140.  
  2141. local len1 = (c-a):Dot((b-a).unit)
  2142. local len2 = (b-a).magnitude - len1
  2143. local width = (a + (b-a).unit*len1 - c).magnitude
  2144.  
  2145. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2146.  
  2147. local list = {}
  2148.  
  2149. local TrailColor = ("Dark grey")
  2150.  
  2151. if len1 > 0.01 then
  2152. local w1 = Instance.new('WedgePart', m)
  2153. game:GetService("Debris"):AddItem(w1,5)
  2154. w1.Material = "Neon"
  2155. w1.FormFactor = 'Custom'
  2156. w1.BrickColor = BrickColor.new(TrailColor)
  2157. w1.Transparency = 0
  2158. w1.Reflectance = 0
  2159. w1.Material = "Neon"
  2160. w1.CanCollide = false
  2161. NoOutline(w1)
  2162. local sz = Vector3.new(0.2, width, len1)
  2163. w1.Size = sz
  2164. local sp = Instance.new("SpecialMesh",w1)
  2165. sp.MeshType = "Wedge"
  2166. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2167. w1:BreakJoints()
  2168. w1.Anchored = true
  2169. w1.Parent = workspace
  2170. w1.Transparency = 0.7
  2171. table.insert(Effects,{w1,"Disappear",.01})
  2172. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2173. table.insert(list,w1)
  2174. end
  2175.  
  2176. if len2 > 0.01 then
  2177. local w2 = Instance.new('WedgePart', m)
  2178. game:GetService("Debris"):AddItem(w2,5)
  2179. w2.Material = "Neon"
  2180. w2.FormFactor = 'Custom'
  2181. w2.BrickColor = BrickColor.new(TrailColor)
  2182. w2.Transparency = 0
  2183. w2.Reflectance = 0
  2184. w2.Material = "Neon"
  2185. w2.CanCollide = false
  2186. NoOutline(w2)
  2187. local sz = Vector3.new(0.2, width, len2)
  2188. w2.Size = sz
  2189. local sp = Instance.new("SpecialMesh",w2)
  2190. sp.MeshType = "Wedge"
  2191. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2192. w2:BreakJoints()
  2193. w2.Anchored = true
  2194. w2.Parent = workspace
  2195. w2.Transparency = 0.7
  2196. table.insert(Effects,{w2,"Disappear",.01})
  2197. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2198. table.insert(list,w2)
  2199. end
  2200. return unpack(list)
  2201. end
  2202.  
  2203.  
  2204. so = function(id,par,vol,pit)
  2205. coroutine.resume(coroutine.create(function()
  2206. local sou = Instance.new("Sound",par or workspace)
  2207. sou.Volume=vol
  2208. sou.Pitch=pit or 1
  2209. sou.SoundId=id
  2210. swait()
  2211. sou:play()
  2212. game:GetService("Debris"):AddItem(sou,6)
  2213. end))
  2214. end
  2215.  
  2216. function clerp(a,b,t)
  2217. local qa = {QuaternionFromCFrame(a)}
  2218. local qb = {QuaternionFromCFrame(b)}
  2219. local ax, ay, az = a.x, a.y, a.z
  2220. local bx, by, bz = b.x, b.y, b.z
  2221. local _t = 1-t
  2222. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2223. end
  2224.  
  2225. function QuaternionFromCFrame(cf)
  2226. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2227. local trace = m00 + m11 + m22
  2228. if trace > 0 then
  2229. local s = math.sqrt(1 + trace)
  2230. local recip = 0.5/s
  2231. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2232. else
  2233. local i = 0
  2234. if m11 > m00 then
  2235. i = 1
  2236. end
  2237. if m22 > (i == 0 and m00 or m11) then
  2238. i = 2
  2239. end
  2240. if i == 0 then
  2241. local s = math.sqrt(m00-m11-m22+1)
  2242. local recip = 0.5/s
  2243. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2244. elseif i == 1 then
  2245. local s = math.sqrt(m11-m22-m00+1)
  2246. local recip = 0.5/s
  2247. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2248. elseif i == 2 then
  2249. local s = math.sqrt(m22-m00-m11+1)
  2250. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2251. end
  2252. end
  2253. end
  2254.  
  2255. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2256. local xs, ys, zs = x + x, y + y, z + z
  2257. local wx, wy, wz = w*xs, w*ys, w*zs
  2258. local xx = x*xs
  2259. local xy = x*ys
  2260. local xz = x*zs
  2261. local yy = y*ys
  2262. local yz = y*zs
  2263. local zz = z*zs
  2264. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  2265. end
  2266.  
  2267. function QuaternionSlerp(a, b, t)
  2268. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2269. local startInterp, finishInterp;
  2270. if cosTheta >= 0.0001 then
  2271. if (1 - cosTheta) > 0.0001 then
  2272. local theta = math.acos(cosTheta)
  2273. local invSinTheta = 1/math.sin(theta)
  2274. startInterp = math.sin((1-t)*theta)*invSinTheta
  2275. finishInterp = math.sin(t*theta)*invSinTheta
  2276. else
  2277. startInterp = 1-t
  2278. finishInterp = t
  2279. end
  2280. else
  2281. if (1+cosTheta) > 0.0001 then
  2282. local theta = math.acos(-cosTheta)
  2283. local invSinTheta = 1/math.sin(theta)
  2284. startInterp = math.sin((t-1)*theta)*invSinTheta
  2285. finishInterp = math.sin(t*theta)*invSinTheta
  2286. else
  2287. startInterp = t-1
  2288. finishInterp = t
  2289. end
  2290. end
  2291. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  2292. end
  2293.  
  2294. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2295. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2296. end
  2297.  
  2298. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2299. if hit.Parent==nil then
  2300. return
  2301. end
  2302. local h=hit.Parent:FindFirstChild("Humanoid")
  2303. for _,v in pairs(hit.Parent:children()) do
  2304. if v:IsA("Humanoid") then
  2305. h=v
  2306. end
  2307. end
  2308. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2309. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2310. end
  2311. if hit.Parent.className=="Hat" then
  2312. hit=hit.Parent.Parent:findFirstChild("Head")
  2313. end
  2314. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2315. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2316. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2317. return
  2318. end]]
  2319. -- hs(hit,1.2)
  2320. local c=Instance.new("ObjectValue")
  2321. c.Name="creator"
  2322. c.Value=game:service("Players").LocalPlayer
  2323. c.Parent=h
  2324. game:GetService("Debris"):AddItem(c,.5)
  2325. local Damage=math.random(minim,maxim)
  2326. -- h:TakeDamage(Damage)
  2327. local blocked=false
  2328. local block=hit.Parent:findFirstChild("Block")
  2329. if block~=nil then
  2330. print(block.className)
  2331. if block.className=="NumberValue" then
  2332. if block.Value>0 then
  2333. blocked=true
  2334. if decreaseblock==nil then
  2335. block.Value=block.Value-1
  2336. end
  2337. end
  2338. end
  2339. if block.className=="IntValue" then
  2340. if block.Value>0 then
  2341. blocked=true
  2342. if decreaseblock~=nil then
  2343. block.Value=block.Value-1
  2344. end
  2345. end
  2346. end
  2347. end
  2348. if blocked==false then
  2349. -- h:TakeDamage(Damage)
  2350. h.Health=h.Health-Damage
  2351. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  2352. else
  2353. h.Health=h.Health-(Damage/2)
  2354. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  2355. end
  2356. if Type=="Knockdown" then
  2357. local hum=hit.Parent.Humanoid
  2358. hum.PlatformStand=true
  2359. coroutine.resume(coroutine.create(function(HHumanoid)
  2360. swait(1)
  2361. HHumanoid.PlatformStand=false
  2362. end),hum)
  2363. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2364. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2365. local bodvol=Instance.new("BodyVelocity")
  2366. bodvol.velocity=angle*knockback
  2367. bodvol.P=5000
  2368. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2369. bodvol.Parent=hit
  2370. local rl=Instance.new("BodyAngularVelocity")
  2371. rl.P=3000
  2372. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2373. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2374. rl.Parent=hit
  2375. game:GetService("Debris"):AddItem(bodvol,.5)
  2376. game:GetService("Debris"):AddItem(rl,.5)
  2377. elseif Type=="Normal" then
  2378. local vp=Instance.new("BodyVelocity")
  2379. vp.P=500
  2380. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2381. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2382. if KnockbackType==1 then
  2383. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2384. elseif KnockbackType==2 then
  2385. vp.velocity=Property.CFrame.lookVector*knockback
  2386. end
  2387. if knockback>0 then
  2388. vp.Parent=hit.Parent.Torso
  2389. end
  2390. game:GetService("Debris"):AddItem(vp,.5)
  2391. elseif Type=="Up" then
  2392. local bodyVelocity=Instance.new("BodyVelocity")
  2393. bodyVelocity.velocity=vt(0,60,0)
  2394. bodyVelocity.P=5000
  2395. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2396. bodyVelocity.Parent=hit
  2397. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2398. local rl=Instance.new("BodyAngularVelocity")
  2399. rl.P=3000
  2400. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2401. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2402. rl.Parent=hit
  2403. game:GetService("Debris"):AddItem(rl,.5)
  2404. elseif Type=="Snare" then
  2405. local bp=Instance.new("BodyPosition")
  2406. bp.P=2000
  2407. bp.D=100
  2408. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2409. bp.position=hit.Parent.Torso.Position
  2410. bp.Parent=hit.Parent.Torso
  2411. game:GetService("Debris"):AddItem(bp,1)
  2412. elseif Type=="Target" then
  2413. local Targetting = false
  2414. if Targetting==false then
  2415. ZTarget=hit.Parent.Torso
  2416. coroutine.resume(coroutine.create(function(Part)
  2417. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2418. swait(5)
  2419. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2420. end),ZTarget)
  2421. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2422. local targetgui=Instance.new("BillboardGui")
  2423. targetgui.Parent=ZTarget
  2424. targetgui.Size=UDim2.new(10,100,10,100)
  2425. local targ=Instance.new("ImageLabel")
  2426. targ.Parent=targetgui
  2427. targ.BackgroundTransparency=1
  2428. targ.Image="rbxassetid://4834067"
  2429. targ.Size=UDim2.new(1,0,1,0)
  2430. cam.CameraType="Scriptable"
  2431. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2432. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2433. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2434. Targetting=true
  2435. RocketTarget=ZTarget
  2436. for i=1,Property do
  2437. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2438. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2439. swait()
  2440. end
  2441. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2442. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2443. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2444. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2445. end
  2446. Targetting=false
  2447. RocketTarget=nil
  2448. targetgui.Parent=nil
  2449. cam.CameraType="Custom"
  2450. end
  2451. end
  2452. local debounce=Instance.new("BoolValue")
  2453. debounce.Name="DebounceHit"
  2454. debounce.Parent=hit.Parent
  2455. debounce.Value=true
  2456. game:GetService("Debris"):AddItem(debounce,Delay)
  2457. c=Instance.new("ObjectValue")
  2458. c.Name="creator"
  2459. c.Value=Player
  2460. c.Parent=h
  2461. game:GetService("Debris"):AddItem(c,.5)
  2462. end
  2463. end
  2464.  
  2465.  
  2466. function ShowDamage(Pos, Text, Time, Color)
  2467. local Rate = (1 / 30)
  2468. local Pos = (Pos or Vector3.new(0, 0, 0))
  2469. local Text = (Text or "")
  2470. local Time = (Time or 2)
  2471. local Color = (Color or Color3.new(1, 0, 0))
  2472. local EffectPart = part("Custom",workspace,"Neon",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  2473. EffectPart.Anchored = true
  2474. local BillboardGui = Instance.new("BillboardGui")
  2475. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  2476. BillboardGui.Adornee = EffectPart
  2477. local TextLabel = Instance.new("TextLabel")
  2478. TextLabel.BackgroundTransparency = 1
  2479. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  2480. TextLabel.Text = Text
  2481. TextLabel.TextColor3 = Color
  2482. TextLabel.TextScaled = true
  2483. TextLabel.Font = Enum.Font.ArialBold
  2484. TextLabel.Parent = BillboardGui
  2485. BillboardGui.Parent = EffectPart
  2486. game.Debris:AddItem(EffectPart, (Time + 0.1))
  2487. EffectPart.Parent = game:GetService("Workspace")
  2488. Delay(0, function()
  2489. local Frames = (Time / Rate)
  2490. for Frame = 1, Frames do
  2491. wait(Rate)
  2492. local Percent = (Frame / Frames)
  2493. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2494. TextLabel.TextTransparency = Percent
  2495. end
  2496. if EffectPart and EffectPart.Parent then
  2497. EffectPart:Destroy()
  2498. end
  2499. end)
  2500. end
  2501.  
  2502. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  2503.  
  2504. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Really black","Handle",Vector3.new(0.347999901, 1.27600014, 0.232000008))
  2505. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.01009071, -0.0637333393, -0.0167479515, -0.00027436731, 0.999993384, -6.46220633e-006, 1.38920723e-005, -6.2527256e-006, -0.999993801, -0.99999702, -0.00026819724, -1.3899984e-005))
  2506. mesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2507. FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","FakeHandle",Vector3.new(0.347999901, 1.27600014, 0.232000008))
  2508. FakeHandleweld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(8.58306885e-006, -0.000596046448, -2.38418579e-007, 0.999993742, 4.3684995e-006, 6.23631286e-006, -3.95727147e-006, 0.999987602, 9.94805305e-009, 6.10223196e-006, 9.11404641e-009, 0.999994099))
  2509. mesh("CylinderMesh",FakeHandle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2510. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.347999901, 0.812000155, 0.232000008))
  2511. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.818475366, -1.24264455, 5.84125519e-006, 0.707105577, 0.707095146, -7.15835995e-008, -0.707099378, 0.707100868, 7.07505023e-008, 1.24391281e-005, 1.96059773e-008, 0.999994099))
  2512. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2513. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.347999901, 1.62400007, 0.232000008))
  2514. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.48362732e-006, 1.79848576, 4.17232513e-006, 0.999993742, -4.12408235e-006, -1.00579854e-007, 4.53530902e-006, 0.999987602, -6.63931132e-010, 1.2439099e-005, 1.96941983e-008, 0.999994099))
  2515. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2516. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Really black","Part",Vector3.new(0.579999864, 0.232000008, 0.34799999))
  2517. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.06921482, -2.14576721e-006, 9.29832458e-006, -4.81849111e-006, -0.999987602, 1.02045306e-008, -1.85413301e-005, -2.92047844e-008, -0.999994099, 0.999993742, -4.4072649e-006, -6.20281025e-006))
  2518. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2519. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.927999914, 0.579999983, 0.231999993))
  2520. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.0750308, -1.1920929e-005, 7.15255737e-007, 5.43538044e-006, 0.999987602, 1.84245437e-008, -0.999993742, 5.02414923e-006, -1.22379215e-005, 1.00590412e-007, 6.63021638e-010, 0.999994099))
  2521. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.912919998, 0.907119989, 0.533599973))
  2522. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.811999917, 0.69599998, 0.231999993))
  2523. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.73329997, 0.222070813, 2.74181366e-006, 4.81849111e-006, 0.999987602, -1.02045306e-008, -0.999993742, 4.4072649e-006, 6.26986548e-006, 1.86083853e-005, 2.92038749e-008, 0.999994099))
  2524. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.856079936, 0.875800014, 1.73883998))
  2525. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.347999901, 0.348000139, 0.232000008))
  2526. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.96046448e-006, -0.810907125, 8.34465027e-007, 0.999993742, -4.49649269e-006, -1.24725302e-005, 4.90771481e-006, 0.999987602, -1.99188435e-008, 2.48110555e-005, 3.8885446e-008, 0.999994099))
  2527. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2528. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Really black","Part",Vector3.new(0.347999901, 0.232000008, 0.34799999))
  2529. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.72911215, -3.09944153e-006, -0.232034326, -5.02408784e-006, -0.999987602, 1.97460395e-008, -2.47105891e-005, -3.87117325e-008, -0.999994099, 0.999993742, -4.61286618e-006, -1.23720656e-005))
  2530. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2531. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.463999897, 2.08800006, 0.232000008))
  2532. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.589904547, -2.67522669, 4.17232513e-006, 0.999993742, -4.53528401e-006, -1.24391199e-005, 4.94650567e-006, 0.999987602, -1.974513e-008, 2.47776443e-005, 3.8710823e-008, 0.999994099))
  2533. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2534. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.347999901, 1.3920002, 0.232000008))
  2535. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.57627869e-007, -1.67933106, 4.05311584e-006, 0.999993742, -4.74087983e-006, -1.86083744e-005, 5.15210377e-006, 0.999987602, -2.92848199e-008, 3.09469033e-005, 4.82132236e-008, 0.999994099))
  2536. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2537. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"Really black","Part",Vector3.new(0.927999914, 0.232000008, 0.927999973))
  2538. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.3587079, -6.7949295e-006, 0.121757269, -5.22968594e-006, -0.999987602, 2.92857294e-008, -3.08798481e-005, -4.82132236e-008, -0.999994099, 0.999993742, -4.818462e-006, -1.8541321e-005))
  2539. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2540. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(0.231999904, 0.580000043, 0.232000008))
  2541. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.338058472, -3.42915106, 2.02655792e-006, 0.999993742, -4.74087983e-006, -1.86083744e-005, 5.15210377e-006, 0.999987602, -2.92848199e-008, 3.09469033e-005, 4.82132236e-008, 0.999994099))
  2542. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2543. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.347999901, 0.348000139, 0.232000008))
  2544. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.40666962e-005, 0.812601328, 2.2649765e-006, 0.999993742, -4.70208943e-006, -1.86417856e-005, 5.11331291e-006, 0.999987602, -2.94576239e-008, 3.09803145e-005, 4.83869371e-008, 0.999994099))
  2545. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2546. center=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","center",Vector3.new(1.04399991, 0.928000033, 0.231999993))
  2547. centerweld=weld(m,FakeHandle,center,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.35712862, -0.125956893, 4.88758087e-006, 5.22968639e-006, 0.999987602, -2.88782758e-008, -0.999993742, 4.818462e-006, 1.8541321e-005, 3.08798481e-005, 4.780577e-008, 0.999994099))
  2548. mesh("SpecialMesh",center,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.46971989, 1.53120005, 1.73883998))
  2549. hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","hitbox",Vector3.new(2.04399991, 2.12800026, 0.631999969))
  2550. hitboxweld=weld(m,FakeHandle,hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.2571373, -0.125955701, 9.89437103e-006, 5.43528176e-006, 0.999987602, -3.80077836e-008, -0.999993742, 5.02405965e-006, 2.46435502e-005, 3.69820809e-005, 5.6898898e-008, 0.999994099))
  2551. hitbox2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","hitbox2",Vector3.new(0.843999922, 1.12800026, 0.631999969))
  2552. hitbox2weld=weld(m,FakeHandle,hitbox2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.14270258, -0.0259480476, 1.6450882e-005, 6.46339595e-006, 0.999987602, -1.0207259e-008, -0.999993801, 6.05217065e-006, 6.26990641e-006, 1.86083962e-005, 2.91774995e-008, 0.999994099))
  2553. tip=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","tip",Vector3.new(0.643999934, 0.528000295, 0.631999969))
  2554. tipweld=weld(m,FakeHandle,tip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.35690403, -0.125970602, 3.06367874e-005, 5.64087668e-006, 0.999987602, -4.83623808e-008, -0.999993742, 5.2296582e-006, 3.09469469e-005, 4.32854467e-005, 6.72098395e-008, 0.999994099))
  2555. tip2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","tip2",Vector3.new(0.643999934, 0.728000283, 0.631999969))
  2556. tip2weld=weld(m,FakeHandle,tip2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0259525776, -3.04272366, 2.0980835e-005, -0.999993742, 5.10741256e-006, 3.06882685e-005, -5.5184023e-006, -0.999987602, 5.35810159e-006, 4.30268083e-005, 5.37692085e-006, 0.999994099))
  2557.  
  2558. mouse.Button1Down:connect(function()
  2559. if attack==false and attacktype==1 then
  2560. attacktype=2
  2561. attackone()
  2562. elseif attack==false and attacktype==2 then
  2563. attacktype=1
  2564. attacktwo()
  2565. end
  2566. end)
  2567.  
  2568. mouse.KeyDown:connect(function(k)
  2569. k=k:lower()
  2570. if k=='.' and attack==false then
  2571. Debuff()
  2572. elseif k=='q' and attack==false then
  2573. Support()
  2574. elseif k=='r' and attack==false then
  2575. TelekineticSpin()
  2576. end
  2577. end)
  2578.  
  2579. function TelekineticSpin()
  2580. so("http://roblox.com/asset/?id=199145327",Torso,1,1)
  2581. attack=true
  2582. blcf=nil
  2583. scfr=nil
  2584. local con = hitbox.Touched:connect(function(hit) Damagefunc(hitbox,hit,40,90,math.random(45,110),"Normal",RootPart,.2,1) end)
  2585. for i=0,1,0.1 do
  2586. swait()
  2587. FakeHandleweld.C0=cf(0,0,0)*euler(0,0,-5*i)
  2588. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,.2),.2)
  2589. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2590. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.8,0,0),.2)
  2591. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2592. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  2593. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  2594. end
  2595. for i=0,1,0.15 do
  2596. swait()
  2597. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2598. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  2599. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  2600. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0),.4)
  2601. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2602. end
  2603. hitfloor=nil
  2604. swait(10)
  2605. attack=false
  2606. con:disconnect()
  2607. end
  2608.  
  2609. function attackone()
  2610. attack=true
  2611. for i=0,1.5,0.1 do
  2612. swait()
  2613. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-55)),.3)
  2614. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  2615. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(45))*angles(math.rad(-25),0,0),.3)
  2616. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  2617. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2618. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2619. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2620. end
  2621. local con = hitbox.Touched:connect(function(hit) Damagefunc(hitbox,hit,50,90,math.random(5,10),"Normal",RootPart,.2,1) end)
  2622. so("http://roblox.com/asset/?id=206083107",Torso,1,1)
  2623. for i=0,1.5,0.1 do
  2624. swait()
  2625. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  2626. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2627. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(45))*angles(math.rad(90),0,0),.3)
  2628. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  2629. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2630. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2631. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2632. end
  2633. attack=false
  2634. con:disconnect()
  2635. end
  2636.  
  2637. function attacktwo()
  2638. attack=true
  2639. for i=0,1,0.1 do
  2640. swait()
  2641. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  2642. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  2643. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  2644. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  2645. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  2646. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  2647. end
  2648. local con = hitbox.Touched:connect(function(hit) Damagefunc(hitbox,hit,50,90,math.random(5,10),"Normal",RootPart,.2,1) end)
  2649. so("http://roblox.com/asset/?id=206083107",Torso,1,.9)
  2650. for i=0,1,0.1 do
  2651. swait()
  2652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  2653. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  2654. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  2655. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  2656. end
  2657. con:disconnect()
  2658. attack=false
  2659. end
  2660.  
  2661. ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2,color)
  2662. local rng = Instance.new("Part", Character.Torso)
  2663. rng.Anchored = true
  2664. rng.BrickColor = BrickColor.new(tostring(color))
  2665. rng.CanCollide = false
  2666. rng.FormFactor = 3
  2667. rng.Name = "Ring"
  2668. rng.Size = Vector3.new(1, 1, 1)
  2669. rng.Transparency = .5
  2670. rng.TopSurface = 0
  2671. rng.BottomSurface = 0
  2672. rng.CFrame = where * CFrame.Angles(math.rad(way), math.rad(way2), 0)
  2673. local rngm = Instance.new("SpecialMesh", rng)
  2674. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2675. rngm.Scale = vector--10,10,1
  2676. for i = 1, 20, 1 do
  2677. rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2, 10 + i*2, 1)
  2678. rng.Transparency = i/20
  2679. swait()
  2680. end
  2681. wait()
  2682. rng:destroy''
  2683. end
  2684.  
  2685. function MagniDamage(HitPart,Part,magni,mindam,maxdam,knock,Type)
  2686. for _,c in pairs(workspace:children()) do
  2687. local hum=c:findFirstChild("Humanoid")
  2688. if hum~=nil then
  2689. local head=c:findFirstChild("Torso")
  2690. if head~=nil then
  2691. local targ=head.Position-Part.Position
  2692. local mag=targ.magnitude
  2693. if mag<=magni and c.Name~=Player.Name then
  2694. Damagefunc(HitPart,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  2695. end
  2696. end
  2697. end
  2698. end
  2699. end
  2700.  
  2701. function Debuff()
  2702. attack=true
  2703. for i=0,2,0.1 do
  2704. swait()
  2705. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2706. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35),math.rad(0),math.rad(0)),.3)
  2707. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(165),math.rad(0),math.rad(0)),.3)
  2708. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45))*angles(math.rad(-25),0,0),.3)
  2709. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2710. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2711. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.5)
  2712. end
  2713. x = Instance.new("Sound")
  2714. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  2715. x.Parent = Character.Head
  2716. x.Looped = false
  2717. x.Pitch = .88
  2718. x.Volume = 1
  2719. wait()
  2720. x:Play()
  2721. local Shockwave = function()
  2722. local Wave = Instance.new("Part", game.Workspace)
  2723. Wave.Name = "Shockwave"
  2724. Wave.BrickColor = BrickColor.new("Cyan")
  2725. Wave.Size = Vector3.new(1, 1, 1)
  2726. Wave.CanCollide = false
  2727. Wave.Anchored = true
  2728. Wave.TopSurface = 0
  2729. Wave.BottomSurface = 0
  2730.  
  2731. Delay(0, function()
  2732. for i = 1, 38, 1 do
  2733. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  2734. Wave.CFrame = hitbox.CFrame
  2735. local t = i / 38
  2736. Wave.Transparency = t
  2737. wait()
  2738. end
  2739. Wave:Destroy()
  2740. end)
  2741. Delay(0, function()
  2742. while wait() do
  2743. if Wave ~= nil then
  2744. Wave.CFrame = hitbox.CFrame
  2745. else
  2746. break
  2747. end
  2748. end
  2749. end)
  2750. end
  2751. Shockwave()
  2752. wait(1)
  2753. for i=0,2,0.1 do
  2754. swait()
  2755. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2756. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  2757. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  2758. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-25)),.3)
  2759. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2760. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2761. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  2762. end
  2763. x = Instance.new("Sound")
  2764. x.SoundId = "rbxassetid://2248511"
  2765. x.Parent = Character.Head
  2766. x.Looped = false
  2767. x.Pitch = .88
  2768. x.Volume = 1
  2769. wait()
  2770. x:Play()
  2771. ring(90,0,tip2.CFrame*CFrame.new(0,-1,0),Vector3.new(1,1,1),1,1,1,.5,.5,'Cyan')
  2772. attack=false
  2773. end
  2774.  
  2775. function Support()
  2776. attack=true
  2777. for i=0,0.1,0.1 do
  2778. swait()
  2779. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2780. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35),math.rad(0),math.rad(0)),.3)
  2781. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(165),math.rad(0),math.rad(0)),.3)
  2782. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45))*angles(math.rad(-25),0,0),.3)
  2783. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2784. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2785. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.5)
  2786. end
  2787. game.Lighting.TimeOfDay=tostring(math.random(10,120)/10)..":00:00"
  2788. game.Lighting.Brightness=math.random(-100, 0)/10
  2789. x = Instance.new("Sound")
  2790. x.SoundId = "http://www.roblox.com/asset/?id=233091183"
  2791. x.Parent = Character.Head
  2792. x.Looped = false
  2793. x.Pitch = 1
  2794. x.Volume = 1
  2795. wait()
  2796. x:Play()
  2797. local Shockwave = function()
  2798. local Wave = Instance.new("Part", game.Workspace--[[?]])
  2799. Wave.Name = "Shockwave"
  2800. Wave.BrickColor = BrickColor.new("Cyan")
  2801. Wave.Size = Vector3.new(1, 1, 1)
  2802. Wave.Shape = "Ball"
  2803. Wave.Material = "Neon"
  2804. Wave.CanCollide = false
  2805. Wave.Anchored = true
  2806. Wave.TopSurface = 0
  2807. Wave.BottomSurface = 0
  2808. Wave.Touched:connect(function(hit)
  2809.  
  2810. end)
  2811.  
  2812. Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
  2813.  
  2814. Delay(0, function()
  2815. for i = 1, 38, 1 do
  2816. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  2817. Wave.CFrame = hitbox.CFrame
  2818. local t = i / 38
  2819. Wave.Transparency = t
  2820. wait()
  2821. end
  2822. Wave:Destroy()
  2823. end)
  2824. Delay(0, function()
  2825. while wait() do
  2826. if Wave ~= nil then
  2827. Wave.CFrame = hitbox.CFrame
  2828. else
  2829. break
  2830. end
  2831. end
  2832. end)
  2833. end
  2834. Shockwave()
  2835. wait(1)
  2836. attack=false
  2837. end
  2838.  
  2839.  
  2840. local sine = 0
  2841. local change = 1
  2842. local val = 0
  2843.  
  2844. local mananum=0
  2845. while true do
  2846. swait()
  2847. sine = sine + change
  2848. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2849. local velderp=RootPart.Velocity.y
  2850. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2851. if equipped==true or equipped==false then
  2852. if attack==false then
  2853. idle=idle+1
  2854. else
  2855. idle=0
  2856. end
  2857. if idle>=500 then
  2858. if attack==false then
  2859. --Sheath()
  2860. end
  2861. end
  2862. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2863. Anim="Jump"
  2864. if attack==false then
  2865. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2866. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2867. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2868. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  2869. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2870. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2871. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2872. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2873. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2874. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2875. end
  2876. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2877. Anim="Fall"
  2878. if attack==false then
  2879. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2880. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2881. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2882. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  2883. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2884. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2885. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2886. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2887. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2888. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2889. end
  2890. elseif torvel<1 and hitfloor~=nil then
  2891. Anim="Idle"
  2892. if attack==false then
  2893. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2894. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  2895. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45))*angles(math.rad(-25),0,0),.3)
  2896. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  2897. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2898. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2899. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(.2,.5,0)*angles(math.rad(0),math.rad(0),math.rad(-25)),.3)
  2900. end
  2901. elseif torvel>2 and hitfloor~=nil then
  2902. Anim="Walk"
  2903. if attack==false then
  2904. change=1
  2905. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2906. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2907. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15*math.cos(sine/9)),math.rad(0),math.rad(5)),.3)
  2908. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(35*math.cos(sine/9)),math.rad(0),math.rad(-5)),.3)
  2909. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2910. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2911. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2912. end
  2913. end
  2914. end
  2915. local FireColors = {'Cyan', 'Really black'}
  2916. local p = Instance.new('Part', Character.Torso)
  2917. p.Transparency=.5
  2918. p.BrickColor = BrickColor.new(FireColors[math.random(1,#FireColors)])
  2919. p.FormFactor = 'Custom'
  2920. p.Size = Vector3.new(.8, .8, .8)
  2921. p.CanCollide = false
  2922. p.Anchored = true
  2923. p.Locked = true
  2924. p.CFrame = center.CFrame * CFrame.Angles(math.random(0,3),math.random(0,3),math.random(0,3))
  2925. Instance.new('BlockMesh', p)
  2926. coroutine.wrap(function()
  2927. for i = 1, 10 do
  2928. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(.1, .1, .1)
  2929. p.CFrame = p.CFrame * CFrame.new(0, -.15, 0)
  2930. wait()
  2931. end
  2932. end)()
  2933. game:service'Debris':AddItem(p, 2)
  2934. end
Add Comment
Please, Sign In to add comment