lolita5432

Furry_v3FE

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