Advertisement
Infintyboy

Roblox Stone Script

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