Advertisement
DavisRBLX

claws v3

Jun 24th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.40 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- Furry V3 --
  3. -- You made me do this.. ;c --
  4. -- Discord: Nebula the Zorua#6969
  5. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  6.  
  7.  
  8.  
  9. --// Shortcut Variables \\--
  10. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  11. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  12. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  13. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  14. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  15. local R3 = {N=Region3.new}
  16. local De = S.Debris
  17. local WS = workspace
  18. local Lght = S.Lighting
  19. local RepS = S.ReplicatedStorage
  20. local IN = Instance.new
  21. local Plrs = S.Players
  22.  
  23. --// Initializing \\--
  24. local Plr = Plrs.LocalPlayer
  25. local Char = Plr.Character
  26. local Hum = Char:FindFirstChildOfClass'Humanoid'
  27. local RArm = Char["Right Arm"]
  28. local LArm = Char["Left Arm"]
  29. local RLeg = Char["Right Leg"]
  30. local LLeg = Char["Left Leg"]
  31. local Root = Char:FindFirstChild'HumanoidRootPart'
  32. local Torso = Char.Torso
  33. local Head = Char.Head
  34. local NeutralAnims = true
  35. local Attack = false
  36. local Debounces = {Debounces={}}
  37. local Mouse = Plr:GetMouse()
  38. local Hit = {}
  39. local Sine = 0
  40. local Change = 1
  41.  
  42. local Stance = 0
  43. local Claws = false
  44.  
  45. local Effects = IN("Folder",Char)
  46. Effects.Name = "Effects"
  47.  
  48. local Huggled = Char:FindFirstChild'Huggled'
  49. if(not Huggled or not Huggled:IsA'BoolValue')then
  50. Huggled = IN("BoolValue",Char)
  51. Huggled.Value = false
  52. Huggled.Name = 'Huggled'
  53. end
  54. local Kissed = Char:FindFirstChild'Kissed'
  55. if(not Kissed or not Kissed:IsA'BoolValue')then
  56. Kissed = IN("BoolValue",Char)
  57. Kissed.Value = false
  58. Kissed.Name = 'Kissed'
  59. end
  60.  
  61. --// Debounce System \\--
  62.  
  63.  
  64. function Debounces:New(name,cooldown)
  65. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  66. setmetatable(aaaaa,{__index = Debounces})
  67. Debounces.Debounces[name] = aaaaa
  68. return aaaaa
  69. end
  70.  
  71. function Debounces:Use(overrideUsable)
  72. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  73. if(self.Usable or overrideUsable)then
  74. self.Usable = false
  75. self.CoolingDown = true
  76. local LastUse = time()
  77. self.LastUse = LastUse
  78. delay(self.Cooldown or 2,function()
  79. if(self.LastUse == LastUse)then
  80. self.CoolingDown = false
  81. self.Usable = true
  82. end
  83. end)
  84. end
  85. end
  86.  
  87. function Debounces:Get(name)
  88. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  89. for i,v in next, Debounces.Debounces do
  90. if(i == name)then
  91. return v;
  92. end
  93. end
  94. end
  95.  
  96. function Debounces:GetProgressPercentage()
  97. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  98. if(self.CoolingDown and not self.Usable)then
  99. return math.max(
  100. math.floor(
  101. (
  102. (time()-self.LastUse)/self.Cooldown or 2
  103. )*100
  104. )
  105. )
  106. else
  107. return 100
  108. end
  109. end
  110.  
  111. --// Instance Creation Functions \\--
  112.  
  113. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  114. local Sound = IN("Sound")
  115. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  116. Sound.Pitch = pitch or 1
  117. Sound.Volume = volume or 1
  118. Sound.Looped = looped or false
  119. if(autoPlay)then
  120. coroutine.wrap(function()
  121. repeat wait() until Sound.IsLoaded
  122. Sound.Playing = autoPlay or false
  123. end)()
  124. end
  125. if(not looped and effect)then
  126. Sound.Stopped:connect(function()
  127. Sound.Volume = 0
  128. Sound:destroy()
  129. end)
  130. elseif(effect)then
  131. warn("Sound can't be looped and a sound effect!")
  132. end
  133. Sound.Parent =parent or Torso
  134. return Sound
  135. end
  136. function Part(parent,color,material,size,cframe,anchored,cancollide)
  137. local part = IN("Part")
  138. part.Parent = parent or Char
  139. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  140. part.Material = material or Enum.Material.SmoothPlastic
  141. part.TopSurface,part.BottomSurface=10,10
  142. part.Size = size or V3.N(1,1,1)
  143. part.CFrame = cframe or CF.N(0,0,0)
  144. part.CanCollide = cancollide or false
  145. part.Anchored = anchored or false
  146. return part
  147. end
  148.  
  149. function Weld(part0,part1,c0,c1)
  150. local weld = IN("Weld")
  151. weld.Parent = part0
  152. weld.Part0 = part0
  153. weld.Part1 = part1
  154. weld.C0 = c0 or CF.N()
  155. weld.C1 = c1 or CF.N()
  156. return weld
  157. end
  158.  
  159. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  160. local part = IN("SpecialMesh")
  161. part.MeshId = meshid or ""
  162. part.TextureId = textid or ""
  163. part.Scale = scale or V3.N(1,1,1)
  164. part.Offset = offset or V3.N(0,0,0)
  165. part.MeshType = meshtype or Enum.MeshType.Sphere
  166. part.Parent = parent
  167. return part
  168. end
  169.  
  170. NewInstance = function(instance,parent,properties)
  171. local inst = Instance.new(instance)
  172. inst.Parent = parent
  173. if(properties)then
  174. for i,v in next, properties do
  175. pcall(function() inst[i] = v end)
  176. end
  177. end
  178. return inst;
  179. end
  180.  
  181. function Clone(instance,parent,properties)
  182. local inst = instance:Clone()
  183. inst.Parent = parent
  184. if(properties)then
  185. for i,v in next, properties do
  186. pcall(function() inst[i] = v end)
  187. end
  188. end
  189. return inst;
  190. end
  191.  
  192. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  193. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  194. local Sound = IN("Sound")
  195. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  196. Sound.Pitch = pitch or 1
  197. Sound.Volume = volume or 1
  198. Sound.Looped = looped or false
  199. if(autoPlay)then
  200. coroutine.wrap(function()
  201. repeat wait() until Sound.IsLoaded
  202. Sound.Playing = autoPlay or false
  203. end)()
  204. end
  205. if(not looped and effect)then
  206. Sound.Stopped:connect(function()
  207. Sound.Volume = 0
  208. soundPart:destroy()
  209. end)
  210. elseif(effect)then
  211. warn("Sound can't be looped and a sound effect!")
  212. end
  213. Sound.Parent = soundPart
  214. return Sound
  215. end
  216.  
  217.  
  218. --// Extended ROBLOX tables \\--
  219. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  220. --// Require stuff \\--
  221. function CamShake(who,times,intense,origin)
  222. coroutine.wrap(function()
  223. if(script:FindFirstChild'CamShake')then
  224. local cam = script.CamShake:Clone()
  225. cam:WaitForChild'intensity'.Value = intense
  226. cam:WaitForChild'times'.Value = times
  227.  
  228. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  229. cam.Parent = who
  230. wait()
  231. cam.Disabled = false
  232. elseif(who == Plr or who == Char)then
  233. local intensity = intense
  234. local cam = workspace.CurrentCamera
  235. for i = 1, times do
  236. local camDistFromOrigin
  237. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  238. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  239. elseif(typeof(origin) == 'Vector3')then
  240. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  241. end
  242. if(camDistFromOrigin)then
  243. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  244. end
  245. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  246. swait()
  247. end
  248. end
  249. end)()
  250. end
  251.  
  252. function CamShakeAll(times,intense,origin)
  253. for _,v in next, Plrs:players() do
  254. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  255. end
  256. end
  257.  
  258. function ServerScript(code)
  259. if(script:FindFirstChild'Loadstring')then
  260. local load = script.Loadstring:Clone()
  261. load:WaitForChild'Sauce'.Value = code
  262. load.Disabled = false
  263. load.Parent = workspace
  264. elseif(NS and typeof(NS) == 'function')then
  265. NS(code,workspace)
  266. else
  267. warn("no serverscripts lol")
  268. end
  269. end
  270.  
  271. function RunLocal(where,code)
  272. ServerScript([[
  273. wait()
  274. script.Parent=nil
  275. if(not _G.Http)then _G.Http = game:service'HttpService' end
  276.  
  277. local Http = _G.Http or game:service'HttpService'
  278.  
  279. local source = ]].."[["..code.."]]"..[[
  280. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  281. local asd = Http:PostAsync(link,source)
  282. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  283. local ID = Http:JSONDecode(asd).Result.Require_ID
  284. local vs = require(ID).VORTH_SCRIPT
  285. vs.Parent = game.]]..where:GetFullName()
  286. )
  287. end
  288.  
  289. --// Customization \\--
  290.  
  291. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  292. local Remove_Hats = false
  293. local Remove_Clothing = false
  294. local PlayerSize = 1
  295. local DamageColor = BrickColor.new'Really red'
  296. local MusicID = 0
  297. local God = false
  298. local Muted = false
  299.  
  300. local WalkSpeed = 16
  301.  
  302. --// Weapon and GUI creation, and Character Customization \\--
  303.  
  304. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  305. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  306.  
  307. if(PlayerSize ~= 1)then
  308. for _,v in next, Char:GetDescendants() do
  309. if(v:IsA'BasePart')then
  310. v.Size = v.Size * PlayerSize
  311. end
  312. end
  313. end
  314.  
  315. local Claw1 = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(.85,.4,.75),RArm.CFrame,false,false)
  316. Claw1.Transparency = 1
  317. local Claw1M = Mesh(Claw1,Enum.MeshType.FileMesh,"rbxassetid://105262978","",V3.N(.6,1,0),V3.N())
  318. local Claw1W = Weld(RArm,Claw1,CF.N(0,-1.4,.06)*CF.A(M.R(-90),0,M.R(-90)))
  319.  
  320. local Claw2 = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(.85,.4,.75),RArm.CFrame,false,false)
  321. Claw2.Transparency = 1
  322. local Claw2M = Mesh(Claw2,Enum.MeshType.FileMesh,"rbxassetid://105262978","",V3.N(.6,1,0),V3.N())
  323. local Claw2W = Weld(LArm,Claw2,CF.N(0,-1.4,.06)*CF.A(M.R(-90),0,M.R(90)))
  324.  
  325. --// Stop animations \\--
  326. for _,v in next, Hum:GetPlayingAnimationTracks() do
  327. v:Stop();
  328. end
  329.  
  330. pcall(game.Destroy,Char:FindFirstChild'Animate')
  331. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  332.  
  333. --// Joints \\--
  334.  
  335. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  336. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  337. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  338. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  339. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  340. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  341.  
  342. local LSC0 = LS.C0
  343. local RSC0 = RS.C0
  344. local NKC0 = NK.C0
  345. local LHC0 = LH.C0
  346. local RHC0 = RH.C0
  347. local RJC0 = RJ.C0
  348.  
  349. --// Artificial HB \\--
  350.  
  351. local ArtificialHB = IN("BindableEvent", script)
  352. ArtificialHB.Name = "Heartbeat"
  353.  
  354. script:WaitForChild("Heartbeat")
  355.  
  356. local tf = 0
  357. local allowframeloss = false
  358. local tossremainder = false
  359. local lastframe = tick()
  360. local frame = 1/Frame_Speed
  361. ArtificialHB:Fire()
  362.  
  363. game:GetService("RunService").Heartbeat:connect(function(s, p)
  364. tf = tf + s
  365. if tf >= frame then
  366. if allowframeloss then
  367. script.Heartbeat:Fire()
  368. lastframe = tick()
  369. else
  370. for i = 1, math.floor(tf / frame) do
  371. ArtificialHB:Fire()
  372. end
  373. lastframe = tick()
  374. end
  375. if tossremainder then
  376. tf = 0
  377. else
  378. tf = tf - frame * math.floor(tf / frame)
  379. end
  380. end
  381. end)
  382.  
  383. function swait(num)
  384. if num == 0 or num == nil then
  385. ArtificialHB.Event:wait()
  386. else
  387. for i = 0, num do
  388. ArtificialHB.Event:wait()
  389. end
  390. end
  391. end
  392.  
  393.  
  394. --// Effect Function(s) \\--
  395.  
  396. function Bezier(startpos, pos2, pos3, endpos, t)
  397. local A = startpos:lerp(pos2, t)
  398. local B = pos2:lerp(pos3, t)
  399. local C = pos3:lerp(endpos, t)
  400. local lerp1 = A:lerp(B, t)
  401. local lerp2 = B:lerp(C, t)
  402. local cubic = lerp1:lerp(lerp2, t)
  403. return cubic
  404. end
  405.  
  406. function SphereFX(duration,color,scale,pos,endScale,increment)
  407. return Effect{
  408. Effect='ResizeAndFade',
  409. Color=color,
  410. Size=scale,
  411. Mesh={MeshType=Enum.MeshType.Sphere},
  412. CFrame=pos,
  413. FXSettings={
  414. EndSize=endScale,
  415. EndIsIncrement=increment
  416. }
  417. }
  418. end
  419.  
  420. function BlastFX(duration,color,scale,pos,endScale,increment)
  421. return Effect{
  422. Effect='ResizeAndFade',
  423. Color=color,
  424. Size=scale,
  425. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  426. CFrame=pos,
  427. FXSettings={
  428. EndSize=endScale,
  429. EndIsIncrement=increment
  430. }
  431. }
  432. end
  433.  
  434. function BlockFX(duration,color,scale,pos,endScale,increment)
  435. return Effect{
  436. Effect='ResizeAndFade',
  437. Color=color,
  438. Size=scale,
  439. CFrame=pos,
  440. FXSettings={
  441. EndSize=endScale,
  442. EndIsIncrement=increment
  443. }
  444. }
  445. end
  446.  
  447. function Zap(data)
  448. local sCF,eCF = data.StartCFrame,data.EndCFrame
  449. assert(sCF,"You need a start CFrame!")
  450. assert(eCF,"You need an end CFrame!")
  451. local parts = data.PartCount or 15
  452. local zapRot = data.ZapRotation or {-5,5}
  453. local startThick = data.StartSize or 3;
  454. local endThick = data.EndSize or startThick/2;
  455. local color = data.Color or BrickColor.new'Electric blue'
  456. local delay = data.Delay or 35
  457. local delayInc = data.DelayInc or 0
  458. local lastLightning;
  459. local MagZ = (sCF.p - eCF.p).magnitude
  460. local thick = startThick
  461. local inc = (startThick/parts)-(endThick/parts)
  462.  
  463. for i = 1, parts do
  464. local pos = sCF.p
  465. if(lastLightning)then
  466. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  467. end
  468. delay = delay + delayInc
  469. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  470. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  471. if(parts == i)then
  472. local MagZ = (pos-eCF.p).magnitude
  473. zapPart.Size = V3.N(endThick,endThick,MagZ)
  474. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  475. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  476. else
  477. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  478. end
  479.  
  480. lastLightning = zapPart
  481. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  482.  
  483. thick=thick-inc
  484.  
  485. end
  486. end
  487.  
  488. function Zap2(data)
  489. local Color = data.Color or BrickColor.new'Electric blue'
  490. local StartPos = data.Start or Torso.Position
  491. local EndPos = data.End or Mouse.Hit.p
  492. local SegLength = data.SegL or 2
  493. local Thicc = data.Thickness or 0.5
  494. local Fades = data.Fade or 45
  495. local Parent = data.Parent or Effects
  496. local MaxD = data.MaxDist or 200
  497. local Branch = data.Branches or false
  498. local Material = data.Material or Enum.Material.Neon
  499. local Raycasts = data.Raycasts or false
  500. local Offset = data.Offset or {0,360}
  501. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  502. if((StartPos-EndPos).magnitude > MaxD)then
  503. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  504. end
  505. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  506. if(Raycasts)then
  507. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  508. end
  509. local segments = dist/SegLength
  510. local model = IN("Model",Parent)
  511. model.Name = 'Lightning'
  512. local Last;
  513. for i = 1, segments do
  514. local size = (segments-i)/25
  515. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  516. if(AddMesh)then IN("CylinderMesh",prt) end
  517. if(Last and math.floor(segments) == i)then
  518. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  519. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  520. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
  521. elseif(not Last)then
  522. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  523. else
  524. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  525. end
  526. Last = prt
  527. if(Branch)then
  528. local choice = M.RNG(1,7+((segments-i)*2))
  529. if(choice == 1)then
  530. local LastB;
  531. for i2 = 1,M.RNG(2,5) do
  532. local size2 = ((segments-i)/35)/i2
  533. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  534. if(AddMesh)then IN("CylinderMesh",prt) end
  535. if(not LastB)then
  536. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  537. else
  538. prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  539. end
  540. LastB = prt
  541. end
  542. end
  543. end
  544. end
  545. if(Fades > 0)then
  546. coroutine.wrap(function()
  547. for i = 1, Fades do
  548. for _,v in next, model:children() do
  549. if(v:IsA'BasePart')then
  550. v.Transparency = (i/Fades)
  551. end
  552. end
  553. swait()
  554. end
  555. model:destroy()
  556. end)()
  557. else
  558. S.Debris:AddItem(model,.01)
  559. end
  560. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  561. end
  562.  
  563. function Tween(obj,props,time,easing,direction,repeats,backwards)
  564. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  565. local tween = S.TweenService:Create(obj, info, props)
  566.  
  567. tween:Play()
  568. end
  569.  
  570. function Effect(data)
  571. local FX = data.Effect or 'ResizeAndFade'
  572. local Parent = data.Parent or Effects
  573. local Color = data.Color or C3.N(0,0,0)
  574. local Size = data.Size or V3.N(1,1,1)
  575. local MoveDir = data.MoveDirection or nil
  576. local MeshData = data.Mesh or nil
  577. local SndData = data.Sound or nil
  578. local Frames = data.Frames or 45
  579. local Manual = data.Manual or nil
  580. local Material = data.Material or nil
  581. local CFra = data.CFrame or Torso.CFrame
  582. local Settings = data.FXSettings or {}
  583. local Shape = data.Shape or Enum.PartType.Block
  584. local Snd,Prt,Msh;
  585. coroutine.wrap(function()
  586. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  587. Prt = Manual
  588. else
  589. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  590. Prt.Shape = Shape
  591. end
  592. if(typeof(MeshData) == 'table')then
  593. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  594. elseif(typeof(MeshData) == 'Instance')then
  595. Msh = MeshData:Clone()
  596. Msh.Parent = Prt
  597. elseif(Shape == Enum.PartType.Block)then
  598. Msh = Mesh(Prt,Enum.MeshType.Brick)
  599. end
  600. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  601. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  602. end
  603. if(Snd)then
  604. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  605. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  606. end
  607. Size = (Msh and Msh.Scale or Size)
  608. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  609.  
  610. local MoveSpeed = nil;
  611. if(MoveDir)then
  612. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  613. end
  614. if(FX ~= 'Arc')then
  615. for Frame = 1, Frames do
  616. if(FX == "Fade")then
  617. Prt.Transparency = (Frame/Frames)
  618. elseif(FX == "Resize")then
  619. if(not Settings.EndSize)then
  620. Settings.EndSize = V3.N(0,0,0)
  621. end
  622. if(Settings.EndIsIncrement)then
  623. if(Msh)then
  624. Msh.Scale = Msh.Scale + Settings.EndSize
  625. else
  626. Prt.Size = Prt.Size + Settings.EndSize
  627. end
  628. else
  629. if(Msh)then
  630. Msh.Scale = Msh.Scale - grow/Frames
  631. else
  632. Prt.Size = Prt.Size - grow/Frames
  633. end
  634. end
  635. elseif(FX == "ResizeAndFade")then
  636. if(not Settings.EndSize)then
  637. Settings.EndSize = V3.N(0,0,0)
  638. end
  639. if(Settings.EndIsIncrement)then
  640. if(Msh)then
  641. Msh.Scale = Msh.Scale + Settings.EndSize
  642. else
  643. Prt.Size = Prt.Size + Settings.EndSize
  644. end
  645. else
  646. if(Msh)then
  647. Msh.Scale = Msh.Scale - grow/Frames
  648. else
  649. Prt.Size = Prt.Size - grow/Frames
  650. end
  651. end
  652. Prt.Transparency = (Frame/Frames)
  653. end
  654. if(Settings.RandomizeCFrame)then
  655. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  656. end
  657. if(MoveDir and MoveSpeed)then
  658. local Orientation = Prt.Orientation
  659. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  660. Prt.Orientation = Orientation
  661. end
  662. swait()
  663. end
  664. Prt:destroy()
  665. else
  666. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  667. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  668. if(start and endP)then
  669. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  670. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  671. for Frame = 0, 1, (Settings.Speed or 0.01) do
  672. if(Settings.Home)then
  673. endP = Settings.Home.CFrame
  674. end
  675. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  676. end
  677. if(Settings.RemoveOnGoal)then
  678. Prt:destroy()
  679. end
  680. else
  681. Prt:destroy()
  682. assert(start,"You need a start position!")
  683. assert(endP,"You need a start position!")
  684. end
  685. end
  686. end)()
  687. return Prt,Msh,Snd
  688. end
  689. function SoulSteal(whom)
  690. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  691. print(torso)
  692. if(torso and torso:IsA'BasePart')then
  693. local Model = Instance.new("Model",Effects)
  694. Model.Name = whom.Name.."'s Soul"
  695. whom:BreakJoints()
  696. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  697. Soul.Name = 'Head'
  698. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  699. Effect{
  700. Effect="Arc",
  701. Manual = Soul,
  702. FXSettings={
  703. Start=torso.CFrame,
  704. Home = Torso,
  705. RemoveOnGoal = true,
  706. }
  707. }
  708. local lastPoint = Soul.CFrame.p
  709.  
  710. for i = 0, 1, 0.01 do
  711. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  712. local mag = (lastPoint - Soul.Position).magnitude
  713. Effect{
  714. Effect = "Fade",
  715. CFrame = point * CF.N(0, mag/2, 0),
  716. Size = V3.N(.5,mag+.5,.5),
  717. Color = Soul.BrickColor
  718. }
  719. lastPoint = Soul.CFrame.p
  720. swait()
  721. end
  722. for i = 1, 5 do
  723. Effect{
  724. Effect="Fade",
  725. Color = BrickColor.new'Really red',
  726. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  727. }
  728. end
  729. end
  730. end
  731.  
  732. --// Other Functions \\ --
  733.  
  734. function CastRay(startPos,endPos,range,ignoreList)
  735. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  736. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  737. return part,pos,norm,(pos and (startPos-pos).magnitude)
  738. end
  739.  
  740. function getRegion(point,range,ignore)
  741. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  742. end
  743.  
  744. function clerp(startCF,endCF,alpha)
  745. return startCF:lerp(endCF, alpha)
  746. end
  747.  
  748. function GetTorso(char)
  749. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  750. end
  751.  
  752. function ShowDamage(Pos, Text, Time, Color)
  753. coroutine.wrap(function()
  754. local Rate = (1 / Frame_Speed)
  755. local Pos = (Pos or Vector3.new(0, 0, 0))
  756. local Text = (Text or "")
  757. local Time = (Time or 2)
  758. local Color = (Color or Color3.new(1, 0, 1))
  759. local EffectPart = NewInstance("Part",Effects,{
  760. Material=Enum.Material.SmoothPlastic,
  761. Reflectance = 0,
  762. Transparency = 1,
  763. BrickColor = BrickColor.new(Color),
  764. Name = "Effect",
  765. Size = Vector3.new(0,0,0),
  766. Anchored = true,
  767. CFrame = CF.N(Pos)
  768. })
  769. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  770. Size = UDim2.new(1.25, 0, 1.25, 0),
  771. Adornee = EffectPart,
  772. })
  773. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  774. BackgroundTransparency = 1,
  775. Size = UDim2.new(1, 0, 1, 0),
  776. Text = Text,
  777. Font = "Bodoni",
  778. TextColor3 = Color,
  779. TextStrokeColor3 = Color3.new(0,0,0),
  780. TextStrokeTransparency=0,
  781. TextScaled = true,
  782. })
  783. S.Debris:AddItem(EffectPart, (Time))
  784. EffectPart.Parent = workspace
  785. delay(0, function()
  786. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  787. local Frames = (Time / Rate)
  788. for Frame = 1, Frames do
  789. swait()
  790. local Percent = (Frame / Frames)
  791. TextLabel.TextTransparency = Percent
  792. TextLabel.TextStrokeTransparency = Percent
  793. end
  794. if EffectPart and EffectPart.Parent then
  795. EffectPart:Destroy()
  796. end
  797. end) end)()
  798. end
  799.  
  800.  
  801. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  802. if(who)then
  803. local hum = who:FindFirstChildOfClass'Humanoid'
  804. local Damage = M.RNG(minDam,maxDam)
  805. local canHit = true
  806. if(hum)then
  807. for _, p in pairs(Hit) do
  808. if p[1] == hum then
  809. if(time() - p[2] < 0.1) then
  810. canHit = false
  811. else
  812. Hit[_] = nil
  813. end
  814. end
  815. end
  816. if(canHit)then
  817. table.insert(Hit,{hum,time()})
  818. if(hum.Health >= math.huge)then
  819. who:BreakJoints()
  820. if(who:FindFirstChild'Head' and hum.Health > 0)then
  821. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 1.5, C3.N(1,0,0))
  822. end
  823. else
  824. local player = S.Players:GetPlayerFromCharacter(who)
  825. if(Type == "Fire")then
  826. --idk..
  827. else
  828. local c = Instance.new("ObjectValue",hum)
  829. c.Name = "creator"
  830. c.Value = Plr
  831. game:service'Debris':AddItem(c,0.35)
  832. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  833. if(who:FindFirstChild'Head' and hum.Health > 0)then
  834. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
  835. end
  836. hum.Health = hum.Health - Damage*(critMult or 2)
  837. else
  838. if(who:FindFirstChild'Head' and hum.Health > 0)then
  839. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), Damage, 1.5, DamageColor.Color)
  840. end
  841. hum.Health = hum.Health - Damage
  842. end
  843. if(Type == 'Knockback' and GetTorso(who))then
  844. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  845. local body = NewInstance('BodyVelocity',GetTorso(who),{
  846. P = 500,
  847. maxForce = V3.N(math.huge,0,math.huge),
  848. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  849. })
  850. game:service'Debris':AddItem(body,.5)
  851. elseif(Type == "Electric")then
  852. if(M.RNG(1,100) >= critChance)then
  853. if(who:FindFirstChild'Head' and hum.Health > 0)then
  854. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 1.5, BrickColor.new"New Yeller".Color)
  855. end
  856. local asd = hum.WalkSpeed/2
  857. hum.WalkSpeed = asd
  858. local paralyzed = true
  859. coroutine.wrap(function()
  860. while paralyzed do
  861. swait(25)
  862. if(M.RNG(1,25) == 1)then
  863. if(who:FindFirstChild'Head' and hum.Health > 0)then
  864. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 1.5, BrickColor.new"New Yeller".Color)
  865. end
  866. hum.PlatformStand = true
  867. end
  868. end
  869. end)()
  870. delay(4, function()
  871. paralyzed = false
  872. hum.WalkSpeed = hum.WalkSpeed + asd
  873. end)
  874. end
  875.  
  876. elseif(Type == 'Knockdown' and GetTorso(who))then
  877. local rek = GetTorso(who)
  878. hum.PlatformStand = true
  879. delay(1,function()
  880. hum.PlatformStand = false
  881. end)
  882. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  883. local bodvol = NewInstance("BodyVelocity",rek,{
  884. velocity = angle * Knock,
  885. P = 5000,
  886. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  887. })
  888. local rl = NewInstance("BodyAngularVelocity",rek,{
  889. P = 3000,
  890. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  891. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  892. })
  893. game:GetService("Debris"):AddItem(bodvol, .5)
  894. game:GetService("Debris"):AddItem(rl, .5)
  895. end
  896. end
  897. end
  898. end
  899. end
  900. end
  901. end
  902.  
  903. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  904. for _,v in next, getRegion(where,range,{Char}) do
  905. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  906. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  907. end
  908. end
  909. end
  910.  
  911. function AOEHeal(where,range,amount)
  912. local healed = {}
  913. for _,v in next, getRegion(where,range,{Char}) do
  914. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  915. if(hum and not healed[hum])then
  916. hum.Health = hum.Health + amount
  917. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  918. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  919. end
  920. end
  921. end
  922. end
  923.  
  924. function CamShake(who,times,intense,origin)
  925. coroutine.wrap(function()
  926. if(script:FindFirstChild'CamShake')then
  927. local cam = script.CamShake:Clone()
  928. cam:WaitForChild'intensity'.Value = intense
  929. cam:WaitForChild'times'.Value = times
  930.  
  931. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  932. cam.Parent = who
  933. wait()
  934. cam.Disabled = false
  935. elseif(who == Plr or who == Char)then
  936. local intensity = intense
  937. local cam = workspace.CurrentCamera
  938. for i = 1, times do
  939. local camDistFromOrigin
  940. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  941. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  942. elseif(typeof(origin) == 'Vector3')then
  943. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  944. end
  945. if(camDistFromOrigin)then
  946. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  947. end
  948. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  949. swait()
  950. end
  951. end
  952. end)()
  953. end
  954.  
  955. function CamShakeAll(times,intense,origin)
  956. for _,v in next, Plrs:players() do
  957. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  958. end
  959. end
  960.  
  961. function ServerScript(code)
  962. if(script:FindFirstChild'Loadstring')then
  963. local load = script.Loadstring:Clone()
  964. load:WaitForChild'Sauce'.Value = code
  965. load.Disabled = false
  966. load.Parent = workspace
  967. elseif(NS and typeof(NS) == 'function')then
  968. NS(code,workspace)
  969. else
  970. warn("no serverscripts lol")
  971. end
  972. end
  973.  
  974. function LocalOnPlayer(who,code)
  975. ServerScript([[
  976. wait()
  977. script.Parent=nil
  978. if(not _G.Http)then _G.Http = game:service'HttpService' end
  979.  
  980. local Http = _G.Http or game:service'HttpService'
  981.  
  982. local source = ]].."[["..code.."]]"..[[
  983. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  984. local asd = Http:PostAsync(link,source)
  985. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  986. local ID = Http:JSONDecode(asd).Result.Require_ID
  987. local vs = require(ID).VORTH_SCRIPT
  988. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  989. ]])
  990. end
  991.  
  992. --// Attack functions \\--
  993.  
  994. --// Animation functions \\--
  995.  
  996. function ChangeStance(stance)
  997. if(Stance == stance)then Stance = 0 else Stance = stance end
  998. end
  999.  
  1000. function ShrinkClaws()
  1001. Attack = true
  1002. NeutralAnims = false
  1003. for i = 0, 1.6, 0.1 do
  1004. swait()
  1005. local Alpha = .15
  1006. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0.0267804712, -0.57599932, 1, 0, 0, 0, 0.894958973, 0.446148515, 0, -0.446148515, 0.894958973),Alpha)
  1007. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1008. RH.C0 = clerp(RH.C0,CFrame.new(0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1009. LS.C0 = clerp(LS.C0,CFrame.new(-1.25128794, 0.218256205, -0.0704385638, 0.796741128, -0.601582587, 0.0574631058, 0.433282614, 0.502369702, -0.74825865, 0.421271563, 0.621066213, 0.660913825),Alpha)
  1010. RS.C0 = clerp(RS.C0,CFrame.new(1.33687222, 0.263498187, -0.339109778, 0.779864848, 0.604162514, 0.163702518, -0.251701295, 0.542130709, -0.801711202, -0.573112011, 0.584022164, 0.574857235),Alpha)
  1011. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.47531223, -0.0833445787, 1, 0, 0, 0, 0.958908439, 0.283715904, 0, -0.283715934, 0.958908439),Alpha)
  1012. end
  1013. Claw1M.Scale = V3.N(.6,1,0)
  1014. Claw2M.Scale = V3.N(.6,1,0)
  1015. Claw1.Transparency = 1
  1016. Claw2.Transparency = 1
  1017. Claws = false
  1018. Attack = false
  1019. NeutralAnims = true
  1020. end
  1021.  
  1022. function GrowClaws()
  1023. Attack = true
  1024. NeutralAnims = false
  1025. for i = 0, 1.6, 0.1 do
  1026. swait()
  1027. local Alpha = .15
  1028. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0.0267804712, -0.57599932, 1, 0, 0, 0, 0.894958973, 0.446148515, 0, -0.446148515, 0.894958973),Alpha)
  1029. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1030. RH.C0 = clerp(RH.C0,CFrame.new(0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1031. LS.C0 = clerp(LS.C0,CFrame.new(-1.25128794, 0.218256205, -0.0704385638, 0.796741128, -0.601582587, 0.0574631058, 0.433282614, 0.502369702, -0.74825865, 0.421271563, 0.621066213, 0.660913825),Alpha)
  1032. RS.C0 = clerp(RS.C0,CFrame.new(1.33687222, 0.263498187, -0.339109778, 0.779864848, 0.604162514, 0.163702518, -0.251701295, 0.542130709, -0.801711202, -0.573112011, 0.584022164, 0.574857235),Alpha)
  1033. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.47531223, -0.0833445787, 1, 0, 0, 0, 0.958908439, 0.283715904, 0, -0.283715934, 0.958908439),Alpha)
  1034. end
  1035. Claw1M.Scale = V3.N(.6,1,1.25)
  1036. Claw2M.Scale = V3.N(.6,1,1.25)
  1037. Claw1.Transparency = 0
  1038. Claw2.Transparency = 0
  1039. for i = 0, 1.6, 0.1 do
  1040. swait()
  1041. local Alpha = .15
  1042. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0.0557683706, 0.210271984, 1, 0, 0, 0, 0.96131283, -0.275459349, 0, 0.275459349, 0.96131283),Alpha)
  1043. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -1.07405317, 0.079603225, 1, 0, 0, 0, 0.964729905, 0.263241976, 0, -0.263241976, 0.964729905),Alpha)
  1044. RH.C0 = clerp(RH.C0,CFrame.new(0.5, -1.07405317, 0.079603225, 1, 0, 0, 0, 0.964729905, 0.263241976, 0, -0.263241976, 0.964729905),Alpha)
  1045. LS.C0 = clerp(LS.C0,CFrame.new(-0.973503292, 0.846649706, 0.436822414, 0.328243881, 0.94284308, 0.0574718751, -0.611039519, 0.258339763, -0.748258948, -0.720337927, 0.210493833, 0.660912871),Alpha)
  1046. RS.C0 = clerp(RS.C0,CFrame.new(1.04560089, 0.820306599, 0.520357251, 0.596080899, -0.786060631, 0.163695931, 0.544697285, 0.246096462, -0.801711559, 0.589908898, 0.567049742, 0.574858427),Alpha)
  1047. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.43713045, 0.120943204, 1, 0, 0, 0, 0.982991874, -0.183649719, 0, 0.183649749, 0.982991874),Alpha)
  1048. end
  1049. Claws = true
  1050. Attack = false
  1051. NeutralAnims = true
  1052. end
  1053.  
  1054. function AttemptHuggleOwO()
  1055. Attack = true
  1056. NeutralAnims = false
  1057. for i = 0, 2, 0.1 do
  1058. swait()
  1059. local Alpha = .2
  1060. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1061. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1062. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1063. LS.C0 = clerp(LS.C0,CFrame.new(-1.33729529, 0.456638038, 0.16140607, -0.266469032, 0.963840604, -0.00235169032, 0.0237830039, 0.004135984, -0.999708652, -0.963550091, -0.266447306, -0.0240251366),Alpha)
  1064. RS.C0 = clerp(RS.C0,CFrame.new(1.35338628, 0.468459934, 0.177928478, -0.265267879, -0.964171946, -0.00234607165, -0.0224859882, 0.00861900486, -0.999710023, 0.963912547, -0.265138209, -0.0239667017),Alpha)
  1065. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1066. end
  1067. local hit;
  1068. for i = 0, 2, 0.1 do
  1069. swait()
  1070. hit = CastRay(Root.Position,Root.Position+Root.CFrame.lookVector,2)
  1071. local Alpha = .2
  1072. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1073. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1074. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1075. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1076. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1077. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1078. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid'and GetTorso(hit.Parent))then break end
  1079. end
  1080. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and GetTorso(hit.Parent))then
  1081. WalkSpeed = 0
  1082. Hum.AutoRotate = false
  1083. local owo = hit.Parent
  1084. local torso = GetTorso(owo)
  1085. local hum = owo:FindFirstChildOfClass'Humanoid'
  1086. local root = owo:FindFirstChild'HumanoidRootPart'
  1087. local rootWeld
  1088. if(root)then
  1089. rootWeld = (function()
  1090. for _,v in next, owo:GetDescendants() do
  1091. if(v:IsA'JointInstance' and (v.Part0 == root or v.Part1 == root))then
  1092. return {v,v.Part0,v.Part1,v.Parent}
  1093. end
  1094. end
  1095. end)()
  1096. root.Parent = nil
  1097. end
  1098. local GrabWeld = NewInstance("Weld",torso,{Part0=torso,Part1=Torso,C0=CF.N(0,0,-.75)*CF.A(0,M.R(180),0)})
  1099. local Sine = 0
  1100. if(owo:FindFirstChild'Huggled' and owo.Huggled:IsA'BoolValue')then
  1101. owo.Huggled.Value = true
  1102. end
  1103. for i = 0, 6, 0.1 do
  1104. swait()
  1105. Sine = Sine + 1
  1106. local Alpha = .2
  1107. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1108. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1109. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1110. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1111. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1112. NK.C0 = clerp(NK.C0,CFrame.new(0.438690722, 1.48037314, -0.368569374, 0.941390097, 0.334570527, 0.042981308, -0.33732003, 0.933716714, 0.119951896, 0, -0.127419978, 0.991848886)*CF.A(0,M.R(-15+15*M.C(Sine/8)),0),Alpha)
  1113. end
  1114. local Heart = Part(Char,BrickColor.new'Pink',Enum.Material.Neon,V3.N(2.15,2.13,.59),Torso.CFrame*CF.N(0,-1,0),true,false)
  1115. local HeartMesh = Mesh(Heart,Enum.MeshType.FileMesh,"rbxassetid://431221914","",V3.N(.5,.5,.2),V3.N())
  1116. coroutine.wrap(function()
  1117. local speed = .35
  1118. for i = 0, 6, .1 do
  1119. speed = speed - (.5/60)
  1120. Heart.CFrame = Heart.CFrame * CF.N(0,speed,0)
  1121. Heart.Transparency = math.max(1-i/3,0)
  1122. swait()
  1123. end
  1124. delay(1, function()
  1125. for i = 0, 3, .1 do
  1126. Heart.Transparency = i/3
  1127. swait()
  1128. end
  1129. Heart:destroy()
  1130. end)
  1131.  
  1132. end)()
  1133. Sound(Torso,270763316,1,5,false,true,true)
  1134. for i = 0, 6, 0.1 do
  1135. swait()
  1136. Sine = Sine + 1
  1137. local Alpha = .2
  1138. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1139. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1140. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1141. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1142. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1143. NK.C0 = clerp(NK.C0,CFrame.new(0.438690722, 1.48037314, -0.368569374, 0.941390097, 0.334570527, 0.042981308, -0.33732003, 0.933716714, 0.119951896, 0, -0.127419978, 0.991848886)*CF.A(0,M.R(-15+15*M.C(Sine/8)),0),Alpha)
  1144. end
  1145. if(owo:FindFirstChild'Huggled' and owo.Huggled:IsA'BoolValue')then
  1146. owo.Huggled.Value = false
  1147. end
  1148. WalkSpeed = 16
  1149. Hum.AutoRotate = true
  1150. local pp = torso.CFrame
  1151. if(root)then root.Parent = owo if(rootWeld)then rootWeld[1].Parent = rootWeld[4] rootWeld[1].Part0 = rootWeld[2] rootWeld[1].Part1 = rootWeld[3] end end
  1152. GrabWeld:destroy()
  1153. end
  1154.  
  1155. Attack = false
  1156. NeutralAnims = true
  1157. end
  1158.  
  1159. function AttemptKissUwU()
  1160. Attack = true
  1161. NeutralAnims = false
  1162. for i = 0, 2, 0.1 do
  1163. swait()
  1164. local Alpha = .2
  1165. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1166. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1167. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1168. LS.C0 = clerp(LS.C0,CFrame.new(-1.33729529, 0.456638038, 0.16140607, -0.266469032, 0.963840604, -0.00235169032, 0.0237830039, 0.004135984, -0.999708652, -0.963550091, -0.266447306, -0.0240251366),Alpha)
  1169. RS.C0 = clerp(RS.C0,CFrame.new(1.35338628, 0.468459934, 0.177928478, -0.265267879, -0.964171946, -0.00234607165, -0.0224859882, 0.00861900486, -0.999710023, 0.963912547, -0.265138209, -0.0239667017),Alpha)
  1170. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1171. end
  1172. local hit;
  1173. for i = 0, 2, 0.1 do
  1174. swait()
  1175. hit = CastRay(Root.Position,Root.Position+Root.CFrame.lookVector,2)
  1176. local Alpha = .2
  1177. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1178. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1179. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1180. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1181. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1182. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1183. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid'and GetTorso(hit.Parent))then break end
  1184. end
  1185. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and GetTorso(hit.Parent))then
  1186. WalkSpeed = 0
  1187. Hum.AutoRotate = false
  1188. local owo = hit.Parent
  1189. local torso = GetTorso(owo)
  1190. local hum = owo:FindFirstChildOfClass'Humanoid'
  1191. local root = owo:FindFirstChild'HumanoidRootPart'
  1192. local rootWeld
  1193. if(root)then
  1194. rootWeld = (function()
  1195. for _,v in next, owo:GetDescendants() do
  1196. if(v:IsA'JointInstance' and (v.Part0 == root or v.Part1 == root))then
  1197. return {v,v.Part0,v.Part1,v.Parent}
  1198. end
  1199. end
  1200. end)()
  1201. root.Parent = nil
  1202. end
  1203. local GrabWeld = NewInstance("Weld",torso,{Part0=torso,Part1=Torso,C0=CF.N(0,0,-.75)*CF.A(0,M.R(180),0)})
  1204. local Sine = 0
  1205. if(owo:FindFirstChild'Kissed' and owo.Kissed:IsA'BoolValue')then
  1206. owo.Kissed.Value = true
  1207. end
  1208. for i = 0, 6, 0.1 do
  1209. swait()
  1210. local Alpha = .2
  1211. Sine = Sine + 1
  1212. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1213. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1214. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1215. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028)*CF.A(M.R(0+5*M.C(Sine/12)),0,0),Alpha)
  1216. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039)*CF.A(M.R(0-5*M.C(Sine/12)),0,0),Alpha)
  1217. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1218.  
  1219. end
  1220. local Heart = Part(Char,BrickColor.new'Pink',Enum.Material.Neon,V3.N(2.15,2.13,.59),Torso.CFrame*CF.N(0,-1,0),true,false)
  1221. local HeartMesh = Mesh(Heart,Enum.MeshType.FileMesh,"rbxassetid://431221914","",V3.N(.5,.5,.2),V3.N())
  1222. coroutine.wrap(function()
  1223. local speed = .35
  1224. for i = 0, 6, .1 do
  1225. speed = speed - (.5/60)
  1226. Heart.CFrame = Heart.CFrame * CF.N(0,speed,0)
  1227. Heart.Transparency = math.max(1-i/3,0)
  1228. swait()
  1229. end
  1230. delay(1, function()
  1231. for i = 0, 3, .1 do
  1232. Heart.Transparency = i/3
  1233. swait()
  1234. end
  1235. Heart:destroy()
  1236. end)
  1237. end)()
  1238. Sound(Torso,270763316,1,5,false,true,true)
  1239. for i = 0, 6, 0.1 do
  1240. swait()
  1241. local Alpha = .2
  1242. Sine = Sine + 1
  1243. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1244. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1245. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1246. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028)*CF.A(M.R(0+5*M.C(Sine/12)),0,0),Alpha)
  1247. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039)*CF.A(M.R(0-5*M.C(Sine/12)),0,0),Alpha)
  1248. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1249. end
  1250. if(owo:FindFirstChild'Kissed' and owo.Kissed:IsA'BoolValue')then
  1251. owo.Kissed.Value = false
  1252. end
  1253. WalkSpeed = 16
  1254. Hum.AutoRotate = true
  1255. local pp = torso.CFrame
  1256. if(root)then root.Parent = owo if(rootWeld)then rootWeld[1].Parent = rootWeld[4] rootWeld[1].Part0 = rootWeld[2] rootWeld[1].Part1 = rootWeld[3] end end
  1257. GrabWeld:destroy()
  1258. end
  1259.  
  1260. Attack = false
  1261. NeutralAnims = true
  1262. end
  1263.  
  1264. --// Wrap it all up \\--
  1265.  
  1266. Mouse.KeyDown:connect(function(k)
  1267. if(Attack or Huggled.Value or Kissed.Value)then return end
  1268. if(Claws)then
  1269. if(k == 'z')then ChangeStance('PatientDoggo') end
  1270. if(k == 'x')then ChangeStance('SleepyDoggo') end
  1271. if(k == 'f')then ShrinkClaws() end
  1272. else
  1273. if(k == 'z')then ChangeStance('PatientDoggo') end
  1274. if(k == 'x')then ChangeStance('SleepyDoggo') end
  1275. if(k == 'h')then AttemptHuggleOwO() end
  1276. if(k == 'k')then AttemptKissUwU() end
  1277. if(k == 'f')then GrowClaws() end
  1278. end
  1279. end)
  1280.  
  1281. while true do
  1282. swait()
  1283. Sine = Sine + Change
  1284.  
  1285.  
  1286. if(God)then
  1287. Hum.MaxHealth = 1e100
  1288. Hum.Health = 1e100
  1289. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1290. Hum.Name = M.RNG()*100
  1291. end
  1292.  
  1293. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1294.  
  1295. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1296. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 16 and "Walk" or "Run") or hitfloor and "Idle")
  1297. if(not Effects or not Effects.Parent)then
  1298. Effects = IN("Model",Char)
  1299. Effects.Name = "Effects"
  1300. end
  1301. if(not Huggled.Value and not Kissed.Value)then
  1302. if(State == 'Run')then
  1303. local wsVal = 20 / (Hum.WalkSpeed/16)
  1304. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1305. Change = 3
  1306. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
  1307. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
  1308. elseif(State == 'Walk')then
  1309. local wsVal = 7 / (Hum.WalkSpeed/8)
  1310. local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
  1311. Change = .9
  1312. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.5*M.C(Sine/wsVal)/2,0+.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1313. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.5*M.C(Sine/wsVal)/2,0-.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1314. else
  1315. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1316. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1317. end
  1318. else
  1319. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1320. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1321. end
  1322. if(State ~= 'Idle')then
  1323. Stance = 0
  1324. end
  1325. Hum.WalkSpeed = WalkSpeed
  1326.  
  1327. if(Huggled.Value)then
  1328. WalkSpeed = 0
  1329. Change = 1
  1330. local Alpha = .2
  1331. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1332. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1333. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1334. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1335. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1336. NK.C0 = clerp(NK.C0,CFrame.new(0.438690722, 1.48037314, -0.368569374, 0.941390097, 0.334570527, 0.042981308, -0.33732003, 0.933716714, 0.119951896, 0, -0.127419978, 0.991848886)*CF.A(0,M.R(-15+15*M.C(Sine/8)),0),Alpha)
  1337. elseif(Kissed.Value)then
  1338. WalkSpeed = 0
  1339. Change = 1
  1340. local Alpha = .2
  1341. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1342. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1343. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1344. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028)*CF.A(M.R(0+5*M.C(Sine/12)),0,0),Alpha)
  1345. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039)*CF.A(M.R(0-5*M.C(Sine/12)),0,0),Alpha)
  1346. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1347.  
  1348. elseif(NeutralAnims)then
  1349. WalkSpeed = 16
  1350. if(State == 'Idle')then
  1351. if(Stance == 'PatientDoggo')then
  1352. local Alpha = .1
  1353. Change = .65
  1354. RJ.C0 = clerp(RJ.C0,CFrame.new(0, -2.10780478, 0.970854104, 1, 0, 0, 0, 0.530292034, -0.847815096, 0, 0.847815096, 0.530292034),Alpha)
  1355. LH.C0 = clerp(LH.C0,CFrame.new(-0.52337563, -1.22678924, -0.0346571803, 0.966510594, 0.256626785, -1.12175131e-08, -0.217572063, 0.819422245, -0.530292094, -0.136087134, 0.512532949, 0.847815096)*CF.A(0,0,M.R(0+5*M.C(Sine/24))),Alpha)
  1356. RH.C0 = clerp(RH.C0,CFrame.new(0.483448207, -1.22678924, -0.03465271, 0.966530263, -0.256553054, 0, 0.217509553, 0.819438934, -0.530292034, 0.136048034, 0.512543321, 0.847815096)*CF.A(0,0,M.R(0-5*M.C(Sine/24))),Alpha)
  1357. LS.C0 = clerp(LS.C0,CFrame.new(-1.46229315, 0.513410747, -0.0264457762, 0.884941101, 0.463346928, -0.0467846096, -0.0823113322, 0.254497528, 0.963564157, 0.458371073, -0.848846674, 0.263354063)*CF.A(0,0,M.R(0+5*M.C(Sine/24))),Alpha)
  1358. RS.C0 = clerp(RS.C0,CFrame.new(1.54346466, 0.54600054, -0.0126776993, 0.897622228, -0.43827334, -0.0468073376, 0.156223357, 0.217049524, 0.963578641, -0.412151307, -0.872242033, 0.263296962)*CF.A(0,0,M.R(0-5*M.C(Sine/24))),Alpha)
  1359. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.52029264, -0.216603011, 1, 0, 0, 0, 0.938926339, 0.344118178, 0, -0.344118178, 0.938926339)*CF.A(M.R(0+5*M.C(Sine/24)),0,0),Alpha)
  1360. elseif(Stance == 'SleepyDoggo')then
  1361. local Alpha = .1
  1362. Change = .65
  1363. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00765379518, -2.37531877, 0.490188628, 0.999769688, 0.0154944565, -0.0148536079, -0.0155909583, 0.0486059822, -0.998696327, -0.0147522828, 0.998697996, 0.0488363579),Alpha)
  1364. LH.C0 = clerp(LH.C0,CFrame.new(-0.556329548, -1.01782084, 0.0523337759, 0.936391771, -0.350610018, 0.0155910021, 0.350947887, 0.935132623, -0.0486090034, 0.00246314798, 0.0509886928, 0.998696208),Alpha)
  1365. RH.C0 = clerp(RH.C0,CFrame.new(0.582500875, -1.16751981, 0.133858949, 0.663288414, 0.726090193, -0.181222796, -0.708711624, 0.53166908, -0.463741302, -0.240367457, 0.436028928, 0.867238283),Alpha)
  1366. LS.C0 = clerp(LS.C0,CFrame.new(-1.20878398, 0.944466412, 0.12843433, 0.668268919, -0.739066303, 0.0848394409, -0.743897796, -0.663009524, 0.083873339, -0.00573859736, -0.119161807, -0.992858231),Alpha)
  1367. RS.C0 = clerp(RS.C0,CFrame.new(1.20252943, 0.88095963, 0.00249876827, 0.668030798, 0.735071719, -0.115777783, 0.743981063, -0.662912428, 0.0839017108, -0.0150767555, -0.142185375, -0.989725292),Alpha)
  1368. NK.C0 = clerp(NK.C0,CFrame.new(6.67600625e-06, 1.34367204, -0.326096922, 1, 0, 9.31322575e-10, -2.91038305e-11, 0.895097136, 0.445871502, 0, -0.445871502, 0.895096958)*CF.A(M.R(0+5*M.C(Sine/24)),0,0),Alpha)
  1369. else
  1370. Change = 1
  1371. local Alpha = .1
  1372. RJ.C0 = RJ.C0:lerp(CF.N(0,0+.05*M.C(Sine/16),0),Alpha)
  1373. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1374. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/16),0)*CF.A(0,0,-M.R(1+1*M.S(Sine/16))),Alpha)
  1375. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/16),0)*CF.A(0,0,M.R(1+1*M.S(Sine/16))),Alpha)
  1376. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.15*M.C(Sine/16),0)*CF.A(0,0,-M.R(5+5*M.S(Sine/16))),Alpha)
  1377. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.15*M.C(Sine/16),0)*CF.A(0,0,M.R(5+5*M.S(Sine/16))),Alpha)
  1378. end
  1379. elseif(State == 'Run')then
  1380. local wsVal = 20 / (Hum.WalkSpeed/16)
  1381. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1382. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-7+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1383. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1384. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  1385. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  1386. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1387. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1388. elseif(State == 'Walk')then
  1389. local wsVal = 7 / (Hum.WalkSpeed/8)
  1390. local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
  1391. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1392. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1393. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.1*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5)),Alpha)
  1394. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.1*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5)),Alpha)
  1395. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1396. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1397. elseif(State == 'Jump')then
  1398. local Alpha = .1
  1399. Change = .5
  1400. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1401. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(165+.25*M.C(Sine/6)),0,0),Alpha)
  1402. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(165+.25*M.C(Sine/6)),0,0),Alpha)
  1403. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1404. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1405. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1406. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-.5)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1407. elseif(State == 'Fall')then
  1408. local Alpha = .1
  1409. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1410. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(165+.25*M.C(Sine/6))+idk,0,0),Alpha)
  1411. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(165+.25*M.C(Sine/6))+idk,0,0),Alpha)
  1412. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1413. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1414. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1415. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-.5)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1416. elseif(State == 'Paralyzed')then
  1417. -- paralyzed
  1418. elseif(State == 'Sit')then
  1419. -- sit
  1420. end
  1421. end
  1422.  
  1423. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement