lolita5432

Untitled

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