EFTPMC

HatKid

Nov 1st, 2020
6,122
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.53 KB | None | 1 0
  1. --//====================================================\\--
  2. --|| DOXX SOCIETY
  3. --\\====================================================//--
  4. game["Run Service"].RenderStepped:connect(function()
  5. settings().Physics.AllowSleep = false
  6. setsimulationradius(math.huge*math.huge,math.huge*math.huge)
  7. end)
  8.  
  9. local s = Instance.new("Sound")
  10.  
  11. s.Name = "Sound"
  12. s.SoundId = "https://web.roblox.com/asset/?id=221057812"
  13. s.Volume = 1
  14. s.Looped = false
  15. s.archivable = false
  16.  
  17. s.Parent = game.Workspace
  18.  
  19. wait(1)
  20.  
  21. s:play()
  22. game:GetService("StarterGui"):SetCore("SendNotification", {
  23. Title = "DOXX SOCIETY";
  24. Text = "Script loaded.";
  25. Icon = "rbxthumb://type=Asset&id=4360506542&w=150&h=150"})
  26. Duration = 29;
  27. Bypass = "death"
  28. loadstring(game:GetObjects("rbxassetid://5699458347")[1].Source)() --Death
  29. --loadstring(game:GetObjects("rbxassetid://5698675958")[1].Source)() --Devx
  30. wait(1)
  31. Player = game:GetService("Players").LocalPlayer
  32. Mouse = Player:GetMouse()
  33. PlayerGui = Player.PlayerGui
  34. Cam = workspace.CurrentCamera
  35. Backpack = Player.Backpack
  36. --Character = Player.Character
  37. Character = workspace.non --Death
  38. Humanoid = Character.Humanoid
  39. RootPart = Character["HumanoidRootPart"]
  40. Torso = Character["Torso"]
  41. Head = Character["Head"]
  42. RightArm = Character["Right Arm"]
  43. LeftArm = Character["Left Arm"]
  44. RightLeg = Character["Right Leg"]
  45. LeftLeg = Character["Left Leg"]
  46. RootJoint = RootPart["RootJoint"]
  47. Neck = Torso["Neck"]
  48. RightShoulder = Torso["Right Shoulder"]
  49. LeftShoulder = Torso["Left Shoulder"]
  50. RightHip = Torso["Right Hip"]
  51. LeftHip = Torso["Left Hip"]
  52. local TIME = 0
  53. local sick = Instance.new("Sound",Torso)
  54. IT = Instance.new
  55. CF = CFrame.new
  56. VT = Vector3.new
  57. RAD = math.rad
  58. C3 = Color3.new
  59. UD2 = UDim2.new
  60. BRICKC = BrickColor.new
  61. ANGLES = CFrame.Angles
  62. EULER = CFrame.fromEulerAnglesXYZ
  63. COS = math.cos
  64. ACOS = math.acos
  65. SIN = math.sin
  66. ASIN = math.asin
  67. ABS = math.abs
  68. MRANDOM = math.random
  69. FLOOR = math.floor
  70.  
  71. --//=================================\\
  72. --|| Value shit things
  73. --\\=================================//
  74.  
  75. Animation_Speed = 3
  76. local FORCERESET = false
  77. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  78. local SIZE = 1
  79. local Speed = 24
  80. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  81. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  82. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  83. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  84. local DAMAGEMULTIPLIER = 1
  85. local ANIM = "Idle"
  86. local ATTACK = false
  87. local EQUIPPED = false
  88. local HOLD = false
  89. local COMBO = 1
  90. local Rooted = false
  91. local SINE = 0
  92. local KEYHOLD = false
  93. local CHANGE = 2 / Animation_Speed
  94. local WALKINGANIM = false
  95. local VALUE1 = false
  96. local VALUE2 = false
  97. local ROBLOXIDLEANIMATION = IT("Animation")
  98. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  99. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  100. --ROBLOXIDLEANIMATION.Parent = Humanoid
  101. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  102. WEAPONGUI.Name = "BanishV3Gui"
  103. local Weapon = IT("Model")
  104. Weapon.Name = "Adds"
  105. local Effects = IT("Folder", Weapon)
  106. Effects.Name = "Effects"
  107. local ANIMATOR = Humanoid.Animator
  108. local ANIMATE = Character:FindFirstChild("Animate")
  109. local UNANCHOR = true
  110. local TOBANISH = {}
  111. Player_Size = 1
  112. local kan = Instance.new("Sound",Character)
  113. kan.Volume = 1.25
  114. kan.TimePosition = 0
  115. kan.PlaybackSpeed = 1
  116. kan.Pitch = 1
  117. kan.SoundId = "rbxassetid://614032233"
  118. kan.Name = "wrecked"
  119. kan.Looped = true
  120. kan:Play()
  121. local Mode = 1
  122. local currentThemePlaying = kan.SoundId
  123. local currentPitch = kan.Pitch
  124. local currentVol = kan.Volume
  125. --//=================================\\
  126. --\\=================================//
  127. for i,v in pairs(Character:children()) do
  128. if v:IsA("Accessory") then
  129. v:Destroy()
  130. end
  131. end
  132.  
  133. --DevX Society
  134.  
  135. local s = Instance.new("Sound")
  136.  
  137. s.Name = "Sound"
  138. s.SoundId = "https://web.roblox.com/asset/?id=221057812"
  139. s.Volume = 1
  140. s.Looped = false
  141. s.archivable = false
  142.  
  143. s.Parent = game.Workspace
  144.  
  145. wait(1)
  146.  
  147. s:play()
  148. game:GetService("StarterGui"):SetCore("SendNotification", {
  149. Title = "DEVX SOCIETY",
  150. Text = "Script loaded.",
  151. Icon = "rbxassetid://5701670812"})
  152. Duration = 29;
  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. --\\=================================//
  192.  
  193. --//=================================\\
  194. --|| MOST FUNCTIONS
  195. --\\=================================//
  196.  
  197. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  198. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  199. end
  200.  
  201. function PositiveAngle(NUMBER)
  202. if NUMBER >= 0 then
  203. NUMBER = 0
  204. end
  205. return NUMBER
  206. end
  207.  
  208. function NegativeAngle(NUMBER)
  209. if NUMBER <= 0 then
  210. NUMBER = 0
  211. end
  212. return NUMBER
  213. end
  214.  
  215. function Swait(NUMBER)
  216. if NUMBER == 0 or NUMBER == nil then
  217. ArtificialHB.Event:wait()
  218. else
  219. for i = 1, NUMBER do
  220. ArtificialHB.Event:wait()
  221. end
  222. end
  223. end
  224.  
  225. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  226. local NEWMESH = IT(MESH)
  227. if MESH == "SpecialMesh" then
  228. NEWMESH.MeshType = MESHTYPE
  229. if MESHID ~= "nil" and MESHID ~= "" then
  230. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  231. end
  232. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  233. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  234. end
  235. end
  236. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  237. NEWMESH.Scale = SCALE
  238. NEWMESH.Parent = PARENT
  239. return NEWMESH
  240. end
  241.  
  242. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  243. local NEWPART = IT("Part")
  244. NEWPART.formFactor = FORMFACTOR
  245. NEWPART.Reflectance = REFLECTANCE
  246. NEWPART.Transparency = TRANSPARENCY
  247. NEWPART.CanCollide = false
  248. NEWPART.Locked = true
  249. NEWPART.Anchored = true
  250. if ANCHOR == false then
  251. NEWPART.Anchored = false
  252. end
  253. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  254. NEWPART.Name = NAME
  255. NEWPART.Size = SIZE
  256. NEWPART.Position = Torso.Position
  257. NEWPART.Material = MATERIAL
  258. NEWPART:BreakJoints()
  259. NEWPART.Parent = PARENT
  260. return NEWPART
  261. end
  262.  
  263. local function weldBetween(a, b)
  264. local weldd = IT("Weld")
  265. weldd.Part0 = a
  266. weldd.Part1 = b
  267. weldd.C0 = CF()
  268. weldd.C1 = b.CFrame:inverse() * a.CFrame
  269. weldd.Parent = a
  270. return weldd
  271. end
  272.  
  273.  
  274. function QuaternionFromCFrame(cf)
  275. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  276. local trace = m00 + m11 + m22
  277. if trace > 0 then
  278. local s = math.sqrt(1 + trace)
  279. local recip = 0.5 / s
  280. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  281. else
  282. local i = 0
  283. if m11 > m00 then
  284. i = 1
  285. end
  286. if m22 > (i == 0 and m00 or m11) then
  287. i = 2
  288. end
  289. if i == 0 then
  290. local s = math.sqrt(m00 - m11 - m22 + 1)
  291. local recip = 0.5 / s
  292. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  293. elseif i == 1 then
  294. local s = math.sqrt(m11 - m22 - m00 + 1)
  295. local recip = 0.5 / s
  296. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  297. elseif i == 2 then
  298. local s = math.sqrt(m22 - m00 - m11 + 1)
  299. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  300. end
  301. end
  302. end
  303.  
  304. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  305. local xs, ys, zs = x + x, y + y, z + z
  306. local wx, wy, wz = w * xs, w * ys, w * zs
  307. local xx = x * xs
  308. local xy = x * ys
  309. local xz = x * zs
  310. local yy = y * ys
  311. local yz = y * zs
  312. local zz = z * zs
  313. 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))
  314. end
  315.  
  316. function QuaternionSlerp(a, b, t)
  317. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  318. local startInterp, finishInterp;
  319. if cosTheta >= 0.0001 then
  320. if (1 - cosTheta) > 0.0001 then
  321. local theta = ACOS(cosTheta)
  322. local invSinTheta = 1 / SIN(theta)
  323. startInterp = SIN((1 - t) * theta) * invSinTheta
  324. finishInterp = SIN(t * theta) * invSinTheta
  325. else
  326. startInterp = 1 - t
  327. finishInterp = t
  328. end
  329. else
  330. if (1 + cosTheta) > 0.0001 then
  331. local theta = ACOS(-cosTheta)
  332. local invSinTheta = 1 / SIN(theta)
  333. startInterp = SIN((t - 1) * theta) * invSinTheta
  334. finishInterp = SIN(t * theta) * invSinTheta
  335. else
  336. startInterp = t - 1
  337. finishInterp = t
  338. end
  339. end
  340. 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
  341. end
  342.  
  343. function Clerp(a, b, t)
  344. local qa = {QuaternionFromCFrame(a)}
  345. local qb = {QuaternionFromCFrame(b)}
  346. local ax, ay, az = a.x, a.y, a.z
  347. local bx, by, bz = b.x, b.y, b.z
  348. local _t = 1 - t
  349. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  350. end
  351.  
  352. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  353. local frame = IT("Frame")
  354. frame.BackgroundTransparency = TRANSPARENCY
  355. frame.BorderSizePixel = BORDERSIZEPIXEL
  356. frame.Position = POSITION
  357. frame.Size = SIZE
  358. frame.BackgroundColor3 = COLOR
  359. frame.BorderColor3 = BORDERCOLOR
  360. frame.Name = NAME
  361. frame.Parent = PARENT
  362. return frame
  363. end
  364.  
  365. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  366. local label = IT("TextLabel")
  367. label.BackgroundTransparency = 1
  368. label.Size = UD2(1, 0, 1, 0)
  369. label.Position = UD2(0, 0, 0, 0)
  370. label.TextColor3 = TEXTCOLOR
  371. label.TextStrokeTransparency = STROKETRANSPARENCY
  372. label.TextTransparency = TRANSPARENCY
  373. label.FontSize = TEXTFONTSIZE
  374. label.Font = TEXTFONT
  375. label.BorderSizePixel = BORDERSIZEPIXEL
  376. label.TextScaled = false
  377. label.Text = TEXT
  378. label.Name = NAME
  379. label.Parent = PARENT
  380. return label
  381. end
  382.  
  383. function NoOutlines(PART)
  384. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  385. end
  386.  
  387. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  388. local NEWWELD = IT(TYPE)
  389. NEWWELD.Part0 = PART0
  390. NEWWELD.Part1 = PART1
  391. NEWWELD.C0 = C0
  392. NEWWELD.C1 = C1
  393. NEWWELD.Parent = PARENT
  394. return NEWWELD
  395. end
  396.  
  397. local S = IT("Sound")
  398. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  399. local NEWSOUND = nil
  400. coroutine.resume(coroutine.create(function()
  401. NEWSOUND = S:Clone()
  402. NEWSOUND.Parent = PARENT
  403. NEWSOUND.Volume = VOLUME
  404. NEWSOUND.Pitch = PITCH
  405. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  406. NEWSOUND:play()
  407. if DOESLOOP == true then
  408. NEWSOUND.Looped = true
  409. else
  410. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  411. NEWSOUND:remove()
  412. end
  413. end))
  414. return NEWSOUND
  415. end
  416.  
  417. function CFrameFromTopBack(at, top, back)
  418. local right = top:Cross(back)
  419. 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)
  420. end
  421.  
  422. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  423. function WACKYEFFECT(Table)
  424. local TYPE = (Table.EffectType or "Sphere")
  425. local SIZE = (Table.Size or VT(1,1,1))
  426. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  427. local TRANSPARENCY = (Table.Transparency or 0)
  428. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  429. local CFRAME = (Table.CFrame or Torso.CFrame)
  430. local MOVEDIRECTION = (Table.MoveToPos or nil)
  431. local ROTATION1 = (Table.RotationX or 0)
  432. local ROTATION2 = (Table.RotationY or 0)
  433. local ROTATION3 = (Table.RotationZ or 0)
  434. local MATERIAL = (Table.Material or "Neon")
  435. local COLOR = (Table.Color or C3(1,1,1))
  436. local TIME = (Table.Time or 45)
  437. local SOUNDID = (Table.SoundID or nil)
  438. local SOUNDPITCH = (Table.SoundPitch or nil)
  439. local SOUNDVOLUME = (Table.SoundVolume or nil)
  440. coroutine.resume(coroutine.create(function()
  441. local PLAYSSOUND = false
  442. local SOUND = nil
  443. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  444. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  445. PLAYSSOUND = true
  446. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  447. end
  448. EFFECT.Color = COLOR
  449. local MSH = nil
  450. if TYPE == "Sphere" then
  451. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  452. elseif TYPE == "Block" then
  453. MSH = IT("BlockMesh",EFFECT)
  454. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  455. elseif TYPE == "Wave" then
  456. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  457. elseif TYPE == "Ring" then
  458. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  459. elseif TYPE == "Slash" then
  460. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  461. elseif TYPE == "Round Slash" then
  462. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  463. elseif TYPE == "Swirl" then
  464. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  465. elseif TYPE == "Skull" then
  466. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  467. elseif TYPE == "Crystal" then
  468. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  469. end
  470. if MSH ~= nil then
  471. local MOVESPEED = nil
  472. if MOVEDIRECTION ~= nil then
  473. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  474. end
  475. local GROWTH = SIZE - ENDSIZE
  476. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  477. if TYPE == "Block" then
  478. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  479. else
  480. EFFECT.CFrame = CFRAME
  481. end
  482. for LOOP = 1, TIME+1 do
  483. Swait()
  484. MSH.Scale = MSH.Scale - GROWTH/TIME
  485. if TYPE == "Wave" then
  486. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  487. end
  488. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  489. if TYPE == "Block" then
  490. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  491. else
  492. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  493. end
  494. if MOVEDIRECTION ~= nil then
  495. local ORI = EFFECT.Orientation
  496. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  497. EFFECT.Orientation = ORI
  498. end
  499. end
  500. if PLAYSSOUND == false then
  501. EFFECT:remove()
  502. else
  503. SOUND.Stopped:Connect(function()
  504. EFFECT:remove()
  505. end)
  506. end
  507. else
  508. if PLAYSSOUND == false then
  509. EFFECT:remove()
  510. else
  511. repeat Swait() until SOUND.Playing == false
  512. EFFECT:remove()
  513. end
  514. end
  515. end))
  516. end
  517.  
  518. function MakeForm(PART,TYPE)
  519. if TYPE == "Cyl" then
  520. local MSH = IT("CylinderMesh",PART)
  521. elseif TYPE == "Ball" then
  522. local MSH = IT("SpecialMesh",PART)
  523. MSH.MeshType = "Sphere"
  524. elseif TYPE == "Wedge" then
  525. local MSH = IT("SpecialMesh",PART)
  526. MSH.MeshType = "Wedge"
  527. end
  528. end
  529.  
  530. function SpawnTrail(FROM,TO,BIG)
  531. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  532. MakeForm(TRAIL,"Cyl")
  533. local DIST = (FROM - TO).Magnitude
  534. if BIG == true then
  535. TRAIL.Size = VT(0.5,DIST,0.5)
  536. else
  537. TRAIL.Size = VT(0.25,DIST,0.25)
  538. end
  539. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  540. coroutine.resume(coroutine.create(function()
  541. for i = 1, 5 do
  542. Swait()
  543. TRAIL.Transparency = TRAIL.Transparency + 0.1
  544. end
  545. TRAIL:remove()
  546. end))
  547. end
  548.  
  549. Debris = game:GetService("Debris")
  550.  
  551. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  552. local DIRECTION = CF(StartPos,EndPos).lookVector
  553. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  554. end
  555.  
  556. function turnto(position)
  557. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  558. end
  559. local asd = Instance.new("ParticleEmitter")
  560. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  561. asd.LightEmission = .1
  562. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  563. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  564. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  565. asd.Transparency = bbb
  566. asd.Size = aaa
  567. asd.ZOffset = .9
  568. asd.Acceleration = Vector3.new(0, -15, 0)
  569. asd.LockedToPart = false
  570. asd.EmissionDirection = "Back"
  571. asd.Lifetime = NumberRange.new(1, 2)
  572. asd.Rotation = NumberRange.new(-100, 100)
  573. asd.RotSpeed = NumberRange.new(-100, 100)
  574. asd.Speed = NumberRange.new(10)
  575. asd.Enabled = false
  576. asd.VelocitySpread = 999
  577.  
  578. function getbloody(victim,amount)
  579. local PART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Blood", victim.Size)
  580. PART.CFrame = victim.CFrame
  581. local HITPLAYERSOUNDS = {"356551938","264486467"}
  582. Debris:AddItem(PART,5)
  583. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  584. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  585. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  586. local prtcl = asd:Clone()
  587. prtcl.Parent = PART
  588. prtcl:Emit(amount*10)
  589. end
  590.  
  591. local Particle = IT("ParticleEmitter",nil)
  592. Particle.Enabled = false
  593. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  594. Particle.LightEmission = 0.5
  595. Particle.Rate = 150
  596. Particle.ZOffset = 1
  597. Particle.Rotation = NumberRange.new(-180, 180)
  598. Particle.RotSpeed = NumberRange.new(-180, 180)
  599. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  600. Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
  601.  
  602. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  603. function ParticleEmitter(Table)
  604. local PRTCL = Particle:Clone()
  605. local Speed = Table.Speed or 5
  606. local Drag = Table.Drag or 0
  607. local Size1 = Table.Size1 or 1
  608. local Size2 = Table.Size2 or 5
  609. local Lifetime1 = Table.Lifetime1 or 1
  610. local Lifetime2 = Table.Lifetime2 or 1.5
  611. local Parent = Table.Parent or Torso
  612. local Emit = Table.Emit or 100
  613. local Offset = Table.Offset or 360
  614. local Acel = Table.Acel or VT(0,0,0)
  615. local Enabled = Table.Enabled or false
  616. PRTCL.Parent = Parent
  617. PRTCL.Size = NumberSequence.new(Size1,Size2)
  618. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  619. PRTCL.Speed = NumberRange.new(Speed)
  620. PRTCL.VelocitySpread = Offset
  621. PRTCL.Drag = Drag
  622. PRTCL.Acceleration = Acel
  623. if Enabled == false then
  624. PRTCL:Emit(Emit)
  625. Debris:AddItem(PRTCL,Lifetime2)
  626. else
  627. PRTCL.Enabled = true
  628. end
  629. return PRTCL
  630. end
  631.  
  632. function unanchor()
  633. if UNANCHOR == true then
  634. g = Character:GetChildren()
  635. for i = 1, #g do
  636. if g[i].ClassName == "Part" then
  637. g[i].Anchored = false
  638. end
  639. end
  640. end
  641. end
  642.  
  643. function newTheme(ID,timepos,pitch,vol)
  644. local kanz = kan
  645. --kanz:Stop()
  646. kanz.Volume = vol
  647. --kanz.TimePosition = timepos
  648. kanz.PlaybackSpeed = pitch
  649. kanz.Pitch = pitch
  650. kanz.SoundId = ID
  651. kanz.Name = "wrecked"
  652. kanz.Looped = true
  653. currentThemePlaying = kanz.SoundId
  654. currentVol = kanz.Volume
  655. currentPitch = kanz.Pitch
  656. --kanz:Play()
  657. --coroutine.resume(coroutine.create(function()
  658. --wait(0.05)
  659. --end))
  660. end
  661. newTheme("rbxassetid://1191722766",0,1,1)
  662.  
  663. --//=================================\\
  664. --|| Clothing,Meshes,etc
  665. --\\=================================//
  666.  
  667.  
  668.  
  669. --//=================================\\
  670. --|| Attacks
  671. --\\=================================//
  672. function switch()
  673. ATTACK = true
  674. Rooted = true
  675. CreateSound("363808674",workspace,8,1,false)
  676. for i=0, 1.5, 0.1 / Animation_Speed do
  677. Swait()
  678. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(18), RAD(0)), 1 / Animation_Speed)
  679. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  680. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  681. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  682. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  683. end
  684. CreateSound("363808674",workspace,8,1,false)
  685. for i=0, 1.5, 0.1 / Animation_Speed do
  686. Swait()
  687. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-18), RAD(0)), 1 / Animation_Speed)
  688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(24)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  690. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  691. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  692. end
  693. if Mode == 1 and Mode ~= 2 then
  694. Mode = 2
  695. Speed = 38
  696. Humanoid.WalkSpeed = Speed
  697. newTheme("rbxassetid://228255592",0,1,1)
  698. elseif Mode == 2 and Mode ~= 1 then
  699. Mode = 1
  700. Speed = 24
  701. Humanoid.WalkSpeed = Speed
  702. newTheme("rbxassetid://1191722766",0,1,1)
  703. end
  704. ATTACK = false
  705. Rooted = false
  706. end
  707.  
  708. function Spinning_Attack()
  709. ATTACK = true
  710. CreatePart("Block",LeftArm,"Plastic",0,1,BrickColor.new(0,0,0),"HitBox",Vector3.new(1,2,1),false)
  711. local HitBox = LeftArm.HitBox
  712. weldBetween(HitBox, LeftArm)
  713. Humanoid.WalkSpeed = 3.01
  714. for i = 0, 1.2, 0.1 do
  715. Swait()
  716. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(-65)), 0.3)
  717. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  718. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  719. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-35), math.rad(0), math.rad(-10)), 0.3)
  720. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3)
  721. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3)
  722. end
  723. for i = 0, 4.6, 0.1 do
  724. Swait()
  725. CreateSound("2304904662",workspace,3,1,false)
  726. HitBox.Touched:connect(function(hit)
  727. if hit.Parent and hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass('Humanoid') then
  728. hit.Parent:FindFirstChildOfClass('Humanoid').Health = 1 - 9999e+999
  729. end
  730. end)
  731. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(65 + 255.45 * i)), 0.3)
  732. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  733. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(0), math.rad(47)), 0.1)
  734. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(-90), math.rad(-47)), 0.3)
  735. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3)
  736. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-4.5), math.rad(0), math.rad(30)), 0.3)
  737. end
  738. ATTACK = false
  739. Humanoid.WalkSpeed = 8
  740. HitBox:Destroy()
  741. end
  742.  
  743. --//=================================\\
  744. --|| Key Functions
  745. --\\=================================//
  746. Mouse.KeyDown:connect(function(k)
  747. if(ATTACK)then return end
  748. if(k == 't')then
  749. switch()
  750. elseif(k == 'v')then
  751. Spinning_Attack()
  752. end
  753. end)
  754. --//=================================\\
  755. --|| Animations
  756. --\\=================================//
  757.  
  758. local CONNECT = nil
  759.  
  760. while true do
  761. Swait()
  762. ANIMATE.Parent = nil
  763. if Character:FindFirstChildOfClass("Humanoid") == nil then
  764. Humanoid = IT("Humanoid",Character)
  765. end
  766. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  767. v:Stop();
  768. end
  769. SINE = SINE + CHANGE
  770. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  771. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  772. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  773. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 12)
  774. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  775. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  776. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  777. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  778. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  779. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  780. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  781. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  782. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  783. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  784. end
  785. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  786. ANIM = "Jump"
  787. if ATTACK == false then
  788. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  789. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  790. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  791. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  792. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  793. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  794. end
  795. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  796. ANIM = "Fall"
  797. if ATTACK == false then
  798. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  799. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  800. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  801. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  802. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  803. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  804. end
  805. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  806. ANIM = "Idle"
  807. if ATTACK == false and Mode == 1 then
  808. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  809. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  810. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(220), RAD(45), RAD(-75))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  811. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  812. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  813. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  814. end
  815. if Mode == 2 then
  816. ANIM = "Idle"
  817. RightHip.C0=Clerp(RightHip.C0,CF(1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(25 - 2 * math.cos(SINE / 32))),.1)
  818. LeftHip.C0=Clerp(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(-25 + 2 * math.cos(SINE / 32))),.1)
  819. RootJoint.C0=Clerp(RootJoint.C0,ROOTC0*CF(0,-0.25 + 0.02 * math.cos(SINE / 32),-0.1 + 0.05 * math.cos(SINE / 32))*ANGLES(math.rad(25 - 2 * math.cos(SINE / 32)),math.rad(0),math.rad(0)),.1)
  820. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  821. RightShoulder.C0=Clerp(RightShoulder.C0,CF(1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 + 5 * math.cos(SINE / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(SINE / 53)),math.rad(1 + 3 * math.cos(SINE / 45))),.1)
  822. LeftShoulder.C0=Clerp(LeftShoulder.C0,CF(-1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 - 3 * math.cos(SINE / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(SINE / 55)),math.rad(-3 - 3 * math.cos(SINE / 45))),.1)
  823. end
  824. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  825. ANIM = "Walk"
  826. if ATTACK == false then
  827. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  828. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  829. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  830. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  831. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  832. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  833. end
  834. end
  835. unanchor()
  836. Humanoid.MaxHealth = "inf"
  837. Humanoid.Health = "inf"
  838. if Rooted == false then
  839. Disable_Jump = false
  840. Humanoid.WalkSpeed = Speed
  841. elseif Rooted == true then
  842. Disable_Jump = true
  843. Humanoid.WalkSpeed = 0
  844. end
  845. end
Add Comment
Please, Sign In to add comment