HuyEvilDumb

H U G

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