Advertisement
Guest User

furry V3

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