Advertisement
StarzoZero

ROBLOX : Nebula_Zorua's Furry Script (FE)

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