oskdfoskofksdofk

Untitled

Mar 17th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --//====================================================\\--
  8. --|| CREATED BY SHACKLUSTER
  9. --\\====================================================//--
  10.  
  11.  
  12.  
  13. wait(0.2)
  14.  
  15.  
  16.  
  17. Player = game:GetService("Players").LocalPlayer
  18. local plr = game:GetService('Players').LocalPlayer
  19. local char = plr.Character
  20. PlayerGui = Player.PlayerGui
  21. Cam = workspace.CurrentCamera
  22. Backpack = Player.Backpack
  23. Character = Player.Character
  24. Humanoid = Character.Humanoid
  25. Mouse = Player:GetMouse()
  26. RootPart = Character["HumanoidRootPart"]
  27. Torso = Character["Torso"]
  28. Head = Character["Head"]
  29. RightArm = Character["Right Arm"]
  30. LeftArm = Character["Left Arm"]
  31. RightLeg = Character["Right Leg"]
  32. LeftLeg = Character["Left Leg"]
  33. RootJoint = RootPart["RootJoint"]
  34. Neck = Torso["Neck"]
  35. RightShoulder = Torso["Right Shoulder"]
  36. LeftShoulder = Torso["Left Shoulder"]
  37. RightHip = Torso["Right Hip"]
  38. LeftHip = Torso["Left Hip"]
  39. local chitter = Instance.new("Sound",Head)
  40. chitter.SoundId = "rbxassetid://342425836"
  41. chitter.Pitch = 1
  42. chitter.Volume = 2
  43. stab = false
  44. foodism = 1500
  45.  
  46. IT = Instance.new
  47. CF = CFrame.new
  48. VT = Vector3.new
  49. RAD = math.rad
  50. C3 = Color3.new
  51. UD2 = UDim2.new
  52. BRICKC = BrickColor.new
  53. ANGLES = CFrame.Angles
  54. EULER = CFrame.fromEulerAnglesXYZ
  55. COS = math.cos
  56. ACOS = math.acos
  57. SIN = math.sin
  58. ASIN = math.asin
  59. ABS = math.abs
  60. MRANDOM = math.random
  61. FLOOR = math.floor
  62.  
  63. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  64. local NEWMESH = IT(MESH)
  65. if MESH == "SpecialMesh" then
  66. NEWMESH.MeshType = MESHTYPE
  67. if MESHID ~= "nil" and MESHID ~= "" then
  68. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  69. end
  70. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  71. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  72. end
  73. end
  74. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  75. NEWMESH.Scale = SCALE
  76. NEWMESH.Parent = PARENT
  77. return NEWMESH
  78. end
  79. CV="Eggplant"
  80. p = game.Players.LocalPlayer
  81. char = p.Character
  82. local txt = Instance.new("BillboardGui", char)
  83. txt.Adornee = char .Head
  84. txt.Name = "_status"
  85. txt.Size = UDim2.new(2, 0, 1.2, 0)
  86. txt.StudsOffset = Vector3.new(-9, 8, 0)
  87. local text = Instance.new("TextLabel", txt)
  88. text.Size = UDim2.new(10, 0, 7, 0)
  89. text.FontSize = "Size24"
  90. text.TextScaled = true
  91. text.TextTransparency = 0
  92. text.BackgroundTransparency = 1
  93. text.TextTransparency = 0
  94. text.TextStrokeTransparency = 0
  95. text.Font = "Fantasy"
  96. text.TextStrokeColor3 = Color3.new(255,0,0)
  97.  
  98. v=Instance.new("Part")
  99. v.Name = "ColorBrick"
  100. v.Parent=p.Character
  101. v.FormFactor="Symmetric"
  102. v.Anchored=true
  103. v.CanCollide=false
  104. v.BottomSurface="Smooth"
  105. v.TopSurface="Smooth"
  106. v.Size=Vector3.new(10,5,3)
  107. v.Transparency=1
  108. v.CFrame=char.Torso.CFrame
  109. v.BrickColor=BrickColor.new(CV)
  110. v.Transparency=1
  111. text.TextColor3 = Color3.new(0,0,0)
  112. v.Shape="Block"
  113. wait()
  114. text.Text = "Loading Ghoul..."
  115. wait(2)
  116. text.Text = "Kaneki Ken!";
  117. wait(3)
  118. text.TextColor3 = Color3.new(255,0,0)
  119.  
  120.  
  121. char.Head.face.Texture = "rbxassetid://751185492"
  122. char:WaitForChild"Body Colors"
  123. char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  124. char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  125. char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  126. char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  127. char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  128. char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  129.  
  130. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  131. local NEWPART = IT("Part")
  132. NEWPART.formFactor = FORMFACTOR
  133. NEWPART.Reflectance = REFLECTANCE
  134. NEWPART.Transparency = TRANSPARENCY
  135. NEWPART.CanCollide = false
  136. NEWPART.Locked = true
  137. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  138. NEWPART.Name = NAME
  139. NEWPART.Size = SIZE
  140. NEWPART.Position = Torso.Position
  141. NEWPART.Material = MATERIAL
  142. NEWPART:BreakJoints()
  143. NEWPART.Parent = PARENT
  144. return NEWPART
  145. end
  146.  
  147. KG = Instance.new("Sound", game.Players.LocalPlayer.Character)
  148. KG.Volume = 3
  149. KG.SoundId = "rbxassetid://1590718550"
  150. KG.Looped = true
  151. KG:Play()
  152.  
  153. --//=================================\\
  154. --|| CUSTOMIZATION
  155. --\\=================================//
  156.  
  157. Class_Name = "Template"
  158. Weapon_Name = "Add-ons"
  159.  
  160. Custom_Colors = {
  161. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  162. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  163.  
  164. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  165. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  166. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  167. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  168. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  169.  
  170. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  171. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  172. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  173. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  174. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  175. }
  176.  
  177.  
  178. Player_Size = 1 --Size of the player.
  179. Animation_Speed = 3
  180. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  181.  
  182. local Speed = 16
  183. local Effects2 = {}
  184.  
  185. --//=================================\\
  186. --|| END OF CUSTOMIZATION
  187. --\\=================================//
  188.  
  189. local function weldBetween(a, b)
  190. local weldd = Instance.new("ManualWeld")
  191. weldd.Part0 = a
  192. weldd.Part1 = b
  193. weldd.C0 = CFrame.new()
  194. weldd.C1 = b.CFrame:inverse() * a.CFrame
  195. weldd.Parent = a
  196. return weldd
  197. end
  198.  
  199. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  200. local acs = Instance.new("Part")
  201. acs.CanCollide = false
  202. acs.Anchored = false
  203. acs.Size = Vector3.new(0,0,0)
  204. acs.CFrame = attachmentpart.CFrame
  205. acs.Parent = Character
  206. acs.BrickColor = color
  207. local meshs = Instance.new("SpecialMesh")
  208. meshs.MeshId = mesh
  209. meshs.TextureId = texture
  210. meshs.Parent = acs
  211. meshs.Scale = scale
  212. meshs.Offset = offset
  213. weldBetween(attachmentpart,acs)
  214. end
  215.  
  216. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  217. if TYPE == "Gem" then
  218. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  219. acs.Anchored = false
  220. acs.CanCollide = false
  221. acs.CFrame = PART.CFrame
  222. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  223. weldBetween(PART,acs)
  224. elseif TYPE == "Skull" then
  225. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  226. acs.Anchored = false
  227. acs.CanCollide = false
  228. acs.CFrame = PART.CFrame
  229. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  230. weldBetween(PART,acs)
  231. elseif TYPE == "Eye" then
  232. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  233. acs.Anchored = false
  234. acs.CanCollide = false
  235. acs.CFrame = PART.CFrame
  236. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  237. weldBetween(PART,acs)
  238. end
  239. end
  240.  
  241.  
  242.  
  243. --//=================================\\
  244. --|| USEFUL VALUES
  245. --\\=================================//
  246.  
  247. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  248. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  249. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  250. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  251. local CO1 = 0
  252. local CO2 = 0
  253. local CO3 = 0
  254. local CO4 = 0
  255. local CHANGEDEFENSE = 0
  256. local CHANGEDAMAGE = 0
  257. local CHANGEMOVEMENT = 0
  258. local ANIM = "Idle"
  259. local ATTACK = false
  260. local EQUIPPED = false
  261. local HOLD = false
  262. local COMBO = 1
  263. local LASTPOINT = nil
  264. local BLCF = nil
  265. local SCFR = nil
  266. local STAGGERHITANIM = false
  267. local STAGGERANIM = false
  268. local STUNANIM = false
  269. local CRITCHANCENUMBER = 0
  270. local IDLENUMBER = 0
  271. local DONUMBER = 0
  272. local HANDIDLE = false
  273. local SINE = 0
  274. local CHANGE = 2 / Animation_Speed
  275. local WALKINGANIM = false
  276. local WALK = 0
  277. local DISABLEJUMPING = false
  278. local HASBEENBLOCKED = false
  279. local STUNDELAYNUMBER = 0
  280. local MANADELAYNUMBER = 0
  281. local SECONDARYMANADELAYNUMBER = 0
  282. local ROBLOXIDLEANIMATION = IT("Animation")
  283. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  284. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  285. --ROBLOXIDLEANIMATION.Parent = Humanoid
  286. local WEAPONGUI = IT("ScreenGui", nil)
  287. WEAPONGUI.Name = "Weapon GUI"
  288. local WEAPONTOOL = IT("HopperBin", nil)
  289. WEAPONTOOL.Name = Weapon_Name
  290. local Weapon = IT("Model")
  291. Weapon.Name = Weapon_Name
  292. local Effects = IT("Folder", Weapon)
  293. Effects.Name = "Effects"
  294. local ANIMATOR = Humanoid.Animator
  295. local ANIMATE = Character.Animate
  296. local HITPLAYERSOUNDS = {"199149137", "199149186", "199149221", "199149235", "199149269", "199149297"}
  297. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  298. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  299. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  300. local UNANCHOR = true
  301.  
  302. --//=================================\\
  303. --\\=================================//
  304.  
  305. --//=================================\\
  306. --|| STATS
  307. --\\=================================//
  308.  
  309. if Character:FindFirstChild("Stats") ~= nil then
  310. Character:FindFirstChild("Stats").Parent = nil
  311. end
  312.  
  313. local Stats = IT("Folder", nil)
  314. Stats.Name = "Stats"
  315. local ChangeStat = IT("Folder", Stats)
  316. ChangeStat.Name = "ChangeStat"
  317. local Defense = IT("NumberValue", Stats)
  318. Defense.Name = "Defense"
  319. Defense.Value = 1
  320. local Movement = IT("NumberValue", Stats)
  321. Movement.Name = "Movement"
  322. Movement.Value = 1
  323. local Damage = IT("NumberValue", Stats)
  324. Damage.Name = "Damage"
  325. Damage.Value = 1
  326. local Mana = IT("NumberValue", Stats)
  327. Mana.Name = "Mana"
  328. Mana.Value = 0
  329. local SecondaryMana = IT("NumberValue", Stats)
  330. SecondaryMana.Name = "SecondaryMana"
  331. SecondaryMana.Value = 0
  332. local CanCrit = IT("BoolValue", Stats)
  333. CanCrit.Name = "CanCrit"
  334. CanCrit.Value = false
  335. local CritChance = IT("NumberValue", Stats)
  336. CritChance.Name = "CritChance"
  337. CritChance.Value = 20
  338. local CanPenetrateArmor = IT("BoolValue", Stats)
  339. CanPenetrateArmor.Name = "CanPenetrateArmor"
  340. CanPenetrateArmor.Value = false
  341. local AntiTeamKill = IT("BoolValue", Stats)
  342. AntiTeamKill.Name = "AntiTeamKill"
  343. AntiTeamKill.Value = false
  344. local Rooted = IT("BoolValue", Stats)
  345. Rooted.Name = "Rooted"
  346. Rooted.Value = false
  347. local Block = IT("BoolValue", Stats)
  348. Block.Name = "Block"
  349. Block.Value = false
  350. local RecentEnemy = IT("ObjectValue", Stats)
  351. RecentEnemy.Name = "RecentEnemy"
  352. RecentEnemy.Value = nil
  353. local StaggerHit = IT("BoolValue", Stats)
  354. StaggerHit.Name = "StaggerHit"
  355. StaggerHit.Value = false
  356. local Stagger = IT("BoolValue", Stats)
  357. Stagger.Name = "Stagger"
  358. Stagger.Value = false
  359. local Stun = IT("BoolValue", Stats)
  360. Stun.Name = "Stun"
  361. Stun.Value = false
  362. local StunValue = IT("NumberValue", Stats)
  363. StunValue.Name = "StunValue"
  364. StunValue.Value = 0
  365.  
  366.  
  367. --//=================================\\
  368. --\\=================================//
  369.  
  370.  
  371.  
  372.  
  373.  
  374. --//=================================\\
  375. --|| DEBUFFS / BUFFS
  376. --\\=================================//
  377.  
  378. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  379. DEFENSECHANGE1.Name = "ChangeDefense"
  380. DEFENSECHANGE1.Value = 0
  381.  
  382. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  383. MOVEMENTCHANGE1.Name = "ChangeMovement"
  384. MOVEMENTCHANGE1.Value = 0
  385.  
  386. --//=================================\\
  387. --\\=================================//
  388.  
  389.  
  390.  
  391.  
  392.  
  393. --//=================================\\
  394. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  395. --\\=================================//
  396.  
  397. ArtificialHB = Instance.new("BindableEvent", script)
  398. ArtificialHB.Name = "ArtificialHB"
  399.  
  400. script:WaitForChild("ArtificialHB")
  401.  
  402. frame = Frame_Speed
  403. tf = 0
  404. allowframeloss = false
  405. tossremainder = false
  406. lastframe = tick()
  407. script.ArtificialHB:Fire()
  408.  
  409. game:GetService("RunService").Heartbeat:connect(function(s, p)
  410. tf = tf + s
  411. if tf >= frame then
  412. if allowframeloss then
  413. script.ArtificialHB:Fire()
  414. lastframe = tick()
  415. else
  416. for i = 1, math.floor(tf / frame) do
  417. script.ArtificialHB:Fire()
  418. end
  419. lastframe = tick()
  420. end
  421. if tossremainder then
  422. tf = 0
  423. else
  424. tf = tf - frame * math.floor(tf / frame)
  425. end
  426. end
  427. end)
  428.  
  429. --//=================================\\
  430. --\\=================================//
  431.  
  432.  
  433.  
  434.  
  435.  
  436. --//=================================\\
  437. --|| SOME FUNCTIONS
  438. --\\=================================//
  439.  
  440. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  441. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  442. end
  443.  
  444. function PositiveAngle(NUMBER)
  445. if NUMBER >= 0 then
  446. NUMBER = 0
  447. end
  448. return NUMBER
  449. end
  450.  
  451. function NegativeAngle(NUMBER)
  452. if NUMBER <= 0 then
  453. NUMBER = 0
  454. end
  455. return NUMBER
  456. end
  457.  
  458. function Swait(NUMBER)
  459. if NUMBER == 0 or NUMBER == nil then
  460. ArtificialHB.Event:wait()
  461. else
  462. for i = 1, NUMBER do
  463. ArtificialHB.Event:wait()
  464. end
  465. end
  466. end
  467.  
  468. function QuaternionFromCFrame(cf)
  469. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  470. local trace = m00 + m11 + m22
  471. if trace > 0 then
  472. local s = math.sqrt(1 + trace)
  473. local recip = 0.5 / s
  474. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  475. else
  476. local i = 0
  477. if m11 > m00 then
  478. i = 1
  479. end
  480. if m22 > (i == 0 and m00 or m11) then
  481. i = 2
  482. end
  483. if i == 0 then
  484. local s = math.sqrt(m00 - m11 - m22 + 1)
  485. local recip = 0.5 / s
  486. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  487. elseif i == 1 then
  488. local s = math.sqrt(m11 - m22 - m00 + 1)
  489. local recip = 0.5 / s
  490. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  491. elseif i == 2 then
  492. local s = math.sqrt(m22 - m00 - m11 + 1)
  493. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  494. end
  495. end
  496. end
  497.  
  498. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  499. local xs, ys, zs = x + x, y + y, z + z
  500. local wx, wy, wz = w * xs, w * ys, w * zs
  501. local xx = x * xs
  502. local xy = x * ys
  503. local xz = x * zs
  504. local yy = y * ys
  505. local yz = y * zs
  506. local zz = z * zs
  507. 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))
  508. end
  509.  
  510. function QuaternionSlerp(a, b, t)
  511. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  512. local startInterp, finishInterp;
  513. if cosTheta >= 0.0001 then
  514. if (1 - cosTheta) > 0.0001 then
  515. local theta = ACOS(cosTheta)
  516. local invSinTheta = 1 / SIN(theta)
  517. startInterp = SIN((1 - t) * theta) * invSinTheta
  518. finishInterp = SIN(t * theta) * invSinTheta
  519. else
  520. startInterp = 1 - t
  521. finishInterp = t
  522. end
  523. else
  524. if (1 + cosTheta) > 0.0001 then
  525. local theta = ACOS(-cosTheta)
  526. local invSinTheta = 1 / SIN(theta)
  527. startInterp = SIN((t - 1) * theta) * invSinTheta
  528. finishInterp = SIN(t * theta) * invSinTheta
  529. else
  530. startInterp = t - 1
  531. finishInterp = t
  532. end
  533. end
  534. 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
  535. end
  536.  
  537. function Clerp(a, b, t)
  538. local qa = {QuaternionFromCFrame(a)}
  539. local qb = {QuaternionFromCFrame(b)}
  540. local ax, ay, az = a.x, a.y, a.z
  541. local bx, by, bz = b.x, b.y, b.z
  542. local _t = 1 - t
  543. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  544. end
  545.  
  546. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  547. local frame = IT("Frame")
  548. frame.BackgroundTransparency = TRANSPARENCY
  549. frame.BorderSizePixel = BORDERSIZEPIXEL
  550. frame.Position = POSITION
  551. frame.Size = SIZE
  552. frame.BackgroundColor3 = COLOR
  553. frame.BorderColor3 = BORDERCOLOR
  554. frame.Name = NAME
  555. frame.Parent = PARENT
  556. return frame
  557. end
  558.  
  559. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  560. local label = IT("TextLabel")
  561. label.BackgroundTransparency = 1
  562. label.Size = UD2(1, 0, 1, 0)
  563. label.Position = UD2(0, 0, 0, 0)
  564. label.TextColor3 = C3(255, 255, 255)
  565. label.TextStrokeTransparency = STROKETRANSPARENCY
  566. label.TextTransparency = TRANSPARENCY
  567. label.FontSize = TEXTFONTSIZE
  568. label.Font = TEXTFONT
  569. label.BorderSizePixel = BORDERSIZEPIXEL
  570. label.TextScaled = true
  571. label.Text = TEXT
  572. label.Name = NAME
  573. label.Parent = PARENT
  574. return label
  575. end
  576.  
  577. function NoOutlines(PART)
  578. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  579. end
  580.  
  581.  
  582. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  583. local NEWWELD = IT(TYPE)
  584. NEWWELD.Part0 = PART0
  585. NEWWELD.Part1 = PART1
  586. NEWWELD.C0 = C0
  587. NEWWELD.C1 = C1
  588. NEWWELD.Parent = PARENT
  589. return NEWWELD
  590. end
  591.  
  592. function CreateSound(ID, PARENT, VOLUME, PITCH)
  593. coroutine.resume(coroutine.create(function()
  594. local NEWSOUND = IT("Sound", PARENT)
  595. NEWSOUND.Volume = VOLUME
  596. NEWSOUND.Pitch = PITCH
  597. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  598. Swait()
  599. NEWSOUND:play()
  600. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  601. end))
  602. end
  603.  
  604. function CFrameFromTopBack(at, top, back)
  605. local right = top:Cross(back)
  606. 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)
  607. end
  608.  
  609. --//=================================\\
  610. --|| WEAPON CREATION
  611. --\\=================================//
  612.  
  613. --limbs--------------
  614.  
  615. local limb1a = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  616. local mesh = Instance.new("SpecialMesh",limb1a)
  617. mesh.MeshType = "Sphere"
  618. local limbweld1a = CreateWeldOrSnapOrMotor("Weld", limb1a, Torso, limb1a, CF(1 * Player_Size, 1.2 * Player_Size, 1 * Player_Size) * ANGLES(RAD(-45), RAD(25), RAD(0)), CF(0, 0, 0))
  619. local limb1b = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  620. local mesh = Instance.new("SpecialMesh",limb1b)
  621. mesh.MeshType = "Sphere"
  622. local limbweld1b = CreateWeldOrSnapOrMotor("Weld", limb1b, limb1a, limb1b, CF(0* Player_Size, 1.4 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  623. local limb1c = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  624. local mesh = Instance.new("SpecialMesh",limb1c)
  625. mesh.MeshType = "Sphere"
  626. local limbweld1c = CreateWeldOrSnapOrMotor("Weld", limb1c, limb1b, limb1c, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), CF(0, 0, 0))
  627.  
  628. local limb2a = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  629. local mesh = Instance.new("SpecialMesh",limb2a)
  630. mesh.MeshType = "Sphere"
  631. local limbweld2a = CreateWeldOrSnapOrMotor("Weld", limb2a, Torso, limb2a, CF(-1 * Player_Size, 1.2 * Player_Size, 1 * Player_Size) * ANGLES(RAD(-45), RAD(-25), RAD(0)), CF(0, 0, 0))
  632. local limb2b = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  633. local mesh = Instance.new("SpecialMesh",limb2b)
  634. mesh.MeshType = "Sphere"
  635. local limbweld2b = CreateWeldOrSnapOrMotor("Weld", limb2b, limb2a, limb2b, CF(0* Player_Size, 1.4 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  636. local limb2c = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  637. local mesh = Instance.new("SpecialMesh",limb2c)
  638. mesh.MeshType = "Sphere"
  639. local limbweld2c = CreateWeldOrSnapOrMotor("Weld", limb2c, limb2b, limb2c, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), CF(0, 0, 0))
  640.  
  641. local limb3a = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  642. local mesh = Instance.new("SpecialMesh",limb3a)
  643. mesh.MeshType = "Sphere"
  644. local limbweld3a = CreateWeldOrSnapOrMotor("Weld", limb3a, Torso, limb3a, CF(-1 * Player_Size, -0.7 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(-25), RAD(90)), CF(0, 0, 0))
  645. local limb3b = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  646. local mesh = Instance.new("SpecialMesh",limb3b)
  647. mesh.MeshType = "Sphere"
  648. local limbweld3b = CreateWeldOrSnapOrMotor("Weld", limb3b, limb3a, limb3b, CF(-0.6* Player_Size, 1.3 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(0)), CF(0, 0, 0))
  649. local limb3c = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  650. local mesh = Instance.new("SpecialMesh",limb3c)
  651. mesh.MeshType = "Sphere"
  652. local limbweld3c = CreateWeldOrSnapOrMotor("Weld", limb3c, limb3b, limb3c, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), CF(0, 0, 0))
  653.  
  654. local limb4a = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  655. local mesh = Instance.new("SpecialMesh",limb4a)
  656. mesh.MeshType = "Sphere"
  657. local limbweld4a = CreateWeldOrSnapOrMotor("Weld", limb4a, Torso, limb4a, CF(1 * Player_Size, -0.7 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(25), RAD(-90)), CF(0, 0, 0))
  658. local limb4b = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  659. local mesh = Instance.new("SpecialMesh",limb4b)
  660. mesh.MeshType = "Sphere"
  661. local limbweld4b = CreateWeldOrSnapOrMotor("Weld", limb4b, limb4a, limb4b, CF(0.6* Player_Size, 1.3 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(-25), RAD(0)), CF(0, 0, 0))
  662. local limb4c = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Handle", VT(1*Player_Size,1*Player_Size,3*Player_Size))
  663. local mesh = Instance.new("SpecialMesh",limb4c)
  664. mesh.MeshType = "Sphere"
  665. local limbweld4c = CreateWeldOrSnapOrMotor("Weld", limb4c, limb4b, limb4c, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), CF(0, 0, 0))
  666.  
  667. ---------------------
  668.  
  669. for _, c in pairs(Weapon:GetChildren()) do
  670. if c.ClassName == "Part" then
  671. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  672. end
  673. end
  674.  
  675. Weapon.Parent = Character
  676.  
  677. Humanoid.Died:connect(function()
  678. ATTACK = true
  679. end)
  680.  
  681. print(Class_Name.." loaded.")
  682.  
  683. --//=================================\\
  684. --\\=================================//
  685.  
  686.  
  687.  
  688.  
  689.  
  690. --//=================================\\
  691. --|| DAMAGE FUNCTIONS
  692. --\\=================================//
  693.  
  694. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  695. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really red", "Effect", VT())
  696. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  697. local BODYGYRO = IT("BodyGyro", STATPART)
  698. local BODYPOSITION = IT("BodyPosition", STATPART)
  699. BODYPOSITION.P = 2000
  700. BODYPOSITION.D = 100
  701. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  702. if LABELTYPE == "Normal" then
  703. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  704. elseif LABELTYPE == "Debuff" then
  705. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  706. elseif LABELTYPE == "Interruption" then
  707. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  708. end
  709. game:GetService("Debris"):AddItem(STATPART ,5)
  710. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  711. BILLBOARDGUI.Adornee = STATPART
  712. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  713. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  714. BILLBOARDGUI.AlwaysOnTop = false
  715. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  716. TEXTLABEL.BackgroundTransparency = 1
  717. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  718. TEXTLABEL.Text = TEXT
  719. TEXTLABEL.Font = "Antique"
  720. TEXTLABEL.FontSize="Size42"
  721. TEXTLABEL.TextColor3 = COLOR
  722. TEXTLABEL.TextStrokeTransparency = 1
  723. TEXTLABEL.TextScaled = true
  724. TEXTLABEL.TextWrapped = true
  725. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  726. wait(0.2)
  727. for i=1, 5 do
  728. wait()
  729. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  730. end
  731. wait(1.2)
  732. for i=1, 5 do
  733. wait()
  734. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  735. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  736. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  737. end
  738. THEPART.Parent = nil
  739. end),STATPART, BODYPOSITION, TEXTLABEL)
  740. end
  741.  
  742. local asd = Instance.new("ParticleEmitter")
  743. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  744. asd.LightEmission = .1
  745. asd.Size = NumberSequence.new(0.2)
  746. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  747. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  748. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  749. asd.Transparency = bbb
  750. asd.Size = aaa
  751. asd.ZOffset = .9
  752. asd.Acceleration = Vector3.new(0, -5, 0)
  753. asd.LockedToPart = false
  754. asd.EmissionDirection = "Back"
  755. asd.Lifetime = NumberRange.new(1, 2)
  756. asd.Rotation = NumberRange.new(-100, 100)
  757. asd.RotSpeed = NumberRange.new(-100, 100)
  758. asd.Speed = NumberRange.new(2)
  759. asd.Enabled = false
  760. asd.VelocitySpread = 10000
  761.  
  762. function getbloody(victim,amount)
  763. local prtcl = asd:Clone()
  764. prtcl.Parent = victim
  765. prtcl:Emit(amount)
  766. end
  767.  
  768. function dealdamage(hit,maxstrength,beserk)
  769. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  770. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  771. if humanoid.Health == "inf" then
  772. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "inf, skid", C3(255/255, 0, 0))
  773. humanoid.Health = 0
  774. end
  775. if humanoid.Health > 0 and humanoid.MaxHealth ~= "inf" then
  776. if beserk == true then
  777. humanoid.Health = 0
  778. else
  779. if humanoid.MaxHealth ~= "inf" then
  780. getbloody(hit,3)
  781. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], hit, 1.2, MRANDOM(7, 12) / 10)
  782. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  783. local dmg = humanoid.MaxHealth/5
  784. if math.random(1,5) == 1 then
  785. humanoid.Health = humanoid.Health - dmg*3
  786. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*3, C3(255/255, 0, 0))
  787. else
  788. humanoid.Health = humanoid.Health - dmg
  789. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(255/255, 0, 0))
  790. end
  791. local defence = Instance.new("BoolValue",hit.Parent)
  792. defence.Name = ("HitBy"..Player.Name)
  793. game:GetService("Debris"):AddItem(defence, 0.5)
  794. elseif humanoid.MaxHealth == "inf" then
  795. humanoid.Health = 0
  796. getbloody(hit,50)
  797. end
  798. end
  799. elseif humanoid.MaxHealth == "inf" then
  800. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "inf, skid", C3(255/255, 0, 0))
  801. humanoid.Health = 0
  802. end
  803. end
  804. end
  805.  
  806. --//=================================\\
  807. --|| ATTACK FUNCTIONS AND STUFF
  808. --\\=================================//
  809.  
  810.  
  811. function Attack()
  812. stab = true
  813. local Animation_Speed2 = Animation_Speed/2
  814. for i=0, 1, 0.1 / Animation_Speed2 do
  815. Swait()
  816. limbweld1a.C0 = Clerp(limbweld1a.C0, CF(1 * Player_Size, 0.8 * Player_Size, 1 * Player_Size) * ANGLES(RAD(-10), RAD(25), RAD(0)), 0.4 / Animation_Speed2)
  817. limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0 * Player_Size, 1.4 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  818. limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  819.  
  820. limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-1 * Player_Size, 0.8 * Player_Size, 1 * Player_Size) * ANGLES(RAD(-10), RAD(-25), RAD(0)), 0.4 / Animation_Speed2)
  821. limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0 * Player_Size, 1.4 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  822. limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  823.  
  824. limbweld3a.C0 = Clerp(limbweld3a.C0, CF(-0.6 * Player_Size, -0.65 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(90)), 0.4 / Animation_Speed2)
  825. limbweld3b.C0 = Clerp(limbweld3b.C0, CF(-0.6* Player_Size, 1.3 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(0)), 0.4 / Animation_Speed2)
  826. limbweld3c.C0 = Clerp(limbweld3c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  827.  
  828. limbweld4a.C0 = Clerp(limbweld4a.C0, CF(0.6 * Player_Size, -0.65 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(-90)), 0.4 / Animation_Speed2)
  829. limbweld4b.C0 = Clerp(limbweld4b.C0, CF(0.6* Player_Size, 1.3 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(-25), RAD(0)), 0.4 / Animation_Speed2)
  830. limbweld4c.C0 = Clerp(limbweld4c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  831. end
  832. CreateSound("1112042117", Torso, 1, MRANDOM(9, 11) / 10)
  833. local paw1 = limb1c.Touched:Connect(function(hit)
  834. dealdamage(hit,5)
  835. end)
  836. local paw2 = limb2c.Touched:Connect(function(hit)
  837. dealdamage(hit,5)
  838. end)
  839. local paw3 = limb3c.Touched:Connect(function(hit)
  840. dealdamage(hit,5)
  841. end)
  842. local paw4 = limb4c.Touched:Connect(function(hit)
  843. dealdamage(hit,5)
  844. end)
  845. for i=0, 1, 0.1 / Animation_Speed2 do
  846. Swait()
  847. limbweld1a.C0 = Clerp(limbweld1a.C0, CF(1 * Player_Size, 1.6 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(-75), RAD(25), RAD(0)), 0.4 / Animation_Speed2)
  848. limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0.4 * Player_Size, 1.2 * Player_Size, 0.8 * Player_Size) * ANGLES(RAD(60), RAD(-15), RAD(0)), 0.4 / Animation_Speed2)
  849. limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  850.  
  851. limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-1 * Player_Size, 1.6 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(-75), RAD(-25), RAD(0)), 0.4 / Animation_Speed2)
  852. limbweld2b.C0 = Clerp(limbweld2b.C0, CF(-0.4 * Player_Size, 1.2 * Player_Size, 0.8 * Player_Size) * ANGLES(RAD(60), RAD(15), RAD(0)), 0.4 / Animation_Speed2)
  853. limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  854.  
  855. limbweld3a.C0 = Clerp(limbweld3a.C0, CF(-1.4 * Player_Size, -0.7 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(-50), RAD(90)), 0.4 / Animation_Speed2)
  856. limbweld3b.C0 = Clerp(limbweld3b.C0, CF(-0.6* Player_Size, 1 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(50), RAD(25), RAD(0)), 0.4 / Animation_Speed2)
  857. limbweld3c.C0 = Clerp(limbweld3c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  858.  
  859. limbweld4a.C0 = Clerp(limbweld4a.C0, CF(1.4 * Player_Size, -0.7 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(50), RAD(-90)), 0.4 / Animation_Speed2)
  860. limbweld4b.C0 = Clerp(limbweld4b.C0, CF(0.6* Player_Size, 1 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(50), RAD(-25), RAD(0)), 0.4 / Animation_Speed2)
  861. limbweld4c.C0 = Clerp(limbweld4c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed2)
  862. end
  863. paw1:disconnect()
  864. paw2:disconnect()
  865. paw3:disconnect()
  866. paw4:disconnect()
  867. stab = false
  868. end
  869.  
  870. function Weld2(to, from, c1)
  871. local New_Weld = Instance.new('Motor', to)
  872. New_Weld.Part0 = from
  873. New_Weld.Part1 = to
  874. New_Weld.C1 = c1
  875. New_Weld.Name = "GrabWeld"
  876. return New_Weld
  877. end
  878.  
  879. function grabandfeed()
  880. ATTACK = true
  881. local victim = nil
  882. local tors = nil
  883. local wld = nil
  884. for i=0, 1, 0.1 / Animation_Speed do
  885. Swait()
  886. 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(-25)), 0.15 / Animation_Speed)
  887. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  888. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  889. 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)
  890. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  891. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-15), RAD(-75), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  892. end
  893. local hitting = RightArm.Touched:connect(function(hit)
  894. if hit.Parent:FindFirstChild("Humanoid") then
  895. if hit.Parent.Humanoid.Health ~= 0 then
  896. UNANCHOR = false
  897. victim = hit.Parent.Humanoid
  898. RootPart.Anchored = true
  899. if hit.Parent:FindFirstChild("Torso") then
  900. wld=Weld2(RightArm,hit.Parent.Torso,CF(0,-1.5,0)*ANGLES(-RAD(90),RAD(180),0))
  901. RootPart.Anchored = true
  902. tors = hit.Parent:FindFirstChild("Torso")
  903. elseif hit.Parent:FindFirstChild("UpperTorso") then
  904. wld=Weld2(RightArm,hit.Parent.UpperTorso,CF(0,-1.5,0)*ANGLES(-RAD(90),RAD(180),0))
  905. RootPart.Anchored = true
  906. tors = hit.Parent:FindFirstChild("UpperTorso")
  907. end
  908. end
  909. end
  910. end)
  911. for i=0, 1, 0.1 / Animation_Speed do
  912. Swait()
  913. 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(55)), 0.15 / Animation_Speed)
  914. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.45 / Animation_Speed)
  915. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  916. 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)
  917. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  918. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-35), RAD(-75), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  919. end
  920. if victim ~= nil then
  921. Rooted = true
  922. local Animation_Speed2 = Animation_Speed*2
  923. for i= 0, 1, 0.1 / Animation_Speed2 do
  924. Swait()
  925. 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(55)), 0.15 / Animation_Speed2)
  926. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(-25)), 0.45 / Animation_Speed2)
  927. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  928. 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_Speed2)
  929. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
  930. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-35), RAD(-75), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed2)
  931. end
  932. for i= 0, 1, 0.1 / Animation_Speed2 do
  933. Swait()
  934. 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(55)), 0.15 / Animation_Speed2)
  935. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(45), RAD(0), RAD(-25)), 0.45 / Animation_Speed2)
  936. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  937. 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_Speed2)
  938. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
  939. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-35), RAD(-75), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed2)
  940. end
  941. CreateSound("264486467", tors, 1, MRANDOM(9, 11) / 10)
  942. CreateSound("230346233", Head, 6, 0.7)
  943. getbloody(tors,150)
  944. Swait(40)
  945. tors.Anchored = true
  946. tors.Transparency = 1
  947. game:GetService("Debris"):AddItem(tors, 5)
  948. foodism = foodism + victim.Health
  949. victim.Health = 0
  950. Rooted = false
  951. end
  952. UNANCHOR = true
  953. if wld ~= nil then
  954. wld:remove()
  955. end
  956. hitting:disconnect()
  957. ATTACK = false
  958. end
  959.  
  960. function roar()
  961. ATTACK = true
  962. Rooted = true
  963. for i=0, 1.3, 0.1 / Animation_Speed do
  964. Swait()
  965. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.1 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  966. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  967. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(120), RAD(-15), RAD(-70)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  968. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(120), RAD(15), RAD(70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  969. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  970. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  971. end
  972. CreateSound("180140312", Head, 6, 1)
  973. for i=0, 3, 0.1 / Animation_Speed do
  974. Swait()
  975. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.1 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  976. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  977. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(120), RAD(15), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*2)
  978. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(120), RAD(-15), RAD(-100)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*2)
  979. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  980. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  981. end
  982. Rooted = false
  983. ATTACK = false
  984. end
  985.  
  986. --//=================================\\
  987. --\\=================================//
  988.  
  989.  
  990.  
  991. --//=================================\\
  992. --|| ASSIGN THINGS TO KEYS
  993. --\\=================================//
  994.  
  995. Humanoid.Changed:connect(function(Jump)
  996. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  997. Humanoid.Jump = false
  998. end
  999. end)
  1000.  
  1001. function MouseDown(Mouse)
  1002. if ATTACK == false and stab == false then
  1003. Attack()
  1004. end
  1005. end
  1006.  
  1007. function MouseUp(Mouse)
  1008. HOLD = false
  1009. end
  1010.  
  1011. function KeyDown(Key)
  1012. if Key == "e" and stab == false and ATTACK == false then
  1013. grabandfeed()
  1014. end
  1015. if Key == "r" and chitter.Playing == false and stab == false and ATTACK == false then
  1016. roar()
  1017. end
  1018. if Key == "g" and chitter.Playing == false and stab == false and ATTACK == false then
  1019. CreateSound("609473931", Head, 6, 1)
  1020. end
  1021. if Key == "t" and ATTACK == false then
  1022. if chitter then
  1023. if chitter.Playing == false then
  1024. chitter:Play()
  1025. end
  1026. end
  1027. end
  1028. end
  1029.  
  1030. function KeyUp(Key)
  1031. end
  1032.  
  1033. Mouse.Button1Down:connect(function(NEWKEY)
  1034. MouseDown(NEWKEY)
  1035. end)
  1036. Mouse.Button1Up:connect(function(NEWKEY)
  1037. MouseUp(NEWKEY)
  1038. end)
  1039. Mouse.KeyDown:connect(function(NEWKEY)
  1040. KeyDown(NEWKEY)
  1041. end)
  1042. Mouse.KeyUp:connect(function(NEWKEY)
  1043. KeyUp(NEWKEY)
  1044. end)
  1045.  
  1046. --//=================================\\
  1047. --\\=================================//
  1048.  
  1049.  
  1050. function unanchor()
  1051. if UNANCHOR == true then
  1052. g = Character:GetChildren()
  1053. for i = 1, #g do
  1054. if g[i].ClassName == "Part" then
  1055. g[i].Anchored = false
  1056. end
  1057. end
  1058. end
  1059. end
  1060.  
  1061.  
  1062. --//=================================\\
  1063. --|| WRAP THE WHOLE SCRIPT UP
  1064. --\\=================================//
  1065.  
  1066. Humanoid.Changed:connect(function(Jump)
  1067. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1068. Humanoid.Jump = false
  1069. end
  1070. end)
  1071.  
  1072. Rooted = false
  1073.  
  1074. ANIMATE.Parent = nil
  1075. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1076. IDLEANIMATION:Play()
  1077.  
  1078. while true do
  1079. Swait()
  1080. SINE = SINE + CHANGE
  1081. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1082. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1083. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1084. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1085. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1086. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1087. 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)
  1088. 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)
  1089. 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)
  1090. 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)
  1091. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1092. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1093. 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)
  1094. 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)
  1095. 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)
  1096. end
  1097. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1098. ANIM = "Jump"
  1099. if ATTACK == false then
  1100. 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)
  1101. 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)
  1102. 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)
  1103. 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)
  1104. 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)
  1105. 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)
  1106. end
  1107. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1108. ANIM = "Fall"
  1109. if ATTACK == false then
  1110. 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)
  1111. 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)
  1112. 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)
  1113. 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)
  1114. 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)
  1115. 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)
  1116. end
  1117. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1118. ANIM = "Idle"
  1119. if ATTACK == false then
  1120. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.1 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1121. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1122. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1123. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1124. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1125. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1126. end
  1127. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1128. ANIM = "Walk"
  1129. WALK = WALK + 1 / Animation_Speed
  1130. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1131. WALK = 0
  1132. if WALKINGANIM == true then
  1133. WALKINGANIM = false
  1134. elseif WALKINGANIM == false then
  1135. WALKINGANIM = true
  1136. end
  1137. end
  1138. --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)
  1139. --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)
  1140. if ATTACK == false then
  1141. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.6 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1142. 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)
  1143. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1144. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1145. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1.1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1146. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1147. end
  1148. end
  1149. if stab == false then
  1150. limbweld1a.C0 = Clerp(limbweld1a.C0, CF(1 * Player_Size, 1.2 * Player_Size, 1 * Player_Size) * ANGLES(RAD(-45), RAD(25), RAD(0)), 0.4 / Animation_Speed)
  1151. limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 1.4 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1152. limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1153.  
  1154. limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-1 * Player_Size, 1.2 * Player_Size, 1 * Player_Size) * ANGLES(RAD(-45), RAD(-25), RAD(0)), 0.4 / Animation_Speed)
  1155. limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 1.4 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1156. limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1157.  
  1158. limbweld3a.C0 = Clerp(limbweld3a.C0, CF(-1 * Player_Size, -0.7 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(-25), RAD(90)), 0.4 / Animation_Speed)
  1159. limbweld3b.C0 = Clerp(limbweld3b.C0, CF(-0.6* Player_Size, 1.3 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(0)), 0.4 / Animation_Speed)
  1160. limbweld3c.C0 = Clerp(limbweld3c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1161.  
  1162. limbweld4a.C0 = Clerp(limbweld4a.C0, CF(1 * Player_Size, -0.7 * Player_Size, 1 * Player_Size) * ANGLES(RAD(25), RAD(25), RAD(-90)), 0.4 / Animation_Speed)
  1163. limbweld4b.C0 = Clerp(limbweld4b.C0, CF(0.6* Player_Size, 1.3 * Player_Size, 1.4 * Player_Size) * ANGLES(RAD(90), RAD(-25), RAD(0)), 0.4 / Animation_Speed)
  1164. limbweld4c.C0 = Clerp(limbweld4c.C0, CF(0 * Player_Size, -1.1 * Player_Size, -2.3 * Player_Size) * ANGLES(RAD(-50), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1165. end
  1166. if #Effects2>0 then
  1167. for e=1,#Effects2 do
  1168. if Effects2[e]~=nil then
  1169. local Thing=Effects2[e]
  1170. if Thing~=nil then
  1171. local Part=Thing[1]
  1172. local Mode=Thing[2]
  1173. local Delay=Thing[3]
  1174. local IncX=Thing[4]
  1175. local IncY=Thing[5]
  1176. local IncZ=Thing[6]
  1177. local Part2=Thing[8]
  1178. if Thing[1].Transparency<=1 then
  1179. if Thing[2]=="Block1" then
  1180. Thing[1].CFrame=Part2.CFrame
  1181. Mesh=Thing[1].Mesh
  1182. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1183. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1184. elseif Thing[2]=="Cylinder" then
  1185. Mesh=Thing[1].Mesh
  1186. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1187. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1188. elseif Thing[2]=="Blood" then
  1189. Mesh=Thing[7]
  1190. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1191. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1192. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1193. elseif Thing[2]=="Elec" then
  1194. Mesh=Thing[1].Mesh
  1195. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1196. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1197. elseif Thing[2]=="Disappear" then
  1198. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1199. end
  1200. else
  1201. Part.Parent=nil
  1202. table.remove(Effects2,e)
  1203. end
  1204. end
  1205. end
  1206. end
  1207. end
  1208. unanchor()
  1209. Humanoid.MaxHealth = foodism
  1210. Humanoid.Health = Humanoid.Health + (foodism/50)
  1211. if Rooted == false then
  1212. Disable_Jump = false
  1213. Humanoid.WalkSpeed = Speed
  1214. elseif Rooted == true then
  1215. Disable_Jump = true
  1216. Humanoid.WalkSpeed = 0
  1217. end
  1218. if Speed > 200 or foodism > (200*80) then
  1219. Speed = 200
  1220. elseif Speed < 200 and foodism < (200*80) then
  1221. Speed = (foodism/80)
  1222. end
  1223. Humanoid.JumpPower = 150
  1224. end
  1225.  
  1226. --//=================================\\
  1227. --\\=================================//
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233. --//====================================================\\--
  1234. --|| END OF SCRIPT
  1235. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment