Advertisement
XSleepyDemonX_17

ewe

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