Advertisement
Gokussjg

Untitled

Nov 15th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.06 KB | None | 0 0
  1. --==//==--
  2. local function a()
  3. local t=tick();
  4. local l=t%1*3;
  5. local t=.5*math.pi*(l%1);
  6. if l<1 then
  7. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  8. elseif l<2 then
  9. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  10. else
  11. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  12. end;
  13. end;
  14.  
  15. local player = game.Players.LocalPlayer
  16. local char = player.Character
  17. local backpack = player.Backpack
  18.  
  19. local face = char.Head.face
  20. local la = char["Left Arm"]
  21. local ra = char["Right Arm"]
  22. local ll = char["Left Leg"]
  23. local rl = char["Right Leg"]
  24. local head = char.Head
  25. local torso = char.Torso
  26. char.Humanoid.MaxHealth= math.huge
  27. wait(0.1)
  28. char.Humanoid.Health = math.huge
  29.  
  30. --[[ff = Instance.new("ForceField")
  31. ff.Parent = char ]]
  32.  
  33. Mouse = player:GetMouse()
  34.  
  35. --[[ Sounds ]]--
  36. music = Instance.new("Sound")
  37. music.Parent=char.Torso
  38. music.Volume = 1
  39. music.Name="Asriel Dremurr - Hopes And Dreams"
  40. music.SoundId="rbxassetid://318512399"
  41. music.Looped = true
  42. --wait(0.5)
  43. --music:Play()
  44.  
  45. boom = Instance.new("Sound")
  46. boom.Parent=char.Torso
  47. boom.Volume = 100
  48. boom.Name="Beam Sound"
  49. boom.SoundId="rbxassetid://367932544"
  50.  
  51. --[[ Functions ]]--
  52.  
  53. function kill(part)
  54.  
  55. h = part.Parent:FindFirstChild("Humanoid")
  56.  
  57. if h ~= nil then
  58. h:TakeDamage(math.huge)
  59. end
  60. end
  61.  
  62. ------------------------------------------
  63. attacks = {
  64. goner = false;
  65. shockerbreaker = true;
  66. }
  67.  
  68. function PressQ(key)
  69. if (key == "q") then
  70.  
  71. if attacks.goner == false then
  72. return
  73. end
  74.  
  75. attacks.goner = false
  76.  
  77. goner = Instance.new("Part")
  78. goner.Parent = game.workspace.Terrain
  79. goner.Name = "Hyper Goner"
  80. goner.Size = Vector3.new(50,50,0.2)
  81. goner.Transparency = 1
  82. goner.CFrame = CFrame.new(0,100,0)
  83. goner.Anchored = true
  84.  
  85. goner2 = Instance.new("Decal")
  86. goner2.Parent = goner
  87. goner2.Face = "Front"
  88. goner2.Texture = "rbxassetid://410177621"
  89. goner2.Transparency =1
  90.  
  91. goner3 = goner2:Clone()
  92. goner3.Parent = goner
  93. goner3.Face = "Back"
  94. goner3.Transparency = 1
  95.  
  96. goner2.Transparency = 0.9
  97. goner3.Transparency = 0.9
  98. wait(0.001)
  99. goner2.Transparency = 0.8
  100. goner3.Transparency = 0.8
  101. wait(0.0001)
  102. goner2.Transparency = 0.7
  103. goner3.Transparency = 0.7
  104. wait(0.0001)
  105. goner2.Transparency = 0.6
  106. goner3.Transparency = 0.6
  107. wait(0.0001)
  108. goner2.Transparency = 0.5
  109. goner3.Transparency = 0.5
  110. wait(0.0001)
  111. goner2.Transparency = 0.4
  112. goner3.Transparency = 0.4
  113. wait(0.0001)
  114. goner2.Transparency = 0.3
  115. goner3.Transparency = 0.3
  116. wait(0.0001)
  117. goner2.Transparency = 0.2
  118. goner3.Transparency = 0.2
  119. wait(0.0001)
  120. goner2.Transparency = 0.1
  121. goner3.Transparency = 0.1
  122. wait(0.0001)
  123. goner2.Transparency = 0
  124. goner3.Transparency = 0
  125. wait(0.0001)
  126.  
  127. p= game.Players:GetChildren()
  128. for i= 1, #p do
  129. if p.Name ~= "Hyper Goner" then
  130. b = Instance.new("BodyPosition")
  131. b.Parent = p[i].Character.Torso
  132. b.maxForce = Vector3.new(6000000,60000000,60000000)
  133. b.Position = Vector3.new(0,100,0)
  134. end
  135. end
  136.  
  137. torso.Anchored = true
  138.  
  139. goner.Touched:connect(kill)
  140. wait(0.01)
  141. for i,v in pairs(torso:children()) do
  142. if v:IsA("BodyPosition") then
  143. v:Remove()
  144.  
  145. end
  146. end
  147. torso.Anchored = false
  148.  
  149. wait(5)
  150. goner2.Transparency = 0.1
  151. goner3.Transparency = 0.1
  152. wait(0.001)
  153. goner2.Transparency = 0.2
  154. goner3.Transparency = 0.2
  155. wait(0.0001)
  156. goner2.Transparency = 0.3
  157. goner3.Transparency = 0.3
  158. wait(0.0001)
  159. goner2.Transparency = 0.4
  160. goner3.Transparency = 0.4
  161. wait(0.0001)
  162. goner2.Transparency = 0.5
  163. goner3.Transparency = 0.5
  164. wait(0.0001)
  165. goner2.Transparency = 0.6
  166. goner3.Transparency = 0.6
  167. wait(0.0001)
  168. goner2.Transparency = 0.7
  169. goner3.Transparency = 0.7
  170. wait(0.0001)
  171. goner2.Transparency = 0.8
  172. goner3.Transparency = 0.8
  173. wait(0.0001)
  174. goner2.Transparency = 0.9
  175. goner3.Transparency = 0.9
  176. wait(0.0001)
  177. goner2.Transparency = 1
  178. goner3.Transparency = 1
  179. wait(0.0001)
  180. goner:Destroy()
  181. wait(15)
  182. attacks.goner = true
  183. print'Hyper Goner Has Been Charged.'
  184.  
  185. end
  186.  
  187. end
  188.  
  189. Mouse.KeyDown:connect(PressQ)
  190.  
  191. function PressE(key)
  192. if (key == "v") then
  193.  
  194. if attacks.shockerbreaker == false then
  195. return
  196. end
  197.  
  198. local pitch = {0.7, 0.8, 0.9, 1}
  199.  
  200. attacks.shockerbreaker = false
  201. boom.Pitch = 1 --pitch[math.random(1,#pitch)]
  202. lightning = Instance.new("Part")
  203. lightning.Parent = game.workspace.Terrain
  204. lightning.Name = "Lightning"
  205. lightning.Material = "Neon"
  206. --lightning.BrickColor = BrickColor.Yellow()
  207. lightning.Color = a();
  208. lightning.Size = Vector3.new(1,500,1)
  209. lightning.Position = Mouse.Hit.p
  210. lightning.Anchored = true
  211. lightning.CanCollide = false
  212. boom:Play()
  213.  
  214. explosion = Instance.new("Explosion")
  215. explosion.Parent = game.workspace.Terrain
  216. explosion.BlastRadius = 5
  217. explosion.BlastPressure = 5
  218. explosion.Position = Mouse.Hit.p
  219. explosion.Name = "Boom!"
  220. wait(0.05)
  221. explosion:Remove()
  222.  
  223. wait(1)
  224. lightning:Remove()
  225. --boom:Play()
  226.  
  227. attacks.shockerbreaker = true
  228.  
  229. end
  230. end
  231.  
  232. Mouse.KeyDown:connect(PressE)
  233.  
  234.  
  235.  
  236. char.Humanoid.Died:connect(function(clean)
  237.  
  238. removegoner = game.workspace.Terrain:FindFirstChild("Hyper Goner")
  239.  
  240. if removegoner ~= nil then
  241. removegoner:Destroy()
  242. end
  243.  
  244. removeshocker = game.workspace.Terrain:FindFirstChild("Lightning")
  245.  
  246. if removeshocker ~= nil then
  247. removeshocker:Destroy()
  248. end
  249. end)
  250.  
  251.  
  252.  
  253. local Player = game:service("Players").LocalPlayer
  254. local Char = Player.Character
  255. local mouse = Player:GetMouse()
  256. local Humanoid = Char:findFirstChild("Humanoid")
  257. local Torso = Char:findFirstChild("Torso")
  258. local Head = Char.Head
  259. Head.Running:Destroy()
  260. local ra = Char:findFirstChild("Right Arm")
  261. local la = Char:findFirstChild("Left Arm")
  262. local rl = Char:findFirstChild("Right Leg")
  263. local ll = Char:findFirstChild("Left Leg")
  264. local rs = Torso:findFirstChild("Right Shoulder")
  265. local ls = Torso:findFirstChild("Left Shoulder")
  266. local rh = Torso:findFirstChild("Right Hip")
  267. local lh = Torso:findFirstChild("Left Hip")
  268. local neck = Torso:findFirstChild("Neck")
  269. local rp = Char:findFirstChild("HumanoidRootPart")
  270. rp.Archivable = true
  271. local rj = rp:findFirstChild("RootJoint")
  272. rj.Archivable = true
  273. local animate = Char:findFirstChild("Animate")
  274. local rootpart = Char:findFirstChild("HumanoidRootPart")
  275. local Camera = workspace.CurrentCamera
  276. local CF = CFrame.new
  277. local components = CF().components
  278. local magicclrs = {"Really blue", "Navy blue", "Institutional white","Pink","Lime green","Royal purple","Bright blue","Really red"}
  279. --local magicclrs = {"Really red", "Deep orange", "New Yeller", "Lime green", "Really blue", "Royal purple", "Bright violet"}
  280. rootpart.CanCollide = false
  281. Humanoid:findFirstChild("Animator"):Destroy()
  282. Humanoid.CameraOffset = Vector3.new(0, 2, 0)
  283. Humanoid.JumpPower = 60
  284. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  285. if jump == "Jump" then
  286. Humanoid.Jump = false
  287. end
  288. end)
  289.  
  290.  
  291.  
  292. Lerp = function(a,b,c)
  293. return a+(b-a)*c
  294. end
  295.  
  296. function phaseclone()
  297. Char.Archivable = true
  298. local Clone1 = Char:Clone()
  299. Clone1.Parent = game.Workspace
  300. for i,v in pairs (Clone1:GetChildren()) do
  301. if v.ClassName == "BodyColors" then
  302. B = "Really black"
  303. v.HeadColor = BrickColor.new(B)
  304. v.LeftArmColor = BrickColor.new(B)
  305. v.RightArmColor = BrickColor.new(B)
  306. v.TorsoColor = BrickColor.new(B)
  307. v.LeftLegColor = BrickColor.new(B)
  308. v.RightLegColor = BrickColor.new(B)
  309. elseif not v:IsA("Part") then
  310. v:Destroy()
  311. end
  312. if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
  313. v:Destroy()
  314. end
  315. if v:IsA("Part") then
  316. v.Transparency = 0.5
  317. v.TopSurface = "Smooth"
  318. v.BottomSurface = "Smooth"
  319. v.LeftSurface = "Smooth"
  320. v.RightSurface = "Smooth"
  321. Bl = "Really black"
  322. v.BrickColor = BrickColor.new(Bl)
  323. v.Anchored = true
  324. v.CanCollide = false
  325. end
  326. end
  327. for i,v in pairs (Clone1:GetChildren()) do
  328. if v:FindFirstChild("roblox") then
  329. v.roblox:Destroy()
  330. end
  331. if v:FindFirstChild("face") then
  332. v.face:Destroy()
  333. end
  334. if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
  335. v:Remove()
  336. end
  337. end
  338. wait(0.3)
  339. for i = 1,5 do
  340. for _,v in pairs(Clone1:GetChildren()) do
  341. if v:IsA("Part") then
  342. v.Transparency = 0.5+i/5
  343. wait()
  344. end
  345. end
  346. end
  347. Clone1:Destroy()
  348. end
  349.  
  350.  
  351. function ctlerp(c1,c2,al)
  352. local com1 = {c1:components()}
  353. local com2 = {c2:components()}
  354. for i,v in pairs(com1) do
  355. com1[i] = Lerp(v,com2[i],al)
  356. end
  357. return CF(unpack(com1))
  358. end
  359.  
  360. do
  361. local function QuaternionFromCFrame(cf)
  362. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  363. local trace = m00 + m11 + m22
  364. if trace > 0 then
  365. local s = math.sqrt(1 + trace)
  366. local recip = 0.5/s
  367. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  368. else
  369. local i = 0
  370. if m11 > m00 then
  371. i = 1
  372. end
  373. if m22 > (i == 0 and m00 or m11) then
  374. i = 2
  375. end
  376. if i == 0 then
  377. local s = math.sqrt(m00-m11-m22+1)
  378. local recip = 0.5/s
  379. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  380. elseif i == 1 then
  381. local s = math.sqrt(m11-m22-m00+1)
  382. local recip = 0.5/s
  383. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  384. elseif i == 2 then
  385. local s = math.sqrt(m22-m00-m11+1)
  386. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  387. end
  388. end
  389. end
  390. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  391. local xs, ys, zs = x + x, y + y, z + z
  392. local wx, wy, wz = w*xs, w*ys, w*zs
  393. local xx = x*xs
  394. local xy = x*ys
  395. local xz = x*zs
  396. local yy = y*ys
  397. local yz = y*zs
  398. local zz = z*zs
  399. return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  400. end
  401. local function QuaternionSlerp(a, b, t)
  402. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  403. local startInterp, finishInterp;
  404. if cosTheta >= 0.0001 then
  405. if (1 - cosTheta) > 0.0001 then
  406. local theta = math.acos(cosTheta)
  407. local invSinTheta = 1/math.sin(theta)
  408. startInterp = math.sin((1-t)*theta)*invSinTheta
  409. finishInterp = math.sin(t*theta)*invSinTheta
  410. else
  411. startInterp = 1-t
  412. finishInterp = t
  413. end
  414. else
  415. if (1+cosTheta) > 0.0001 then
  416. local theta = math.acos(-cosTheta)
  417. local invSinTheta = 1/math.sin(theta)
  418. startInterp = math.sin((t-1)*theta)*invSinTheta
  419. finishInterp = math.sin(t*theta)*invSinTheta
  420. else
  421. startInterp = t-1
  422. finishInterp = t
  423. end
  424. end
  425. 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
  426. end
  427. function clerp(a,b,t)
  428. local qa = {QuaternionFromCFrame(a)}
  429. local qb = {QuaternionFromCFrame(b)}
  430. local ax, ay, az = a.x, a.y, a.z
  431. local bx, by, bz = b.x, b.y, b.z
  432. local _t = 1-t
  433. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  434. end
  435. end
  436.  
  437. --==/BASE/DEFAULT WELDS/==--
  438. rm = Instance.new("Weld", Torso)
  439. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  440. rm.C1 = CFrame.new(0, 0.5, 0)
  441. rm.Part0 = Torso
  442. rm.Part1 = ra
  443. lm = Instance.new("Weld", Torso)
  444. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  445. lm.C1 = CFrame.new(0, 0.5, 0)
  446. lm.Part0 = Torso
  447. lm.Part1 = la
  448. rlegm = Instance.new("Weld", Torso)
  449. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  450. rlegm.C1 = CFrame.new(0, 1, 0)
  451. rlegm.Part0 = Torso
  452. rlegm.Part1 = rl
  453. llegm = Instance.new("Weld", Torso)
  454. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  455. llegm.C1 = CFrame.new(0, 1, 0)
  456. llegm.Part0 = Torso
  457. llegm.Part1 = ll
  458. neck.C0 = CFrame.new(0,1,0)
  459. neck.C1 = CFrame.new(0,-0.5,0)
  460.  
  461. --==/Mage's gauntlet/==--
  462. gauntlet = Instance.new("Model", Char)
  463. gauntParts = Instance.new("Model", gauntlet)
  464.  
  465. local rrng = Instance.new("Part", gauntParts)
  466. rrng.Transparency = 1
  467. rrng.Anchored = false
  468. rrng.CanCollide = false
  469. rrng.FormFactor = "Custom"
  470. rrng.TopSurface = "Smooth"
  471. rrng.BottomSurface = "Smooth"
  472. rrng.BrickColor = BrickColor.new("Really black")
  473. local rrngM = Instance.new("FileMesh", rrng)
  474. rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  475. rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
  476. local rrngW = Instance.new("Weld", rrng)
  477. rrngW.Part1 = rrng
  478. rrngW.Part0 = ra
  479. rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
  480.  
  481. local rbg = Instance.new("Part", gauntParts)
  482. rbg.Transparency = 1
  483. rbg.Anchored, rbg.CanCollide = false, false
  484. rbg.FormFactor = "Custom"
  485. rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
  486. rbg.Color = Color3.new(0, 0, 0)
  487. local rbgM = Instance.new("SpecialMesh", rbg)
  488. rbgM.MeshType = "Cylinder"
  489. rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
  490. local rbgW = Instance.new("Weld", rbg)
  491. rbgW.Part1 = rbg
  492. rbgW.Part0 = rrng
  493. rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  494.  
  495. local chak = Instance.new("Part", gauntParts)
  496. chak.Anchored, chak.CanCollide = false, false
  497. chak.FormFactor = "Custom"
  498. chak.Transparency = 1
  499. chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
  500. chak.Color = Color3.new(1, 1, 1)
  501. local chakM = Instance.new("FileMesh", chak)
  502. chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
  503. chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
  504. local chakW = Instance.new("Motor", chak)
  505. chakW.DesiredAngle = 100000000000
  506. chakW.MaxVelocity = 0.1
  507. chakW.Part1 = chak
  508. chakW.Part0 = rrng
  509. chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
  510.  
  511. --=/Spikes for Gauntlet [top]/=--
  512.  
  513. local cone = Instance.new("Part", gauntParts)
  514. cone.Anchored, cone.CanCollide = false, false
  515. cone.FormFactor = "Custom"
  516. cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  517. cone.Color = Color3.new(0, 0, 0)
  518. cone.Transparency = 1
  519. local coneM = Instance.new("FileMesh", cone)
  520. coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
  521. coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
  522. local coneW = Instance.new("Motor", cone)
  523. coneW.Part1 = cone
  524. coneW.Part0 = rrng
  525. coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
  526.  
  527. local cone2 = Instance.new("Part", gauntParts)
  528. cone2.Anchored, cone2.CanCollide = false, false
  529. cone2.FormFactor = "Custom"
  530. cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
  531. cone2.Color = Color3.new(0, 0, 0)
  532. cone2.Transparency = 1
  533. local cone2M = Instance.new("FileMesh", cone2)
  534. cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  535. cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
  536. local cone2W = Instance.new("Motor", cone2)
  537. cone2W.Part1 = cone2
  538. cone2W.Part0 = rrng
  539. cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
  540.  
  541. local cone3 = Instance.new("Part", gauntParts)
  542. cone3.Anchored, cone3.CanCollide = false, false
  543. cone3.FormFactor = "Custom"
  544. cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
  545. cone3.Color = Color3.new(0, 0, 0)
  546. cone3.Transparency = 1
  547. local cone3M = Instance.new("FileMesh", cone3)
  548. cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  549. cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
  550. local cone3W = Instance.new("Motor", cone3)
  551. cone3W.Part1 = cone3
  552. cone3W.Part0 = rrng
  553. cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
  554.  
  555. --=/Spikes for Gauntlet [bottom]/=--
  556.  
  557. local cone4 = Instance.new("Part", gauntParts)
  558. cone4.Anchored, cone4.CanCollide = false, false
  559. cone4.FormFactor = "Custom"
  560. cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  561. cone4.Color = Color3.new(0, 0, 0)
  562. cone4.Transparency = 1
  563. local cone4M = Instance.new("FileMesh", cone4)
  564. cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  565. cone4M.Scale = Vector3.new(0.1, 1, 0.06)
  566. local cone4W = Instance.new("Motor", cone4)
  567. cone4W.Part1 = cone4
  568. cone4W.Part0 = rrng
  569. cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
  570.  
  571. local cone5 = Instance.new("Part", gauntParts)
  572. cone5.Anchored, cone5.CanCollide = false, false
  573. cone5.FormFactor = "Custom"
  574. cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
  575. cone5.Color = Color3.new(0, 0, 0)
  576. cone5.Transparency = 1
  577. local cone5M = Instance.new("FileMesh", cone5)
  578. cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  579. cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
  580. local cone5W = Instance.new("Motor", cone5)
  581. cone5W.Part1 = cone5
  582. cone5W.Part0 = rrng
  583. cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
  584.  
  585. local cone6 = Instance.new("Part", gauntParts)
  586. cone6.Anchored, cone6.CanCollide = false, false
  587. cone6.FormFactor = "Custom"
  588. cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
  589. cone6.Color = Color3.new(0, 0, 0)
  590. cone6.Transparency = 1
  591. local cone6M = Instance.new("FileMesh", cone6)
  592. cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  593. cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
  594. local cone6W = Instance.new("Motor", cone6)
  595. cone6W.Part1 = cone6
  596. cone6W.Part0 = rrng
  597. cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
  598.  
  599. --=/Armband/=--
  600.  
  601. local armbnd = Instance.new("Part", gauntParts)
  602. armbnd.Anchored, armbnd.CanCollide = false, false
  603. armbnd.FormFactor = "Custom"
  604. armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
  605. armbnd.Color = Color3.new(0, 0, 0)
  606. armbnd.Transparency = 1
  607. armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
  608. local armbndW = Instance.new("Motor", armbnd)
  609. armbndW.Part1 = armbnd
  610. armbndW.Part0 = ra
  611. armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  612.  
  613. local armbnd2 = Instance.new("Part", gauntParts)
  614. armbnd2.Anchored, armbnd2.CanCollide = false, false
  615. armbnd2.FormFactor = "Custom"
  616. armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
  617. armbnd2.Color = Color3.new(0, 0, 0)
  618. armbnd2.Transparency = 1
  619. armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
  620. local armbnd2W = Instance.new("Motor", armbnd2)
  621. armbnd2W.Part1 = armbnd2
  622. armbnd2W.Part0 = armbnd
  623. armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
  624.  
  625. local armbnd3 = Instance.new("Part", gauntParts)
  626. armbnd3.Anchored, armbnd3.CanCollide = false, false
  627. armbnd3.FormFactor = "Custom"
  628. armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
  629. armbnd3.Color = Color3.new(0, 0, 0)
  630. armbnd3.Transparency = 1
  631. armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
  632. local armbnd3W = Instance.new("Motor", armbnd3)
  633. armbnd3W.Part1 = armbnd3
  634. armbnd3W.Part0 = armbnd
  635. armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
  636.  
  637. --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
  638.  
  639. --==/BASE VARIABLES/==--
  640. sine = 1
  641. angle = 0
  642. anglespeed = 1
  643. local anim = false
  644. local walking = false
  645. local sprinting = false
  646. local magix = false
  647. local debounce = false
  648. local magixball = false
  649.  
  650. mouse.Button1Down:connect(function()
  651. magixball = true
  652. if debounce == false and magix == true then
  653. debounce = true
  654. coroutine.resume(coroutine.create(function()
  655. wait(0.3)
  656. debounce = false
  657. end))
  658. local PorplBall = Instance.new("Part", Char)
  659. PorplBall.Archivable = true
  660. PorplBall.TopSurface = 10
  661. PorplBall.BottomSurface = 10
  662. PorplBall.CFrame = rrng.CFrame
  663. PorplBall.Anchored = false
  664. PorplBall.CanCollide = false
  665. PorplBall.Size = Vector3.new(1, 1, 1)
  666. PorplBall.BrickColor = BrickColor.new("Navy blue")
  667. PorplBall.Transparency = 0
  668. local PorplBallM = Instance.new("SpecialMesh", PorplBall)
  669. PorplBallM.MeshType = "Sphere"
  670. PorplBallM.Scale = Vector3.new(1, 1, 1)
  671. local function explode()
  672. wait()
  673. PorplBall:Destroy()
  674. end
  675. coroutine.resume(coroutine.create(function()
  676. for i = 1, 125 do wait(0.000000000000001)
  677. local pmagic = Instance.new("Part", PorplBall)
  678. pmagic.FormFactor = "Custom"
  679. pmagic.Anchored = true
  680. pmagic.CanCollide = false
  681. pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  682. pmagic.TopSurface = 10
  683. pmagic.BottomSurface = 10
  684. pmagic.LeftSurface = 10
  685. pmagic.RightSurface = 10
  686. pmagic.FrontSurface = 10
  687. pmagic.BackSurface = 10
  688. pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  689. pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  690. local lt = Instance.new("PointLight", pmagic)
  691. lt.Brightness = 100
  692. lt.Range = 5
  693. lt.Color = Color3.new(0, 0, 65/100)
  694. local pmagicM = Instance.new("BlockMesh", pmagic)
  695. game:GetService("Debris"):AddItem(pmagic, 0.5)
  696. coroutine.wrap(function()
  697. for i = 1, 10 do
  698. pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  699. pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
  700. wait()
  701. end
  702. end)()
  703. end
  704. end))
  705. local Velocity = Instance.new("BodyVelocity", PorplBall)
  706. Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
  707. Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
  708. local ready = false
  709. PorplBall.Touched:connect(function(part)
  710. if not part:IsDescendantOf(Char) and ready == false then
  711. ready = true
  712. local found = false
  713. for i,v in pairs (part.Parent:GetChildren()) do
  714. if v:IsA("Humanoid") or v == Torso or v == Head then
  715. found = true
  716. v.MaxHealth = v.MaxHealth - math.huge
  717. v.Health = v.Health - math.huge
  718. end
  719. end
  720. Velocity:Destroy()
  721. PorplBall.Anchored = true
  722. for i = 0, 1, 0.06 do
  723. local start = 1
  724. local stop = 7
  725. PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
  726. PorplBall.Transparency = i
  727. wait()
  728. end
  729. explode()
  730. end
  731. end)
  732. wait(6.5)
  733. explode()
  734. end
  735. end)
  736.  
  737. coroutine.resume(coroutine.create(function()
  738. while wait(0.0000000001) do if magix == true then
  739. --[[ --==/Lightning Magic/==--
  740. lastCF = Torso.Position
  741. x1 = Instance.new("Part", workspace)
  742. x1.Size = Vector3.new(1, 1, 1)
  743. x1.CanCollide = false
  744. x1.Anchored = true
  745. x1.Transparency = 1
  746. spawn(function()
  747. while true do
  748. wait(-1)
  749. x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6)
  750. end
  751. end)
  752. for i = 1, math.huge do
  753. local dist2 = (lastCF-x1.Position).magnitude
  754. x2 = Instance.new("Part", workspace)
  755. x2.Size = Vector3.new(1, 1, 1)
  756. x2.Material = "Neon"
  757. x2.BrickColor = BrickColor.new("Navy blue")
  758. x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
  759. x2.CanCollide = false
  760. x2.Anchored = true
  761. local m = Instance.new("BlockMesh", x2)
  762. m.Scale = Vector3.new(0.5, 0.5, dist2)
  763. lastCF = x1.Position
  764. spawn(function()
  765. for i = 1, 100 do
  766. x = m.Scale.x/10
  767. y = m.Scale.x/10
  768. m.Scale = m.Scale-Vector3.new(x, y, 0)
  769. wait()
  770. end
  771. end)
  772. game.Debris:AddItem(x2, 0.35)
  773. wait()
  774. end
  775. x1:Destroy()
  776. ]]--
  777. --=/Right Arm Magic/=--
  778. local ramagic = Instance.new("Part", Char)
  779. ramagic.FormFactor = "Custom"
  780. ramagic.Anchored = true
  781. ramagic.CanCollide = false
  782. ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
  783. ramagic.TopSurface = 10
  784. ramagic.BottomSurface = 10
  785. ramagic.LeftSurface = 10
  786. ramagic.RightSurface = 10
  787. ramagic.FrontSurface=10
  788. ramagic.BackSurface=10
  789. ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  790. ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  791. local lt = Instance.new("PointLight", ramagic)
  792. lt.Brightness = 100
  793. lt.Range = 5
  794. lt.Color = Color3.new(0, 0, 65/100)
  795. local ramagicM = Instance.new("BlockMesh", ramagic)
  796.  
  797. --=/Left Arm Magic/=--
  798. local lamagic = Instance.new("Part", Char)
  799. lamagic.FormFactor = "Custom"
  800. lamagic.Anchored = true
  801. lamagic.CanCollide = false
  802. lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
  803. lamagic.TopSurface = 10
  804. lamagic.BottomSurface = 10
  805. lamagic.LeftSurface = 10
  806. lamagic.RightSurface = 10
  807. lamagic.FrontSurface=10
  808. lamagic.BackSurface=10
  809. lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
  810. lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  811. local lt2 = Instance.new("PointLight", lamagic)
  812. lt2.Brightness = 100
  813. lt2.Range = 6
  814. lt2.Color = Color3.new(0, 0, 65/100)
  815. local lamagicM = Instance.new("BlockMesh", lamagic)
  816. --[[optional
  817. --=/Right Leg Magic/=--
  818. local rlmagic = Instance.new("Part", Char)
  819. rlmagic.FormFactor = "Custom"
  820. rlmagic.Anchored = true
  821. rlmagic.CanCollide = false
  822. rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  823. rlmagic.TopSurface = 10
  824. rlmagic.BottomSurface = 10
  825. rlmagic.LeftSurface = 10
  826. rlmagic.RightSurface = 10
  827. rlmagic.FrontSurface=10
  828. rlmagic.BackSurface=10
  829. rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  830. rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  831. local lt3 = Instance.new("PointLight", rlmagic)
  832. lt3.Brightness = 123123
  833. lt3.Range = 6
  834. lt3.Color = Color3.new(1, 0, 1)
  835. local rlmagicM = Instance.new("BlockMesh", rlmagic)
  836.  
  837. --=/Left Leg Magic/=--
  838. local llmagic = Instance.new("Part", Char)
  839. llmagic.FormFactor = "Custom"
  840. llmagic.Anchored = true
  841. llmagic.CanCollide = false
  842. llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  843. llmagic.TopSurface = 10
  844. llmagic.BottomSurface = 10
  845. llmagic.LeftSurface = 10
  846. llmagic.RightSurface = 10
  847. llmagic.FrontSurface=10
  848. llmagic.BackSurface=10
  849. llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  850. llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  851. local lt4 = Instance.new("PointLight", llmagic)
  852. lt4.Brightness = 123123
  853. lt4.Range = 6
  854. lt4.Color = Color3.new(1, 0, 1)
  855. local llmagicM = Instance.new("BlockMesh", llmagic)
  856. ]]
  857. game:GetService("Debris"):AddItem(lamagic, 0.85)
  858. game:GetService("Debris"):AddItem(ramagic, 0.85)
  859. --[[
  860. game:GetService("Debris"):AddItem(rlmagic, 0.85)
  861. game:GetService("Debris"):AddItem(llmagic, 0.85)
  862. ]]--
  863. coroutine.wrap(function()
  864. for i = 1, 10 do
  865. ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  866. ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
  867. lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  868. lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
  869. --[[
  870. rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  871. rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
  872. llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  873. llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
  874. ]]--
  875. wait()
  876. end
  877. end)()
  878. end
  879. end
  880. end))
  881. --------------------------------------------------------------------
  882. mouse.KeyDown:connect(function(key)
  883. if key == "u" then
  884. dunkd = Instance.new("Sound",workspace.Eurse.Torso)
  885. dunkd.SoundId = "http://www.roblox.com/asset/?id = 401604539"
  886. dunkd.Looped = false
  887. dunkd:Play()
  888. end
  889. end)
  890.  
  891. --[[local bodyg = Instance.new("BodyGyro", Torso)
  892. bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
  893. while true do game:GetService("RunService").RenderStepped:wait()
  894. bodyg.CFrame = Camera.CoordinateFrame
  895. end]]--
  896.  
  897.  
  898. --[[mouse.KeyDown:connect(function(key)
  899. if key == "0" and sprinting == false then
  900. sprinting = true
  901. Humanoid.WalkSpeed = 60 ]]
  902. --elseif key == "l" and magix == true then
  903. if key == "l" and magix == true then
  904. magix = false
  905. for i = 65/255, 1, -0.1 do wait()
  906. chak.Color = Color3.new(i, i, i)
  907. end
  908. elseif key == "l" and magix == false then
  909. magix = true
  910. for i = 0, 65/255, 0.1 do wait()
  911. chak.Color = Color3.new(0, 0, i)
  912. end
  913. end
  914. --end)
  915.  
  916. --[[mouse.KeyUp:connect(function(key)
  917. if key == "0" and sprinting == true then
  918. sprinting = false
  919. Humanoid.WalkSpeed = 19
  920. end
  921. end) ]]
  922.  
  923. --==/GAMEPAD CONTROLS/==--
  924.  
  925. game:GetService("UserInputService").InputBegan:connect(function(input)
  926. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  927. if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
  928. magix = true
  929. elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
  930. magix = false
  931. elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
  932. sprinting = true
  933. end
  934. end
  935. end)
  936.  
  937. game:GetService("UserInputService").InputEnded:connect(function(input)
  938. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  939. if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
  940. sprinting = false
  941. end
  942. end
  943. end)
  944.  
  945.  
  946.  
  947. game:GetService("RunService").Stepped:connect(function()
  948. angle = (angle % 100) + anglespeed/10
  949. rootpart.CanCollide = false
  950. local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
  951. if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then
  952. animpose = "Jump"
  953.  
  954. elseif speed < 2 then -- idle
  955. animpose = "Idle"
  956.  
  957. elseif sprinting == true then -- sprinting
  958. animpose = "Sprinting"
  959.  
  960. elseif speed > 2 then -- walking
  961. walking = true
  962. animpose = "Moving"
  963. end
  964. --==/ANIMATION FUNCTIONS/==--
  965. if animpose == "Idle" and anim == false then -- idle
  966. anglespeed = 0.5
  967. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(0) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1)
  968. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, -0.15) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1)
  969. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.9, 0) * CFrame.Angles(math.rad(-0), math.rad(-5), -25), 0.1)
  970. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
  971. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-0), math.sin(angle) * 0.01), 0.1)
  972. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(170)), 0.1)
  973.  
  974. elseif animpose == "Moving" and anim == false and walking == true then -- walk
  975. anglespeed = 0.5
  976. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  977. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  978. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.8, -0) * CFrame.Angles(math.rad(-7), math.rad(-5), 0), 0.1)
  979. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
  980. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
  981. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1)
  982. Humanoid.WalkSpeed = 19
  983.  
  984. elseif animpose == "Sprinting" and anim == false then -- sprint
  985. anglespeed = 0.5
  986. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  987. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  988. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  989. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
  990. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
  991. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1)
  992. Humanoid.WalkSpeed = 40
  993. end
  994. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement