Advertisement
Editor123

Fuck You

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