Advertisement
wamandnj

Untitled

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