Advertisement
zombieslayerwtf

Midas Touch [Leaked]

Jun 29th, 2018
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.64 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://1237585433"
  33. sick.Looped = true
  34. sick.Pitch = .9
  35. sick.Volume = 1
  36. sick:Play()
  37.  
  38. IT = Instance.new
  39. CF = CFrame.new
  40. VT = Vector3.new
  41. RAD = math.rad
  42. C3 = Color3.new
  43. UD2 = UDim2.new
  44. BRICKC = BrickColor.new
  45. ANGLES = CFrame.Angles
  46. EULER = CFrame.fromEulerAnglesXYZ
  47. COS = math.cos
  48. ACOS = math.acos
  49. SIN = math.sin
  50. ASIN = math.asin
  51. ABS = math.abs
  52. MRANDOM = math.random
  53. FLOOR = math.floor
  54.  
  55. --//=================================\\
  56. --|| CUSTOMIZATION
  57. --\\=================================//
  58.  
  59. Class_Name = "Greed"
  60. Weapon_Name = "Add-ons"
  61.  
  62. Custom_Colors = {
  63. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  64. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  65.  
  66. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  67. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  68. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  69. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  70. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  71.  
  72. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  73. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  74. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  75. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  76. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  77. }
  78.  
  79.  
  80. Player_Size = 1 --Size of the player.
  81. Animation_Speed = 3
  82. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  83.  
  84. local Speed = 9
  85. local Effects2 = {}
  86.  
  87. --//=================================\\
  88. --|| END OF CUSTOMIZATION
  89. --\\=================================//
  90.  
  91. local function weldBetween(a, b)
  92. local weldd = Instance.new("ManualWeld")
  93. weldd.Part0 = a
  94. weldd.Part1 = b
  95. weldd.C0 = CFrame.new()
  96. weldd.C1 = b.CFrame:inverse() * a.CFrame
  97. weldd.Parent = a
  98. return weldd
  99. end
  100.  
  101. --//=================================\\
  102. --|| USEFUL VALUES
  103. --\\=================================//
  104.  
  105. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  106. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  107. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  108. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  109. local CO1 = 0
  110. local CO2 = 0
  111. local CO3 = 0
  112. local CO4 = 0
  113. local CHANGEDEFENSE = 0
  114. local CHANGEDAMAGE = 0
  115. local CHANGEMOVEMENT = 0
  116. local ANIM = "Idle"
  117. local ATTACK = false
  118. local EQUIPPED = false
  119. local HOLD = false
  120. local COMBO = 1
  121. local LASTPOINT = nil
  122. local BLCF = nil
  123. local SCFR = nil
  124. local STAGGERHITANIM = false
  125. local STAGGERANIM = false
  126. local STUNANIM = false
  127. local CRITCHANCENUMBER = 0
  128. local IDLENUMBER = 0
  129. local DONUMBER = 0
  130. local HANDIDLE = false
  131. local Rooted = false
  132. local SINE = 0
  133. local CHANGE = 2 / Animation_Speed
  134. local WALKINGANIM = false
  135. local WALK = 0
  136. local DISABLEJUMPING = false
  137. local ROBLOXIDLEANIMATION = IT("Animation")
  138. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  139. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  140. --ROBLOXIDLEANIMATION.Parent = Humanoid
  141. local ANIMATOR = Humanoid.Animator
  142. local ANIMATE = Character.Animate
  143. local UNANCHOR = true
  144.  
  145. local SKILLTEXTCOLOR = C3(0,0,0)
  146.  
  147. --//=================================\\
  148. --\\=================================//
  149.  
  150.  
  151. --//=================================\\
  152. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  153. --\\=================================//
  154.  
  155. ArtificialHB = Instance.new("BindableEvent", script)
  156. ArtificialHB.Name = "ArtificialHB"
  157.  
  158. script:WaitForChild("ArtificialHB")
  159.  
  160. frame = Frame_Speed
  161. tf = 0
  162. allowframeloss = false
  163. tossremainder = false
  164. lastframe = tick()
  165. script.ArtificialHB:Fire()
  166.  
  167. game:GetService("RunService").Heartbeat:connect(function(s, p)
  168. tf = tf + s
  169. if tf >= frame then
  170. if allowframeloss then
  171. script.ArtificialHB:Fire()
  172. lastframe = tick()
  173. else
  174. for i = 1, math.floor(tf / frame) do
  175. script.ArtificialHB:Fire()
  176. end
  177. lastframe = tick()
  178. end
  179. if tossremainder then
  180. tf = 0
  181. else
  182. tf = tf - frame * math.floor(tf / frame)
  183. end
  184. end
  185. end)
  186.  
  187. --//=================================\\
  188. --\\=================================//
  189.  
  190.  
  191.  
  192.  
  193.  
  194. --//=================================\\
  195. --|| SOME FUNCTIONS
  196. --\\=================================//
  197.  
  198. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  199. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  200. end
  201.  
  202. function PositiveAngle(NUMBER)
  203. if NUMBER >= 0 then
  204. NUMBER = 0
  205. end
  206. return NUMBER
  207. end
  208.  
  209. function NegativeAngle(NUMBER)
  210. if NUMBER <= 0 then
  211. NUMBER = 0
  212. end
  213. return NUMBER
  214. end
  215.  
  216. function Swait(NUMBER)
  217. if NUMBER == 0 or NUMBER == nil then
  218. ArtificialHB.Event:wait()
  219. else
  220. for i = 1, NUMBER do
  221. ArtificialHB.Event:wait()
  222. end
  223. end
  224. end
  225.  
  226. function QuaternionFromCFrame(cf)
  227. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  228. local trace = m00 + m11 + m22
  229. if trace > 0 then
  230. local s = math.sqrt(1 + trace)
  231. local recip = 0.5 / s
  232. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  233. else
  234. local i = 0
  235. if m11 > m00 then
  236. i = 1
  237. end
  238. if m22 > (i == 0 and m00 or m11) then
  239. i = 2
  240. end
  241. if i == 0 then
  242. local s = math.sqrt(m00 - m11 - m22 + 1)
  243. local recip = 0.5 / s
  244. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  245. elseif i == 1 then
  246. local s = math.sqrt(m11 - m22 - m00 + 1)
  247. local recip = 0.5 / s
  248. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  249. elseif i == 2 then
  250. local s = math.sqrt(m22 - m00 - m11 + 1)
  251. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  252. end
  253. end
  254. end
  255.  
  256. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  257. local xs, ys, zs = x + x, y + y, z + z
  258. local wx, wy, wz = w * xs, w * ys, w * zs
  259. local xx = x * xs
  260. local xy = x * ys
  261. local xz = x * zs
  262. local yy = y * ys
  263. local yz = y * zs
  264. local zz = z * zs
  265. 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))
  266. end
  267.  
  268. function QuaternionSlerp(a, b, t)
  269. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  270. local startInterp, finishInterp;
  271. if cosTheta >= 0.0001 then
  272. if (1 - cosTheta) > 0.0001 then
  273. local theta = ACOS(cosTheta)
  274. local invSinTheta = 1 / SIN(theta)
  275. startInterp = SIN((1 - t) * theta) * invSinTheta
  276. finishInterp = SIN(t * theta) * invSinTheta
  277. else
  278. startInterp = 1 - t
  279. finishInterp = t
  280. end
  281. else
  282. if (1 + cosTheta) > 0.0001 then
  283. local theta = ACOS(-cosTheta)
  284. local invSinTheta = 1 / SIN(theta)
  285. startInterp = SIN((t - 1) * theta) * invSinTheta
  286. finishInterp = SIN(t * theta) * invSinTheta
  287. else
  288. startInterp = t - 1
  289. finishInterp = t
  290. end
  291. end
  292. 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
  293. end
  294.  
  295. function Clerp(a, b, t)
  296. local qa = {QuaternionFromCFrame(a)}
  297. local qb = {QuaternionFromCFrame(b)}
  298. local ax, ay, az = a.x, a.y, a.z
  299. local bx, by, bz = b.x, b.y, b.z
  300. local _t = 1 - t
  301. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  302. end
  303.  
  304. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  305. local frame = IT("Frame")
  306. frame.BackgroundTransparency = TRANSPARENCY
  307. frame.BorderSizePixel = BORDERSIZEPIXEL
  308. frame.Position = POSITION
  309. frame.Size = SIZE
  310. frame.BackgroundColor3 = COLOR
  311. frame.BorderColor3 = BORDERCOLOR
  312. frame.Name = NAME
  313. frame.Parent = PARENT
  314. return frame
  315. end
  316.  
  317. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  318. local label = IT("TextLabel")
  319. label.BackgroundTransparency = 1
  320. label.Size = UD2(1, 0, 1, 0)
  321. label.Position = UD2(0, 0, 0, 0)
  322. label.TextColor3 = TEXTCOLOR
  323. label.TextStrokeTransparency = STROKETRANSPARENCY
  324. label.TextTransparency = TRANSPARENCY
  325. label.FontSize = TEXTFONTSIZE
  326. label.Font = TEXTFONT
  327. label.BorderSizePixel = BORDERSIZEPIXEL
  328. label.TextScaled = false
  329. label.Text = TEXT
  330. label.Name = NAME
  331. label.Parent = PARENT
  332. return label
  333. end
  334.  
  335. function NoOutlines(PART)
  336. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  337. end
  338.  
  339.  
  340. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  341. local NEWWELD = IT(TYPE)
  342. NEWWELD.Part0 = PART0
  343. NEWWELD.Part1 = PART1
  344. NEWWELD.C0 = C0
  345. NEWWELD.C1 = C1
  346. NEWWELD.Parent = PARENT
  347. return NEWWELD
  348. end
  349.  
  350. function CreateSound(ID, PARENT, VOLUME, PITCH)
  351. local NEWSOUND = nil
  352. coroutine.resume(coroutine.create(function()
  353. NEWSOUND = IT("Sound", PARENT)
  354. NEWSOUND.Volume = VOLUME
  355. NEWSOUND.Pitch = PITCH
  356. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  357. Swait()
  358. NEWSOUND:play()
  359. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  360. end))
  361. return NEWSOUND
  362. end
  363.  
  364. function CFrameFromTopBack(at, top, back)
  365. local right = top:Cross(back)
  366. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  367. end
  368.  
  369. --//=================================\\
  370. --|| SPEECH
  371. --\\=================================//
  372.  
  373. local speak = Instance.new("Sound",Head)
  374. speak.SoundId = "rbxassetid://418252437"
  375. speak.Volume = 4
  376.  
  377. function chatfunc(text,waitt)
  378. local chat = coroutine.wrap(function()
  379. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  380. Character:FindFirstChild("TalkingBillBoard").Parent = nil
  381. end
  382. local naeeym2 = Instance.new("BillboardGui",Character)
  383. naeeym2.Size = UDim2.new(0,100,0,40)
  384. naeeym2.StudsOffset = Vector3.new(0,2,0)
  385. naeeym2.Adornee = Character.Head
  386. naeeym2.Name = "TalkingBillBoard"
  387. naeeym2.AlwaysOnTop = true
  388. local tecks2 = Instance.new("TextLabel",naeeym2)
  389. tecks2.BackgroundTransparency = 1
  390. tecks2.BorderSizePixel = 0
  391. tecks2.Text = ""
  392. tecks2.Font = "Fantasy"
  393. tecks2.TextSize = 30
  394. tecks2.TextStrokeTransparency = 1
  395. tecks2.TextColor3 = SKILLTEXTCOLOR
  396. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  397. tecks2.Size = UDim2.new(1,0,0.5,0)
  398. for i = 1,string.len(text),1 do
  399. if naeeym2.Parent ~= nil then
  400. tecks2.Text = string.sub(text,1,i)
  401. speak.PlaybackSpeed = (math.random(8,9)/10)
  402. speak:Play()
  403. Swait(3)
  404. end
  405. end
  406. wait(waitt)
  407. coroutine.resume(coroutine.create(function()
  408. for i = 1, 10 do
  409. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  410. Swait()
  411. end
  412. naeeym2:Destroy()
  413. end))
  414. end)
  415. chat()
  416. end
  417.  
  418. --//=================================\\
  419. --|| DAMAGING
  420. --\\=================================//
  421.  
  422. function goldify(hit)
  423. local GOLDNAMES = {"Gold","Shiny rock","Munz","$$"}
  424. hit.Anchored = false
  425. hit.CanCollide = true
  426. hit.Parent = workspace
  427. hit.Name = GOLDNAMES[MRANDOM(1,#GOLDNAMES)]
  428. hit.Material = "Glacier"
  429. hit.BrickColor = BRICKC("Dark orange")
  430. if hit:FindFirstChildOfClass("SpecialMesh") then
  431. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  432. mesh.TextureId = ""
  433. end
  434. if hit:FindFirstChildOfClass("Decal") then
  435. local mesh = hit:FindFirstChildOfClass("Decal")
  436. mesh:remove()
  437. end
  438. if hit.ClassName == "MeshPart" then
  439. hit.TextureID = ""
  440. end
  441. if hit.ClassName == "UnionOperation" then
  442. hit.UsePartColor = true
  443. end
  444. end
  445.  
  446. function turntogold(hit)
  447. if hit.Parent ~= Character then
  448. if hit.Parent ~= workspace then
  449. print("My gold...")
  450. local body = hit.Parent:GetChildren()
  451. for part = 1, #body do
  452. local child = body[part]
  453. if child.ClassName == "Part" or child.ClassName == "MeshPart" or child.ClassName == "UnionOperation" then
  454. if child.Name == "Head" then
  455. CreateSound("1037197054", child, 2, 1)
  456. end
  457. goldify(child)
  458. elseif child.ClassName == "Accessory" or child.ClassName == "Hat" then
  459. if child:FindFirstChild("Handle") then
  460. goldify(child.Handle)
  461. end
  462. end
  463. end
  464. else
  465. goldify(hit)
  466. end
  467. end
  468. end
  469.  
  470. --//=================================\\
  471. --|| ATTACK FUNCTIONS AND STUFF
  472. --\\=================================//
  473.  
  474. local hit = Torso.Touched:Connect(function(hit)
  475. if hit.Parent:FindFirstChild("Humanoid") then
  476. turntogold(hit)
  477. end
  478. end)
  479. local hit = RightArm.Touched:Connect(function(hit)
  480. if hit.Parent:FindFirstChild("Humanoid") then
  481. turntogold(hit)
  482. end
  483. end)
  484. local hit = LeftArm.Touched:Connect(function(hit)
  485. if hit.Parent:FindFirstChild("Humanoid") then
  486. turntogold(hit)
  487. end
  488. end)
  489. local hit = RightLeg.Touched:Connect(function(hit)
  490. if hit.Parent:FindFirstChild("Humanoid") then
  491. turntogold(hit)
  492. end
  493. end)
  494. local hit = LeftLeg.Touched:Connect(function(hit)
  495. if hit.Parent:FindFirstChild("Humanoid") then
  496. turntogold(hit)
  497. end
  498. end)
  499. local hit = Head.Touched:Connect(function(hit)
  500. if hit.Parent:FindFirstChild("Humanoid") then
  501. turntogold(hit)
  502. end
  503. end)
  504.  
  505. --//=================================\\
  506. --|| ASSIGN THINGS TO KEYS
  507. --\\=================================//
  508.  
  509. function KeyDown(Key)
  510. if Key == "t" and ATTACK == false then
  511. chatfunc("Oh why hello there!",100)
  512. Swait(150)
  513. chatfunc("Wanna Join the White Crusaders?",5)
  514. Swait(150)
  515. chatfunc("No?",1)
  516. Swait(45)
  517. chatfunc("Well then, join the niggers burning in hell.",1)
  518. end
  519. end
  520.  
  521. function KeyUp(Key)
  522. end
  523.  
  524. Mouse.KeyDown:connect(function(NEWKEY)
  525. KeyDown(NEWKEY)
  526. end)
  527. Mouse.KeyUp:connect(function(NEWKEY)
  528. KeyUp(NEWKEY)
  529. end)
  530.  
  531.  
  532. --//=================================\\
  533. --\\=================================//
  534.  
  535.  
  536. function unanchor()
  537. if UNANCHOR == true then
  538. g = Character:GetChildren()
  539. for i = 1, #g do
  540. if g[i].ClassName == "Part" then
  541. g[i].Anchored = false
  542. end
  543. end
  544. end
  545. end
  546.  
  547.  
  548. --//=================================\\
  549. --|| WRAP THE WHOLE SCRIPT UP
  550. --\\=================================//
  551.  
  552.  
  553. ANIMATE.Parent = nil
  554. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  555. IDLEANIMATION:Play()
  556.  
  557. while true do
  558. Swait()
  559. SINE = SINE + CHANGE
  560. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  561. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  562. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  563. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  564. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  565. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  566. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  567. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  568. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  569. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  570. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  571. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  572. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  573. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  574. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  575. end
  576. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  577. ANIM = "Jump"
  578. if ATTACK == false then
  579. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  580. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  581. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  582. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  583. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  584. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  585. end
  586. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  587. ANIM = "Fall"
  588. if ATTACK == false then
  589. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  590. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  591. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  592. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  593. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  594. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  595. end
  596. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  597. ANIM = "Idle"
  598. if ATTACK == false then
  599. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  600. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  601. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  602. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  603. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  604. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  605. end
  606. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  607. ANIM = "Walk"
  608. WALK = WALK + 1 / Animation_Speed
  609. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  610. WALK = 0
  611. if WALKINGANIM == true then
  612. WALKINGANIM = false
  613. elseif WALKINGANIM == false then
  614. WALKINGANIM = true
  615. end
  616. end
  617. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  618. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  619. if ATTACK == false then
  620. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  621. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  622. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  623. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  624. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  625. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  626. end
  627. end
  628. if #Effects2>0 then
  629. for e=1,#Effects2 do
  630. if Effects2[e]~=nil then
  631. local Thing=Effects2[e]
  632. if Thing~=nil then
  633. local Part=Thing[1]
  634. local Mode=Thing[2]
  635. local Delay=Thing[3]
  636. local IncX=Thing[4]
  637. local IncY=Thing[5]
  638. local IncZ=Thing[6]
  639. local Part2=Thing[8]
  640. if Thing[1].Transparency<=1 then
  641. if Thing[2]=="Block1" then
  642. Thing[1].CFrame=Thing[1].CFrame
  643. Mesh=Thing[1].Mesh
  644. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  645. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  646. elseif Thing[2]=="Cylinder" then
  647. Mesh=Thing[1].Mesh
  648. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  649. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  650. elseif Thing[2]=="Blood" then
  651. Mesh=Thing[7]
  652. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  653. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  654. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  655. elseif Thing[2]=="Elec" then
  656. Mesh=Thing[1].Mesh
  657. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  658. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  659. elseif Thing[2]=="Disappear" then
  660. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  661. end
  662. else
  663. Part.Parent=nil
  664. table.remove(Effects2,e)
  665. end
  666. end
  667. end
  668. end
  669. end
  670. unanchor()
  671. if Rooted == false then
  672. Disable_Jump = false
  673. Humanoid.WalkSpeed = Speed
  674. elseif Rooted == true then
  675. Disable_Jump = true
  676. Humanoid.WalkSpeed = 0
  677. end
  678. end
  679.  
  680. --//=================================\\
  681. --\\=================================//
  682.  
  683.  
  684.  
  685.  
  686.  
  687. --//====================================================\\--
  688. --|| END OF SCRIPT
  689. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement