Advertisement
XSleepyDemonX_17

i uh

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