Advertisement
DarkScriptZEditors

Hugb

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