Advertisement
BillyOrIsIt

Hot noodles

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