Advertisement
XSleepyDemonX_17

Furry V3 FE

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