lolita5432

aaaasasasas

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