carlosname

Untitled

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