Advertisement
wamandnj

Untitled

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