Advertisement
Oscar55555

Untitled

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