Advertisement
Dark_AJ1

bye v2 c:

Feb 12th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.91 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. -- Created by Nebula_Zorua --
  153. -- Mephisto --
  154. -- ..? --
  155. -- Discord: Nebula the Zorua#6969
  156. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  157.  
  158. wait(1/60)
  159.  
  160. --// Shortcut Variables \\--
  161. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  162. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  163. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  164. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  165. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  166. local R3 = {N=Region3.new}
  167. local De = S.Debris
  168. local WS = workspace
  169. local Lght = S.Lighting
  170. local RepS = S.ReplicatedStorage
  171. local IN = Instance.new
  172. local Plrs = S.Players
  173.  
  174. --// Initializing \\--
  175. local Plr = Plrs.LocalPlayer
  176. local Char = Plr.Character
  177. local Hum = Char:FindFirstChildOfClass'Humanoid'
  178. local RArm = Char["Right Arm"]
  179. local LArm = Char["Left Arm"]
  180. local RLeg = Char["Right Leg"]
  181. local LLeg = Char["Left Leg"]
  182. local Root = Char:FindFirstChild'HumanoidRootPart'
  183. local Torso = Char.Torso
  184. local Head = Char.Head
  185. local NeutralAnims = true
  186. local Attack = false
  187. local Debounces = {Debounces={}}
  188. local Mouse = Plr:GetMouse()
  189. local Hit = {}
  190. local Sine = 0
  191. local Change = 1
  192. local BloodPuddles = {}
  193. local idleCounter = 0;
  194. local Sitting = false
  195.  
  196. local Effects = IN("Folder",Char)
  197. Effects.Name = "Effects"
  198.  
  199.  
  200. --// Debounce System \\--
  201.  
  202.  
  203. function Debounces:New(name,cooldown)
  204. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  205. setmetatable(aaaaa,{__index = Debounces})
  206. Debounces.Debounces[name] = aaaaa
  207. return aaaaa
  208. end
  209.  
  210. function Debounces:Use(overrideUsable)
  211. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  212. if(self.Usable or overrideUsable)then
  213. self.Usable = false
  214. self.CoolingDown = true
  215. local LastUse = time()
  216. self.LastUse = LastUse
  217. delay(self.Cooldown or 2,function()
  218. if(self.LastUse == LastUse)then
  219. self.CoolingDown = false
  220. self.Usable = true
  221. end
  222. end)
  223. end
  224. end
  225.  
  226. function Debounces:Get(name)
  227. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  228. for i,v in next, Debounces.Debounces do
  229. if(i == name)then
  230. return v;
  231. end
  232. end
  233. end
  234.  
  235. function Debounces:GetProgressPercentage()
  236. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  237. if(self.CoolingDown and not self.Usable)then
  238. return math.max(
  239. math.floor(
  240. (
  241. (time()-self.LastUse)/self.Cooldown or 2
  242. )*100
  243. )
  244. )
  245. else
  246. return 100
  247. end
  248. end
  249.  
  250. --// Instance Creation Functions \\--
  251.  
  252. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  253. local Sound = IN("Sound")
  254. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  255. Sound.Pitch = pitch or 1
  256. Sound.Volume = volume or 1
  257. Sound.Looped = looped or false
  258. if(autoPlay)then
  259. coroutine.wrap(function()
  260. repeat wait() until Sound.IsLoaded
  261. Sound.Playing = autoPlay or false
  262. end)()
  263. end
  264. if(not looped and effect)then
  265. Sound.Stopped:connect(function()
  266. Sound.Volume = 0
  267. Sound:destroy()
  268. end)
  269. elseif(effect)then
  270. warn("Sound can't be looped and a sound effect!")
  271. end
  272. Sound.Parent = parent or Torso
  273. return Sound
  274. end
  275. function Part(parent,color,material,size,cframe,anchored,cancollide)
  276. local part = IN("Part")
  277. part.Parent = parent or Char
  278. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  279. part.Material = material or Enum.Material.SmoothPlastic
  280. part.TopSurface,part.BottomSurface=10,10
  281. part.Size = size or V3.N(1,1,1)
  282. part.CFrame = cframe or CF.N(0,0,0)
  283. part.CanCollide = cancollide or false
  284. part.Anchored = anchored or false
  285. return part
  286. end
  287.  
  288. function Weld(part0,part1,c0,c1)
  289. local weld = IN("Weld")
  290. weld.Parent = part0
  291. weld.Part0 = part0
  292. weld.Part1 = part1
  293. weld.C0 = c0 or CF.N()
  294. weld.C1 = c1 or CF.N()
  295. return weld
  296. end
  297.  
  298. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  299. local part = IN("SpecialMesh")
  300. part.MeshId = meshid or ""
  301. part.TextureId = textid or ""
  302. part.Scale = scale or V3.N(1,1,1)
  303. part.Offset = offset or V3.N(0,0,0)
  304. part.MeshType = meshtype or Enum.MeshType.Sphere
  305. part.Parent = parent
  306. return part
  307. end
  308.  
  309. NewInstance = function(instance,parent,properties)
  310. local inst = Instance.new(instance)
  311. inst.Parent = parent
  312. if(properties)then
  313. for i,v in next, properties do
  314. pcall(function() inst[i] = v end)
  315. end
  316. end
  317. return inst;
  318. end
  319.  
  320. function Clone(instance,parent,properties)
  321. local inst = instance:Clone()
  322. inst.Parent = parent
  323. if(properties)then
  324. for i,v in next, properties do
  325. pcall(function() inst[i] = v end)
  326. end
  327. end
  328. return inst;
  329. end
  330.  
  331. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  332. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  333. local Sound = IN("Sound")
  334. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  335. Sound.Pitch = pitch or 1
  336. Sound.Volume = volume or 1
  337. Sound.Looped = looped or false
  338. if(autoPlay)then
  339. coroutine.wrap(function()
  340. repeat wait() until Sound.IsLoaded
  341. Sound.Playing = autoPlay or false
  342. end)()
  343. end
  344. if(not looped and effect)then
  345. Sound.Stopped:connect(function()
  346. Sound.Volume = 0
  347. soundPart:destroy()
  348. end)
  349. elseif(effect)then
  350. warn("Sound can't be looped and a sound effect!")
  351. end
  352. Sound.Parent = soundPart
  353. return Sound
  354. end
  355.  
  356.  
  357. --// Extended ROBLOX tables \\--
  358. 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})
  359. --// Require stuff \\--
  360. function CamShake(who,times,intense,origin)
  361. coroutine.wrap(function()
  362. if(script:FindFirstChild'CamShake')then
  363. local cam = script.CamShake:Clone()
  364. cam:WaitForChild'intensity'.Value = intense
  365. cam:WaitForChild'times'.Value = times
  366.  
  367. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  368. cam.Parent = who
  369. wait()
  370. cam.Disabled = false
  371. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  372. local intensity = intense
  373. local cam = workspace.CurrentCamera
  374. for i = 1, times do
  375. local camDistFromOrigin
  376. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  377. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  378. elseif(typeof(origin) == 'Vector3')then
  379. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  380. end
  381. if(camDistFromOrigin)then
  382. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  383. end
  384. 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)
  385. swait()
  386. end
  387. end
  388. end)()
  389. end
  390.  
  391.  
  392. function CamShakeAll(times,intense,origin)
  393. for _,v in next, Plrs:players() do
  394. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  395. end
  396. end
  397.  
  398. function ServerScript(code)
  399. if(script:FindFirstChild'Loadstring')then
  400. local load = script.Loadstring:Clone()
  401. load:WaitForChild'Sauce'.Value = code
  402. load.Disabled = false
  403. load.Parent = workspace
  404. elseif(NS and typeof(NS) == 'function')then
  405. NS(code,workspace)
  406. else
  407. warn("no serverscripts lol")
  408. end
  409. end
  410.  
  411. function LocalOnPlayer(who,code)
  412. ServerScript([[
  413. wait()
  414. script.Parent=nil
  415. if(not _G.Http)then _G.Http = game:service'HttpService' end
  416.  
  417. local Http = _G.Http or game:service'HttpService'
  418.  
  419. local source = ]].."[["..code.."]]"..[[
  420. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  421. local asd = Http:PostAsync(link,source)
  422. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  423. local ID = Http:JSONDecode(asd).Result.Require_ID
  424. local vs = require(ID).VORTH_SCRIPT
  425. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  426. ]])
  427. end
  428.  
  429.  
  430. --// Customization \\--
  431.  
  432. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  433. local Remove_Hats = true
  434. local Remove_Clothing = true
  435. local PlayerSize = 1.3
  436. local DamageColor = BrickColor.new'Really black'
  437. local MusicID = 340286845
  438. local God = true
  439. local Muted = false
  440.  
  441. local WalkSpeed = 12
  442.  
  443. local Music = Sound(Char,MusicID,1,3,true,false,true)
  444. Music.Name = 'Music'
  445.  
  446. --// Stop animations \\--
  447. for _,v in next, Hum:GetPlayingAnimationTracks() do
  448. v:Stop();
  449. end
  450.  
  451. pcall(game.Destroy,Char:FindFirstChild'Animate')
  452. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  453.  
  454.  
  455. --// Joints \\--
  456.  
  457. 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)})
  458. 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)})
  459. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  460. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  461. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  462. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  463.  
  464. local LSC0 = LS.C0
  465. local RSC0 = RS.C0
  466. local NKC0 = NK.C0
  467. local LHC0 = LH.C0
  468. local RHC0 = RH.C0
  469. local RJC0 = RJ.C0
  470.  
  471. --// Resizing \\--
  472.  
  473. Hum.Parent = nil
  474. Root.Size = Root.Size*PlayerSize
  475. Torso.Size = Torso.Size*PlayerSize
  476. RArm.Size = RArm.Size*PlayerSize
  477. RLeg.Size = RLeg.Size*PlayerSize
  478. LArm.Size = LArm.Size*PlayerSize
  479. LLeg.Size = LLeg.Size*PlayerSize
  480. Head.Size = Head.Size*PlayerSize
  481.  
  482. RJ.Parent = Root
  483. NK.Parent = Torso
  484. RS.Parent = Torso
  485. LS.Parent = Torso
  486. RH.Parent = Torso
  487. LH.Parent = Torso
  488.  
  489. Hum.Parent = Char
  490.  
  491. --// Weapon and GUI creation, and Character Customization \\--
  492.  
  493. local pe = NewInstance("ParticleEmitter",Torso,{ZOffset=.9,Color=ColorSequence.new(C3.N(0,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(1,0),Texture='rbxasset://textures/particles/fire_main.dds',Transparency=NumberSequence.new(0,1),EmissionDirection=Enum.NormalId.Top,Enabled=true,Lifetime=NumberRange.new(.7),Rate=500,Speed=NumberRange.new(5)})
  494. local hood = Part(Char,C3.N(.2,.2,.2),Enum.Material.Fabric,V3.N(2*PlayerSize,2*PlayerSize,2*PlayerSize),CF.N(),false,false)
  495. local hoodM = Mesh(hood,Enum.MeshType.FileMesh,'rbxassetid://16952952','',V3.N(1.05*PlayerSize,1.05*PlayerSize,1.05*PlayerSize))
  496. local hoodW = Weld(hood,Head,CF.N(0,-.384*PlayerSize,0))
  497.  
  498. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  499. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  500.  
  501. for side = 1,2 do
  502. local LastPart = hood;
  503.  
  504. for i = 1,34 do
  505. local mult = (1-(i/38))*PlayerSize
  506. if(LastPart == hood)then
  507. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  508. Horn.Name = 'Horn'
  509. Weld(LastPart,Horn,CF.N((side == 1 and .3 or -.3)*PlayerSize,.6*PlayerSize,-.2*PlayerSize)*CF.A(0,M.R((side == 1 and -5 or 5)),0))
  510. LastPart = Horn
  511. else
  512. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  513. Horn.Name = 'Horn'
  514. Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(7),M.R(side == 1 and 3 or -3),0))
  515. LastPart = Horn
  516. end
  517. end
  518. end
  519.  
  520. for side = 1,2 do
  521. local LastPart = hood;
  522.  
  523. for i = 1,24 do
  524. local mult = (1-(i/28))*PlayerSize
  525. if(LastPart == hood)then
  526. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  527. Horn.Name = 'Horn'
  528. Weld(LastPart,Horn,CF.N((side == 1 and .5 or -.5)*PlayerSize,-.2*PlayerSize,-.2*PlayerSize)*CF.A(M.R(-25),M.R((side == 1 and -180 or 180)),M.R((side == 1 and 90 or -90))))
  529. LastPart = Horn
  530. else
  531. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  532. Horn.Name = 'Horn'
  533. Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(-7),M.R((side == 1 and -3 or 3)),0))
  534. LastPart = Horn
  535. end
  536. end
  537. end
  538.  
  539. --// Artificial HB \\--
  540.  
  541. local ArtificialHB = IN("BindableEvent", script)
  542. ArtificialHB.Name = "Heartbeat"
  543.  
  544. script:WaitForChild("Heartbeat")
  545.  
  546. local tf = 0
  547. local allowframeloss = false
  548. local tossremainder = false
  549. local lastframe = tick()
  550. local frame = 1/Frame_Speed
  551. ArtificialHB:Fire()
  552.  
  553. game:GetService("RunService").Heartbeat:connect(function(s, p)
  554. tf = tf + s
  555. if tf >= frame then
  556. if allowframeloss then
  557. script.Heartbeat:Fire()
  558. lastframe = tick()
  559. else
  560. for i = 1, math.floor(tf / frame) do
  561. ArtificialHB:Fire()
  562. end
  563. lastframe = tick()
  564. end
  565. if tossremainder then
  566. tf = 0
  567. else
  568. tf = tf - frame * math.floor(tf / frame)
  569. end
  570. end
  571. end)
  572.  
  573. function swait(num)
  574. if num == 0 or num == nil then
  575. ArtificialHB.Event:wait()
  576. else
  577. for i = 0, num do
  578. ArtificialHB.Event:wait()
  579. end
  580. end
  581. end
  582.  
  583.  
  584. --// Effect Function(s) \\--
  585.  
  586. function Bezier(startpos, pos2, pos3, endpos, t)
  587. local A = startpos:lerp(pos2, t)
  588. local B = pos2:lerp(pos3, t)
  589. local C = pos3:lerp(endpos, t)
  590. local lerp1 = A:lerp(B, t)
  591. local lerp2 = B:lerp(C, t)
  592. local cubic = lerp1:lerp(lerp2, t)
  593. return cubic
  594. end
  595. function Puddle(hit,pos,norm,data)
  596. local material = data.Material or Enum.Material.Granite
  597. local color = data.Color or BrickColor.new'Crimson'
  598. local size = data.Size and data.Size/4 or .25
  599.  
  600. if(hit.Name ~= 'BloodPuddle')then
  601. local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  602. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  603. BloodPuddles[Puddle] = 0
  604. else
  605. local cyl = hit:FindFirstChild'CylinderMesh'
  606. if(cyl and cyl.Scale.x < 20)then
  607. BloodPuddles[hit] = 0
  608. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  609. hit.Transparency = 0
  610. end
  611. end
  612. end
  613.  
  614. function Droplet(data)
  615. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  616. local Size = data.Size or .5
  617. local Color = data.Color or BrickColor.new'Crimson'
  618. local StudsPerFrame = data.Speed or 1
  619. local Shape = data.Shape or 'Ball'
  620. local Frames = (data.Frames or 160)+1
  621. local Pos = data.Origin or Root.CFrame
  622. local Direction = data.Direction or Root.CFrame.lookVector*100000
  623. local Material = data.Material or Enum.Material.Granite
  624. local Drop = data.Drop or .05
  625. local Ignorelist = data.Ignorelist or (function()
  626. local list = {}
  627. for _,v in next, workspace:children() do
  628. if(v:FindFirstChildOfClass'Humanoid')then
  629. table.insert(list,v)
  630. end
  631. end
  632. return list
  633. end)()
  634.  
  635. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  636. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  637. if(Shape == 'Ball')then
  638. BMesh.MeshType = Enum.MeshType.Sphere
  639. elseif(Shape == 'Head')then
  640. BMesh.MeshType = Enum.MeshType.Head
  641. elseif(Shape == 'Cylinder')then
  642. BMesh.MeshType = Enum.MeshType.Cylinder
  643. end
  644.  
  645. coroutine.wrap(function()
  646. for i = 1, Frames do
  647. Pos = Pos + V3.N(0,-(Drop*i),0)
  648. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame,Ignorelist)
  649. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  650. Puddle(hit,pos,norm,data)
  651. break;
  652. else
  653. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  654. end
  655. swait()
  656. end
  657. Bullet:destroy()
  658. end)()
  659. end
  660.  
  661. function BloodDrop(pos,dir,maxsize,BloodMaterial,BloodColor)
  662. BloodMaterial = BloodMaterial or Enum.Material.Granite
  663. BloodColor = BloodColor or BrickColor.new'Maroon'
  664. local owo = NewInstance("Part",Char,{Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.25,.25,.25), CanCollide = false})
  665. owo.CFrame=CF.N(pos,dir)
  666. local bv = Instance.new("BodyVelocity",owo)
  667. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  668. bv.velocity = CF.N(pos,dir+V3.N(M.RNG(-3,3)/30,M.RNG(-3,3)/30,M.RNG(-3,3)/30)).lookVector*15
  669. bv.Name = "MOVE"
  670. game:service'Debris':AddItem(bv,0.05)
  671. local touch
  672. touch = owo.Touched:connect(function(hit)
  673. if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then
  674. touch:disconnect()
  675. BloodPuddle(owo.Position+V3.N(0,1,0),3,maxsize,owo)
  676. owo:destroy()
  677. end
  678. end)
  679. end
  680. function BloodPuddle(position,range,maxSize,where,BloodMaterial,BloodColor)
  681. BloodMaterial = BloodMaterial or Enum.Material.Granite
  682. BloodColor = BloodColor or BrickColor.new'Maroon'
  683. local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new(
  684. position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range
  685. ),{where,Char},false,true)
  686. if(hit)then
  687. if(BloodPuddles[hit])then
  688. BloodPuddles[hit] = 0
  689. if(hit:FindFirstChild'CylinderMesh' and hit.CylinderMesh.Scale.Z < 15)then
  690. hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1)
  691. end
  692. else
  693. local Puddle = NewInstance('Part',hit,{Material=BloodMaterial,BrickColor=BloodColor,Size=V3.N(1,.1,1),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  694. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  695. BloodPuddles[Puddle] = 0
  696. end
  697. end
  698. end
  699.  
  700.  
  701. function SphereFX(duration,color,scale,pos,endScale,increment)
  702. return Effect{
  703. Effect='ResizeAndFade',
  704. Color=color,
  705. Size=scale,
  706. Mesh={MeshType=Enum.MeshType.Sphere},
  707. CFrame=pos,
  708. FXSettings={
  709. EndSize=endScale,
  710. EndIsIncrement=increment
  711. }
  712. }
  713. end
  714.  
  715. function BlastFX(duration,color,scale,pos,endScale,increment)
  716. return Effect{
  717. Effect='ResizeAndFade',
  718. Color=color,
  719. Size=scale,
  720. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  721. CFrame=pos,
  722. FXSettings={
  723. EndSize=endScale,
  724. EndIsIncrement=increment
  725. }
  726. }
  727. end
  728.  
  729. function BlockFX(duration,color,scale,pos,endScale,increment)
  730. return Effect{
  731. Effect='ResizeAndFade',
  732. Color=color,
  733. Size=scale,
  734. CFrame=pos,
  735. FXSettings={
  736. EndSize=endScale,
  737. EndIsIncrement=increment
  738. }
  739. }
  740. end
  741.  
  742. function ShootBullet(data)
  743. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  744. local Size = data.Size or V3.N(2,2,2)
  745. local Color = data.Color or BrickColor.new'Crimson'
  746. local StudsPerFrame = data.Speed or 10
  747. local Shape = data.Shape or 'Ball'
  748. local Frames = data.Frames or 160
  749. local Pos = data.Origin or Torso.CFrame
  750. local Direction = data.Direction or Mouse.Hit
  751. local Material = data.Material or Enum.Material.Neon
  752. local OnHit = data.HitFunction or function(hit,pos)
  753. Effect{
  754. Effect='ResizeAndFade',
  755. Color=Color,
  756. Size=V3.N(10,10,10),
  757. Mesh={MeshType=Enum.MeshType.Sphere},
  758. CFrame=CF.N(pos),
  759. FXSettings={
  760. EndSize=V3.N(.05,.05,.05),
  761. EndIsIncrement=true
  762. }
  763. }
  764. for i = 1, 5 do
  765. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  766. Effect{
  767. Effect='Fade',
  768. Frames=65,
  769. Size=V3.N(5,5,10),
  770. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  771. Mesh = {MeshType=Enum.MeshType.Sphere},
  772. Material=Enum.Material.Neon,
  773. Color=Color,
  774. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  775. }
  776. end
  777. end
  778.  
  779. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  780. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  781. if(Shape == 'Ball')then
  782. BMesh.MeshType = Enum.MeshType.Sphere
  783. elseif(Shape == 'Head')then
  784. BMesh.MeshType = Enum.MeshType.Head
  785. elseif(Shape == 'Cylinder')then
  786. BMesh.MeshType = Enum.MeshType.Cylinder
  787. end
  788.  
  789. coroutine.wrap(function()
  790. for i = 1, Frames+1 do
  791. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  792. if(hit)then
  793. OnHit(hit,pos,norm,dist)
  794. break;
  795. else
  796. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  797. end
  798. swait()
  799. end
  800. Bullet:destroy()
  801. end)()
  802.  
  803. end
  804.  
  805.  
  806. function Zap(data)
  807. local sCF,eCF = data.StartCFrame,data.EndCFrame
  808. assert(sCF,"You need a start CFrame!")
  809. assert(eCF,"You need an end CFrame!")
  810. local parts = data.PartCount or 15
  811. local zapRot = data.ZapRotation or {-5,5}
  812. local startThick = data.StartSize or 3;
  813. local endThick = data.EndSize or startThick/2;
  814. local color = data.Color or BrickColor.new'Electric blue'
  815. local delay = data.Delay or 35
  816. local delayInc = data.DelayInc or 0
  817. local lastLightning;
  818. local MagZ = (sCF.p - eCF.p).magnitude
  819. local thick = startThick
  820. local inc = (startThick/parts)-(endThick/parts)
  821.  
  822. for i = 1, parts do
  823. local pos = sCF.p
  824. if(lastLightning)then
  825. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  826. end
  827. delay = delay + delayInc
  828. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  829. 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)))
  830. if(parts == i)then
  831. local MagZ = (pos-eCF.p).magnitude
  832. zapPart.Size = V3.N(endThick,endThick,MagZ)
  833. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  834. 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)}}
  835. else
  836. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  837. end
  838.  
  839. lastLightning = zapPart
  840. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  841.  
  842. thick=thick-inc
  843.  
  844. end
  845. end
  846.  
  847. function Zap2(data)
  848. local Color = data.Color or BrickColor.new'Electric blue'
  849. local StartPos = data.Start or Torso.Position
  850. local EndPos = data.End or Mouse.Hit.p
  851. local SegLength = data.SegL or 2
  852. local Thicc = data.Thickness or 0.5
  853. local Fades = data.Fade or 45
  854. local Parent = data.Parent or Effects
  855. local MaxD = data.MaxDist or 200
  856. local Branch = data.Branches or false
  857. local Material = data.Material or Enum.Material.Neon
  858. local Raycasts = data.Raycasts or false
  859. local Offset = data.Offset or {0,360}
  860. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  861. if((StartPos-EndPos).magnitude > MaxD)then
  862. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  863. end
  864. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  865. if(Raycasts)then
  866. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  867. end
  868. local segments = dist/SegLength
  869. local model = IN("Model",Parent)
  870. model.Name = 'Lightning'
  871. local Last;
  872. for i = 1, segments do
  873. local size = (segments-i)/25
  874. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  875. if(AddMesh)then IN("CylinderMesh",prt) end
  876. if(Last and math.floor(segments) == i)then
  877. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  878. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  879. 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)
  880. elseif(not Last)then
  881. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  882. else
  883. 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)
  884. end
  885. Last = prt
  886. if(Branch)then
  887. local choice = M.RNG(1,7+((segments-i)*2))
  888. if(choice == 1)then
  889. local LastB;
  890. for i2 = 1,M.RNG(2,5) do
  891. local size2 = ((segments-i)/35)/i2
  892. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  893. if(AddMesh)then IN("CylinderMesh",prt) end
  894. if(not LastB)then
  895. 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)
  896. else
  897. 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)
  898. end
  899. LastB = prt
  900. end
  901. end
  902. end
  903. end
  904. if(Fades > 0)then
  905. coroutine.wrap(function()
  906. for i = 1, Fades do
  907. for _,v in next, model:children() do
  908. if(v:IsA'BasePart')then
  909. v.Transparency = (i/Fades)
  910. end
  911. end
  912. swait()
  913. end
  914. model:destroy()
  915. end)()
  916. else
  917. S.Debris:AddItem(model,.01)
  918. end
  919. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  920. end
  921.  
  922. function Tween(obj,props,time,easing,direction,repeats,backwards)
  923. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  924. local tween = S.TweenService:Create(obj, info, props)
  925.  
  926. tween:Play()
  927. end
  928.  
  929. function Effect(data)
  930. local FX = data.Effect or 'ResizeAndFade'
  931. local Parent = data.Parent or Effects
  932. local Color = data.Color or C3.N(0,0,0)
  933. local Size = data.Size or V3.N(1,1,1)
  934. local MoveDir = data.MoveDirection or nil
  935. local MeshData = data.Mesh or nil
  936. local SndData = data.Sound or nil
  937. local Frames = data.Frames or 45
  938. local Manual = data.Manual or nil
  939. local Material = data.Material or nil
  940. local CFra = data.CFrame or Torso.CFrame
  941. local Settings = data.FXSettings or {}
  942. local Shape = data.Shape or Enum.PartType.Block
  943. local Snd,Prt,Msh;
  944. local RotInc = data.RotInc or {0,0,0}
  945. if(typeof(RotInc) == 'number')then
  946. RotInc = {RotInc,RotInc,RotInc}
  947. end
  948. coroutine.wrap(function()
  949. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  950. Prt = Manual
  951. else
  952. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  953. Prt.Shape = Shape
  954. end
  955. if(typeof(MeshData) == 'table')then
  956. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  957. elseif(typeof(MeshData) == 'Instance')then
  958. Msh = MeshData:Clone()
  959. Msh.Parent = Prt
  960. elseif(Shape == Enum.PartType.Block)then
  961. Msh = Mesh(Prt,Enum.MeshType.Brick)
  962. end
  963. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  964. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  965. end
  966. if(Snd)then
  967. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  968. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  969. end
  970. Size = (Msh and Msh.Scale or Size)
  971. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  972.  
  973. local MoveSpeed = nil;
  974. if(MoveDir)then
  975. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  976. end
  977. if(FX ~= 'Arc')then
  978. for Frame = 1, Frames do
  979. if(FX == "Fade")then
  980. Prt.Transparency = (Frame/Frames)
  981. elseif(FX == "Resize")then
  982. if(not Settings.EndSize)then
  983. Settings.EndSize = V3.N(0,0,0)
  984. end
  985. if(Settings.EndIsIncrement)then
  986. if(Msh)then
  987. Msh.Scale = Msh.Scale + Settings.EndSize
  988. else
  989. Prt.Size = Prt.Size + Settings.EndSize
  990. end
  991. else
  992. if(Msh)then
  993. Msh.Scale = Msh.Scale - grow/Frames
  994. else
  995. Prt.Size = Prt.Size - grow/Frames
  996. end
  997. end
  998. elseif(FX == "ResizeAndFade")then
  999. if(not Settings.EndSize)then
  1000. Settings.EndSize = V3.N(0,0,0)
  1001. end
  1002. if(Settings.EndIsIncrement)then
  1003. if(Msh)then
  1004. Msh.Scale = Msh.Scale + Settings.EndSize
  1005. else
  1006. Prt.Size = Prt.Size + Settings.EndSize
  1007. end
  1008. else
  1009. if(Msh)then
  1010. Msh.Scale = Msh.Scale - grow/Frames
  1011. else
  1012. Prt.Size = Prt.Size - grow/Frames
  1013. end
  1014. end
  1015. Prt.Transparency = (Frame/Frames)
  1016. end
  1017. if(Settings.RandomizeCFrame)then
  1018. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  1019. else
  1020. Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
  1021. end
  1022. if(MoveDir and MoveSpeed)then
  1023. local Orientation = Prt.Orientation
  1024. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  1025. Prt.Orientation = Orientation
  1026. end
  1027. swait()
  1028. end
  1029. Prt:destroy()
  1030. else
  1031. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  1032. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  1033. if(start and endP)then
  1034. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  1035. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  1036. for Frame = 0, 1, (Settings.Speed or 0.01) do
  1037. if(Settings.Home)then
  1038. endP = Settings.Home.CFrame
  1039. end
  1040. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  1041. end
  1042. if(Settings.RemoveOnGoal)then
  1043. Prt:destroy()
  1044. end
  1045. else
  1046. Prt:destroy()
  1047. assert(start,"You need a start position!")
  1048. assert(endP,"You need a start position!")
  1049. end
  1050. end
  1051. end)()
  1052. return Prt,Msh,Snd
  1053. end
  1054. function SoulSteal(whom)
  1055. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  1056. print(torso)
  1057. if(torso and torso:IsA'BasePart')then
  1058. local Model = Instance.new("Model",Effects)
  1059. Model.Name = whom.Name.."'s Soul"
  1060. whom:BreakJoints()
  1061. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  1062. Soul.Name = 'Head'
  1063. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  1064. Effect{
  1065. Effect="Arc",
  1066. Manual = Soul,
  1067. FXSettings={
  1068. Start=torso.CFrame,
  1069. Home = Torso,
  1070. RemoveOnGoal = true,
  1071. }
  1072. }
  1073. local lastPoint = Soul.CFrame.p
  1074.  
  1075. for i = 0, 1, 0.01 do
  1076. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1077. local mag = (lastPoint - Soul.Position).magnitude
  1078. Effect{
  1079. Effect = "Fade",
  1080. CFrame = point * CF.N(0, mag/2, 0),
  1081. Size = V3.N(.5,mag+.5,.5),
  1082. Color = Soul.BrickColor
  1083. }
  1084. lastPoint = Soul.CFrame.p
  1085. swait()
  1086. end
  1087. for i = 1, 5 do
  1088. Effect{
  1089. Effect="Fade",
  1090. Color = BrickColor.new'Really red',
  1091. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  1092. }
  1093. end
  1094. end
  1095. end
  1096.  
  1097. --// Other Functions \\ --
  1098.  
  1099. function CastRay(startPos,endPos,range,ignoreList)
  1100. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  1101. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1102. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1103. end
  1104.  
  1105. function getRegion(point,range,ignore)
  1106. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  1107. end
  1108.  
  1109. function clerp(startCF,endCF,alpha)
  1110. return startCF:lerp(endCF, alpha)
  1111. end
  1112.  
  1113. function GetTorso(char)
  1114. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1115. end
  1116.  
  1117.  
  1118. function ShowDamage(Pos, Text, Time, Color)
  1119. coroutine.wrap(function()
  1120. local Rate = (1 / Frame_Speed)
  1121. local Pos = (Pos or Vector3.new(0, 0, 0))
  1122. local Text = (Text or "")
  1123. local Time = (Time or 2)
  1124. local Color = (Color or Color3.new(1, 0, 1))
  1125. local EffectPart = NewInstance("Part",Effects,{
  1126. Material=Enum.Material.SmoothPlastic,
  1127. Reflectance = 0,
  1128. Transparency = 1,
  1129. BrickColor = BrickColor.new(Color),
  1130. Name = "Effect",
  1131. Size = Vector3.new(0,0,0),
  1132. Anchored = true,
  1133. CFrame = CF.N(Pos)
  1134. })
  1135. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1136. Size = UDim2.new(1.25, 0, 1.25, 0),
  1137. Adornee = EffectPart,
  1138. })
  1139. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1140. BackgroundTransparency = 1,
  1141. Size = UDim2.new(1, 0, 1, 0),
  1142. Text = Text,
  1143. Font = "Bodoni",
  1144. TextColor3 = Color,
  1145. TextStrokeColor3 = Color3.new(0,0,0),
  1146. TextStrokeTransparency=0,
  1147. TextScaled = true,
  1148. })
  1149. S.Debris:AddItem(EffectPart, (Time))
  1150. EffectPart.Parent = workspace
  1151. delay(0, function()
  1152. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1153. local Frames = (Time / Rate)
  1154. for Frame = 1, Frames do
  1155. swait()
  1156. local Percent = (Frame / Frames)
  1157. TextLabel.TextTransparency = Percent
  1158. TextLabel.TextStrokeTransparency = Percent
  1159. end
  1160. if EffectPart and EffectPart.Parent then
  1161. EffectPart:Destroy()
  1162. end
  1163. end) end)()
  1164. end
  1165.  
  1166. function DealDamage(data)
  1167. local Who = data.Who;
  1168. local MinDam = data.MinimumDamage or 15;
  1169. local MaxDam = data.MaximumDamage or 30;
  1170. local MaxHP = data.MaxHP or 1e5;
  1171.  
  1172. local DB = data.Debounce or .2;
  1173.  
  1174. local CritData = data.Crit or {}
  1175. local CritChance = CritData.Chance or 0;
  1176. local CritMultiplier = CritData.Multiplier or 1;
  1177.  
  1178. local DamageEffects = data.DamageFX or {}
  1179. local DamageType = DamageEffects.Type or "Normal"
  1180. local DeathFunction = DamageEffects.DeathFunction
  1181.  
  1182. assert(Who,"Specify someone to damage!")
  1183.  
  1184. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1185. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1186.  
  1187. local canHit = true
  1188. if(Humanoid)then
  1189. for _, p in pairs(Hit) do
  1190. if p[1] == Humanoid then
  1191. if(time() - p[2] <= DB) then
  1192. canHit = false
  1193. else
  1194. Hit[_] = nil
  1195. end
  1196. end
  1197. end
  1198. if(canHit)then
  1199. table.insert(Hit,{Humanoid,time()})
  1200. local HitTorso = GetTorso(Who)
  1201. local player = S.Players:GetPlayerFromCharacter(Who)
  1202. if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
  1203. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1204. print'Got kill'
  1205. Humanoid.Health = 0;
  1206. Who:BreakJoints();
  1207. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1208. else
  1209. local c = Instance.new("ObjectValue",Hum)
  1210. c.Name = "creator"
  1211. c.Value = Plr
  1212. S.Debris:AddItem(c,0.35)
  1213. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1214. 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))), DoneDamage, 1.5, DamageColor.Color)
  1215. end
  1216. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1217. Humanoid.Health = Humanoid.Health - DoneDamage
  1218.  
  1219. if(DamageType == 'Knockback' and HitTorso)then
  1220. local up = DamageEffects.KnockUp or 25
  1221. local back = DamageEffects.KnockBack or 25
  1222. local origin = DamageEffects.Origin or Root
  1223. local decay = DamageEffects.Decay or .5;
  1224.  
  1225. local bfos = Instance.new("BodyVelocity",HitTorso)
  1226. bfos.P = 20000
  1227. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1228. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1229. S.Debris:AddItem(bfos,decay)
  1230. elseif(DamageType == 'FlingEm' and HitTorso)then
  1231. Humanoid.PlatformStand = true
  1232. local up = DamageEffects.KnockUp or 25
  1233. local back = DamageEffects.KnockBack or 25
  1234. local origin = DamageEffects.Origin or Root
  1235. local decay = DamageEffects.Decay or .5;
  1236.  
  1237. local bfos = Instance.new("BodyVelocity",HitTorso)
  1238. bfos.P = 20000
  1239. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1240. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1241. S.Debris:AddItem(bfos,decay)
  1242. local Sizey = (function()
  1243. if(Who:FindFirstChild'HumanoidRootPart')then
  1244. return Who.HumanoidRootPart.Size
  1245. else
  1246. return HitTorso.Size
  1247. end
  1248. end)()
  1249. local collision = Part(Who,C3.N(0,0,0),Enum.Material.Plastic,Sizey,CF.N(),false,false)
  1250. collision.Transparency = 1
  1251. Weld(collision,HitTorso)
  1252. local ev;
  1253. ev = collision.Touched:connect(function(t)
  1254. if(t.Parent ~= Who and t.Parent ~= Char and not t:IsDescendantOf(Who) and not t:IsDescendantOf(Char))then
  1255. Who:breakJoints()
  1256. ev:disconnect()
  1257. end
  1258. end)
  1259. end
  1260. end
  1261. end
  1262. end
  1263. end
  1264. end
  1265.  
  1266. function AOEDamage(where,range,options)
  1267. local hit = {}
  1268. for _,v in next, getRegion(where,range,{Char}) do
  1269. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1270. local callTable = {Who=v.Parent}
  1271. hit[v.Parent] = true
  1272. for _,v in next, options do callTable[_] = v end
  1273. DealDamage(callTable)
  1274. end
  1275. end
  1276. return hit
  1277. end
  1278.  
  1279. function AOEHeal(where,range,amount)
  1280. local healed = {}
  1281. for _,v in next, getRegion(where,range,{Char}) do
  1282. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1283. if(hum and not healed[hum])then
  1284. hum.Health = hum.Health + amount
  1285. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1286. 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)
  1287. end
  1288. end
  1289. end
  1290. end
  1291.  
  1292. function ClosestHumanoid(pos,range)
  1293. local mag,closest = math.huge;
  1294. local root;
  1295. for _,v in next, getRegion(pos,range or 10,{Char}) do
  1296. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1297. if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
  1298. mag = (v.CFrame.p-pos).magnitude
  1299. closest = hum
  1300. if(v.Parent:FindFirstChild'HumanoidRootPart')then
  1301. root = v.Parent.HumanoidRootPart
  1302. end
  1303. end
  1304. end
  1305. return closest,(closest and GetTorso(closest.Parent) or nil),root
  1306. end
  1307.  
  1308. function AttackTemp()
  1309. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  1310.  
  1311. if(torso)then
  1312. local who = torso.Parent
  1313. WalkSpeed = 0
  1314. Hum.JumpPower = 0
  1315. Attack = true
  1316. NeutralAnims = false
  1317. Hum.AutoRotate = false
  1318. who.Parent = Char
  1319. local oRoot
  1320. coroutine.resume(coroutine.create(function()
  1321. repeat
  1322. swait()
  1323. torso.Anchored = true
  1324. Root.Anchored = true
  1325. until not Attack
  1326. Root.Anchored = false
  1327. torso.Anchored = false
  1328. Hum.AutoRotate = true
  1329. end))
  1330. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  1331. WalkSpeed = 16
  1332. Hum.AutoRotate = true
  1333. Hum.JumpPower = 50
  1334. Attack = false
  1335. NeutralAnims = true
  1336. end
  1337. end
  1338.  
  1339. function Decapitate()
  1340. Attack = true
  1341. NeutralAnims = false
  1342. WalkSpeed = 0
  1343. Hum.JumpPower = 0
  1344. Hum.AutoRotate = false
  1345.  
  1346. local humanoid,torso,root = ClosestHumanoid(Torso.CFrame.p,5)
  1347. local gWeld;
  1348. if(torso)then
  1349. if(root)then root:destroy(); end
  1350. gWeld = Weld(torso,RArm,CF.N(0,0,1.25)*CF.A(M.R(90),0,0))
  1351. end
  1352. for i = 0, 3, 0.1 do
  1353. swait()
  1354. local Alpha = .3
  1355. RJ.C0 = clerp(RJ.C0,CFrame.new(3.73038267e-11, -1.10484409, 9.27457586e-06, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1356. LH.C0 = clerp(LH.C0,CFrame.new(-0.683995843, -0.177489138, -0.897741616, 0.999873757, -7.23900939e-11, 0.0156120826, -9.81522608e-05, 0.999988914, 0.00628615217, -0.0156121273, -0.00628564274, 0.999877512),Alpha)
  1357. RH.C0 = clerp(RH.C0,CFrame.new(0.675989509, -1.42322357, 0.255684435, 0.999875963, -0.0130437706, 0.00857485086, -9.81724879e-05, 0.544059396, 0.839051962, -0.0156097384, -0.838954628, 0.543995202),Alpha)
  1358. LS.C0 = clerp(LS.C0,CFrame.new(-2.02241492, 0.500085652, 0.0289606471, 0.999873757, -7.23900939e-11, 0.0156120826, -9.81522608e-05, 0.999988914, 0.00628615217, -0.0156121273, -0.00628564274, 0.999877512),Alpha)
  1359. RS.C0 = clerp(RS.C0,CFrame.new(1.19103253, 0.467928678, -0.987421989, 0.861010849, 0.471086591, -0.191659823, -0.29760465, 0.161091402, -0.941004634, -0.412423193, 0.867260695, 0.278900415),Alpha)
  1360. NK.C0 = clerp(NK.C0,CFrame.new(8.35345054e-06, 2.02163172, -0.019419238, 0.999995589, 3.67173925e-07, -1.56462193e-07, -3.56551027e-07, 0.997973442, 0.0637700409, 1.90921128e-07, -0.0637693703, 0.997983992),Alpha)
  1361. end
  1362.  
  1363.  
  1364. if(torso and gWeld)then
  1365. local who = torso.Parent
  1366.  
  1367. for i = 0, 2, 0.1 do
  1368. swait()
  1369. local Alpha = .3
  1370. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1371. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  1372. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  1373. LS.C0 = clerp(LS.C0,CFrame.new(-1.50595617, 0.648058772, -0.363369375, 0.970248938, -0.240059406, -0.0313680209, -0.145796537, -0.475936145, -0.867315948, 0.19327952, 0.846091807, -0.496780664),Alpha)
  1374. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313),Alpha)
  1375. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  1376. end
  1377. for i = 0, 3, 0.1 do
  1378. swait()
  1379. local Alpha = .3
  1380. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1381. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  1382. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  1383. LS.C0 = clerp(LS.C0,CFrame.new(-1.50595617, 0.648058772, -0.363369375, 0.970248938, -0.240059406, -0.0313680209, -0.145796537, -0.475936145, -0.867315948, 0.19327952, 0.846091807, -0.496780664)*CF.A(M.RRNG(-3,3),M.RRNG(-3,3),M.RRNG(-3,3)),Alpha)
  1384. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313)*CF.A(M.RRNG(-3,3),M.RRNG(-3,3),M.RRNG(-3,3)),Alpha)
  1385. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  1386. end
  1387. gWeld:destroy()
  1388. local hae = who:FindFirstChild'Head'
  1389. local haed;
  1390. Sound(torso,1093102664,.85,5,false,true,true)
  1391. Sound(torso,429400881,1,1,false,true,true)
  1392. if(hae)then
  1393. haed = Part(Char,hae.Color,hae.Material,hae.Size,CF.N(),false,false)
  1394. Mesh(haed,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
  1395. local faic = hae:FindFirstChildOfClass'Decal'
  1396. if(faic)then
  1397. faic:Clone().Parent = haed
  1398. end
  1399. hae:destroy()
  1400. local we = Weld(haed,LArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0))
  1401. coroutine.wrap(function()
  1402. for i = 1, 250 do
  1403. if(not who or not who.Parent)then break end
  1404. if(haed and haed.Parent)then BloodDrop(haed.CFrame*CF.N(0,-haed.Size.Y/2,0).p,haed.CFrame * CF.N(0,-haed.Size.Y,0).p,15) end
  1405. BloodDrop(torso.CFrame*CF.N(0,torso.Size.Y/2,0).p,torso.CFrame * CF.N(0,torso.Size.Y,0).p,15)
  1406. swait(2)
  1407. end
  1408. end)()
  1409. end
  1410. for i = 0, 6, 0.1 do
  1411. swait()
  1412. local Alpha = .3
  1413. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1414. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  1415. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  1416. LS.C0 = clerp(LS.C0,CFrame.new(-1.77177048, 0.838547349, -0.679161608, 0.555506885, 0.830917358, -0.0313709527, 0.398059189, -0.298866272, -0.867315829, -0.730048597, 0.469315678, -0.496780783),Alpha)
  1417. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313),Alpha)
  1418. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  1419. end
  1420. if(haed)then haed:breakJoints() haed.CanCollide = true delay(1, function() for i = 0, 1, .05 do haed.Transparency = i swait() end haed:destroy() end) end
  1421. end
  1422. Hum.AutoRotate = true
  1423. WalkSpeed = 12
  1424. Hum.JumpPower = 50
  1425. Attack = false
  1426. NeutralAnims = true
  1427. end
  1428.  
  1429. function Taunt()
  1430. Attack = true
  1431. NeutralAnims = false
  1432. local tau = Sound(Head,907332856,1,5,false,true,true)
  1433. WalkSpeed = 0
  1434. repeat swait() until tau.IsLoaded
  1435.  
  1436. repeat swait()
  1437. local Alpha = .1
  1438. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733+.1*M.C(Sine/24), -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1439. LH.C0 = clerp(LH.C0,CFrame.new(-0.669678032, -1.38499403-.1*M.C(Sine/24), 0.0295096412, 0.990272164, -5.56828963e-05, 0.139128789, -0.000814882107, 0.999984801, 0.00620027725, -0.139128059, -0.00625271676, 0.990264475),Alpha)
  1440. RH.C0 = clerp(RH.C0,CFrame.new(0.672359347, -1.38521934-.1*M.C(Sine/24), 0.0211674385, 0.991539717, -1.65234928e-06, -0.12978667, 0.000817281427, 0.999984622, 0.00623110821, 0.129785627, -0.00628384575, 0.991531849),Alpha)
  1441. LS.C0 = clerp(LS.C0,CFrame.new(-0.915843368, 0.359640986, -0.334288538, 0.401372224, -0.891078174, 0.21183902, 0.504320204, 0.021941511, -0.863243043, 0.764574885, 0.453319848, 0.458198279),Alpha)
  1442. RS.C0 = clerp(RS.C0,CFrame.new(1.01991177, 0.324635416, -0.81657666, 0.166016608, 0.986036301, 0.0129131982, -0.818172693, 0.145040289, -0.556386292, -0.550494492, 0.0818048492, 0.830832779),Alpha)
  1443. NK.C0 = clerp(NK.C0,CFrame.new(1.02607883e-05, 2.02162433, -0.0194168612, 0.999995589, 3.67173925e-07, -1.56462193e-07, -3.56551027e-07, 0.997973442, 0.0637700409, 1.90921128e-07, -0.0637693703, 0.997983992)*CF.A(M.R(tau.PlaybackLoudness/25),0,0),Alpha)
  1444. until not tau.Parent or tau.TimePosition >= tau.TimeLength-.1
  1445.  
  1446. WalkSpeed = 12
  1447. Attack = false
  1448. NeutralAnims = true
  1449. end
  1450.  
  1451. function TraceThing(COLOR,PLACE2) -- thanks shack dadi
  1452. local FADE = Effects
  1453. for _, c in pairs(Char:GetChildren()) do
  1454. if c:IsA'BasePart' and c ~= Root and c.Name ~= 'Horn' then
  1455. local DIST = (c.Position-PLACE2).magnitude
  1456. local FADER = c:Clone()
  1457. FADER.Color = COLOR
  1458. FADER.Size = Vector3.new(FADER.Size.X,FADER.Size.Y,DIST)
  1459. FADER.CFrame = CFrame.new(c.Position,PLACE2) * CFrame.new(0,0,-DIST/2)
  1460. FADER.Parent = FADE
  1461. FADER.Anchored = true
  1462. FADER.Transparency = 0.25
  1463. FADER:BreakJoints()
  1464. FADER.Material = "Glass"
  1465. FADER.CanCollide = false
  1466. FADER:ClearAllChildren()
  1467.  
  1468. if FADER.Name == "Head" then
  1469. FADER.Size = Vector3.new(1,1,1)
  1470. end
  1471. Effect{
  1472. Effect='Fade',
  1473. Manual=FADER
  1474. }
  1475. end
  1476. end
  1477.  
  1478. end
  1479.  
  1480. function ShadowDash()
  1481. local whom = (Mouse.Target and Mouse.Target.Parent)
  1482. if(whom and whom:FindFirstChildOfClass'Humanoid' and GetTorso(whom))then
  1483. local tits = GetTorso(whom)
  1484. WalkSpeed = 0
  1485. Hum.AutoRotate = false
  1486. Hum.JumpPower = 0
  1487. Attack = true
  1488. NeutralAnims = false
  1489. tits.Anchored = true
  1490. pe.Enabled = false
  1491. for _,v in next, Char:children() do
  1492. if(v:IsA'BasePart')then
  1493. v.Transparency = 1
  1494. end
  1495. end
  1496. Root.Anchored = true
  1497. Root.CFrame = tits.CFrame
  1498. TraceThing(Color3.new(0,0,0),tits.Position)
  1499. swait(60)
  1500. tits.Anchored = false
  1501. whom:breakJoints()
  1502. Sound(Torso,429400881,1,1,false,true,true)
  1503. for i = 1, 150 do
  1504. BloodDrop(tits.CFrame.p,tits.CFrame*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360))*CF.N(0,0,-250).p,0)
  1505. end
  1506.  
  1507. for _,v in next, whom:children() do
  1508. if(v:IsA'BasePart')then
  1509. v.Transparency = 1
  1510. v.CanCollide = false
  1511. end
  1512. end
  1513.  
  1514. for _,v in next, Char:children() do
  1515. if(v:IsA'BasePart' and v ~= Root)then
  1516. v.Transparency = 0
  1517. end
  1518. end
  1519.  
  1520. Sound(Torso,51322486,.25,5,false,true,true)
  1521. Sound(Torso,90696602,.75,5,false,true,true)
  1522. for i = 0, 28, 0.1 do
  1523. swait()
  1524. local Alpha = .4
  1525. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00757355848, 0.0377852023+.1*M.C(Sine/24), 0.485009342, 0.999981403, 0.00563284894, -0.00109071564, -0.00563992467, 0.930139899, -0.367174059, -0.00105372258, 0.367176652, 0.93016088),Alpha)
  1526. LH.C0 = clerp(LH.C0,CFrame.new(-0.552594781, -1.50296986-.1*M.C(Sine/24), 0.0680995584, 0.976442635, 0.0836730748, 0.198894158, -0.152352825, 0.920082569, 0.360883713, -0.152802736, -0.382684261, 0.911155462),Alpha)
  1527. RH.C0 = clerp(RH.C0,CFrame.new(0.567943096, -1.50207984-.1*M.C(Sine/24), 0.0515697002, 0.953646958, -0.0866500363, -0.288183123, 0.189154476, 0.917415917, 0.350098461, 0.234047636, -0.388381392, 0.89128089),Alpha)
  1528. LS.C0 = clerp(LS.C0,CFrame.new(-1.75206876, 0.655161917+.1*M.C(Sine/24), 0.0501086563, 0.92441982, 0.349119335, 0.153505713, -0.381188124, 0.858473122, 0.343103051, -0.0119965971, -0.375685781, 0.926669419),Alpha)
  1529. RS.C0 = clerp(RS.C0,CFrame.new(1.74417436, 0.680885673+.1*M.C(Sine/24), 0.0660502613, 0.924426794, -0.360479355, -0.124458626, 0.380988151, 0.858555913, 0.343118131, -0.0168322921, -0.364604831, 0.931010187),Alpha)
  1530. NK.C0 = clerp(NK.C0,CFrame.new(1.50889819e-05, 2.00338078, 0.0683209598, 1.00000012, -5.74626029e-07, 2.76975334e-06, 1.12503767e-06, 0.979146719, -0.203155011, -2.59466469e-06, 0.203154892, 0.9791466),Alpha)
  1531. end
  1532. Attack = false
  1533. NeutralAnims = true
  1534. Root.Anchored = false
  1535. WalkSpeed = 12
  1536. Hum.JumpPower = 50
  1537. Hum.AutoRotate = true
  1538. end
  1539. end
  1540.  
  1541. function Kick()
  1542. Attack = true
  1543. NeutralAnims = false
  1544. WalkSpeed = 0
  1545. for i = 0, 3, 0.1 do
  1546. swait()
  1547. local Alpha = .3
  1548. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0108572729, 0, -0.695583761, 0.999961317, -0.00823512767, -0.00228715781, 0.00822012592, 0.853373766, 0.521243095, -0.00234070979, -0.521245122, 0.853415012),Alpha)
  1549. LH.C0 = clerp(LH.C0,CFrame.new(-0.671167731, -1.38471591, -0.0706769824, 0.999878228, -0.00854624435, 0.0130612627, -9.76649171e-05, 0.833346248, 0.552751541, -0.0156085016, -0.552685499, 0.833243787),Alpha)
  1550. RH.C0 = clerp(RH.C0,CFrame.new(0.668480039, -1.47226596, -0.225226939, 0.999876022, 0.00822012592, 0.0132711167, -9.63718194e-05, 0.853373766, -0.521310091, -0.0156105161, 0.521243095, 0.853275299),Alpha)
  1551. LS.C0 = clerp(LS.C0,CFrame.new(-2.02284789, 0.688191652, 0.000862836838, 0.999878228, 0.0108040562, 0.0112653123, -9.76649171e-05, 0.726044297, -0.687648118, -0.0156085016, 0.687563181, 0.725956857),Alpha)
  1552. RS.C0 = clerp(RS.C0,CFrame.new(2.01978493, 0.643525422, -0.250506341, 0.999878228, 0.0108030885, 0.0112662409, -9.76649171e-05, 0.726103425, -0.687585771, -0.0156085016, 0.687500834, 0.726015925),Alpha)
  1553. NK.C0 = clerp(NK.C0,CFrame.new(1.23225118e-05, 2.02159524, -0.019422181, 1.00000012, 1.39325857e-06, -2.44937837e-07, -1.37463212e-06, 0.997964859, 0.0637694597, 3.31550837e-07, -0.0637694299, 0.997964621),Alpha)
  1554. end
  1555. for i = 0, 3, 0.1 do
  1556. swait()
  1557. AOEDamage(LLeg.CFrame.p,2,{MinDamage=15,MaxDamage=35,DamageFX={Type='FlingEm',KnockBack=75,Origin=LLeg,KnockUp=25}})
  1558. local Alpha = .3
  1559. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00780527852, 0, 0.499894947, 0.999982774, 0.00539445458, -0.000995628536, -0.00539992284, 0.936068416, -0.3517887, -0.000965735875, 0.351791173, 0.936088264),Alpha)
  1560. LH.C0 = clerp(LH.C0,CFrame.new(-0.671892226, -1.23579645, -0.118154764, 0.999878228, 0.00863712933, 0.0130002648, -9.75973526e-05, 0.83637166, -0.548162997, -0.0156076048, 0.548094988, 0.836270571),Alpha)
  1561. RH.C0 = clerp(RH.C0,CFrame.new(0.6725474, -1.47226596, 0.0332563818, 0.999876022, -0.00539992284, 0.0146462582, -9.84164217e-05, 0.936068416, 0.351832539, -0.0156098502, -0.3517887, 0.935958624),Alpha)
  1562. LS.C0 = clerp(LS.C0,CFrame.new(-2.01932526, 0.751780629, 0.226142645, 0.999878228, -0.0136112757, 0.00763806421, -9.75973526e-05, 0.483909249, 0.875118136, -0.0156076048, -0.875012398, 0.483849049),Alpha)
  1563. RS.C0 = clerp(RS.C0,CFrame.new(2.02764368, 0.580253482, 0.252969861, 0.999878228, -0.0136119165, 0.00763692334, -9.75973526e-05, 0.483835995, 0.875158668, -0.0156076048, -0.875052869, 0.483775735),Alpha)
  1564. NK.C0 = clerp(NK.C0,CFrame.new(1.83633183e-05, 2.02156091, -0.0194185972, 1.00000012, 1.6214326e-06, -1.53947622e-06, -1.51945278e-06, 0.997964621, 0.0637715757, 1.64005905e-06, -0.0637715757, 0.997964621),Alpha)
  1565. end
  1566. WalkSpeed = 12
  1567. Attack = false
  1568. NeutralAnims = true
  1569. end
  1570. --// Wrap it all up \\--
  1571.  
  1572. S.UserInputService.InputBegan:connect(function(io,gpe)
  1573. if(gpe or Attack)then return end
  1574. if(io.KeyCode == Enum.KeyCode.Z)then
  1575. Decapitate()
  1576. elseif(io.KeyCode == Enum.KeyCode.M)then
  1577. ShadowDash()
  1578. elseif(io.KeyCode == Enum.KeyCode.F)then
  1579. Kick()
  1580.  
  1581. elseif(io.KeyCode == Enum.KeyCode.T)then
  1582. Taunt()
  1583. end
  1584. end)
  1585.  
  1586. Plr.Chatted:connect(function(m)
  1587. if(m == '/e sit')then
  1588. idleCounter = 0
  1589. Sitting = not Sitting
  1590. end
  1591. end)
  1592.  
  1593. while true do
  1594. swait()
  1595. Sine = Sine + Change
  1596. if(not Music)then
  1597. Music = Sound(Char,MusicID,1,3,true,false,true)
  1598. Music.Name = 'Music'
  1599. end
  1600. Music.SoundId = "rbxassetid://"..MusicID
  1601. Music.Parent = Torso
  1602. Music.Pitch = 1
  1603. Music.Volume = 5
  1604. if(not Muted)then
  1605. Music:Resume()
  1606. else
  1607. Music:Pause()
  1608. end
  1609.  
  1610.  
  1611. if(God)then
  1612. Hum.MaxHealth = 1e100
  1613. Hum.Health = 1e100
  1614. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1615. Hum.Name = M.RNG()*100
  1616. end
  1617.  
  1618. 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)
  1619.  
  1620. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1621. 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 < 24 and "Walk" or "Run") or hitfloor and "Idle")
  1622. if(not Effects or not Effects.Parent)then
  1623. Effects = IN("Model",Char)
  1624. Effects.Name = "Effects"
  1625. end
  1626. if(State == 'Run')then
  1627. local wsVal = 7 / (Hum.WalkSpeed/16)
  1628. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1629. Change = 1
  1630. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.5,0,0),.2)
  1631. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.5,0,0),.2)
  1632. elseif(State == 'Walk')then
  1633. local wsVal = 7 / (Hum.WalkSpeed/16)
  1634. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1635. Change = 1
  1636. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-15*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1637. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+15*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1638. else
  1639. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  1640. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  1641. end
  1642.  
  1643. if(State == 'Idle' and NeutralAnims)then
  1644. idleCounter = idleCounter + 1
  1645. else
  1646. Sitting = false
  1647. idleCounter = 0
  1648. end
  1649.  
  1650. Hum.WalkSpeed = WalkSpeed
  1651. if(not Char:FindFirstChildOfClass'Shirt')then
  1652. NewInstance("Shirt",Char,{ShirtTemplate='rbxassetid://236410507'})
  1653. else
  1654. Char:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://236410507'
  1655. end
  1656.  
  1657. if(not Char:FindFirstChildOfClass'Pants')then
  1658. NewInstance("Pants",Char,{PantsTemplate='rbxassetid://236412261'})
  1659. else
  1660. Char:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://236412261'
  1661. end
  1662.  
  1663. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1664.  
  1665. local face = Head:FindFirstChild'face'
  1666. if(not face)then
  1667. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  1668. else
  1669. face.Texture = "rbxassetid://404306534"
  1670. end
  1671.  
  1672. RArm.Color = C3.N(0.1,0.1,0.1)
  1673. LArm.Color = C3.N(0.1,0.1,0.1)
  1674. RLeg.Color = C3.N(0.1,0.1,0.1)
  1675. LLeg.Color = C3.N(0.1,0.1,0.1)
  1676. Torso.Color = C3.N(0.1,0.1,0.1)
  1677. Head.Color = C3.N(0.1,0.1,0.1)
  1678.  
  1679. if(NeutralAnims)then
  1680. if(State == 'Idle')then
  1681. if(not Sitting and idleCounter < 1500)then
  1682. local Alpha = .1
  1683. Change = 1
  1684. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,0+.2*M.C(Sine/24),0)*CF.A(M.R(0+5*M.S(Sine/24)),0,0),Alpha)
  1685. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  1686. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(-15+5*M.C(Sine/24))),Alpha)
  1687. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(15-5*M.C(Sine/24))),Alpha)
  1688. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(-5)),Alpha)
  1689. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(5)),Alpha)
  1690. else
  1691. local Alpha = .1
  1692. Change = 1
  1693. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-2+.2*M.C(Sine/24),0)*CF.A(M.R(0+5*M.S(Sine/24)),0,0),Alpha)
  1694. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  1695. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(90+2*M.C(Sine/24)),0,M.R(15+2*M.C(Sine/24))),Alpha)
  1696. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(15-5*M.C(Sine/24))),Alpha)
  1697. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,2-.2*M.C(Sine/24),-1)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(-5)),Alpha)
  1698. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(-90-5*M.S(Sine/24)),0,M.R(5)),Alpha)
  1699. end
  1700. elseif(State == 'Run')then
  1701. local wsVal = 7 / (Hum.WalkSpeed/16)
  1702. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1703. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1704. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1705. 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)
  1706. 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)
  1707. 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)
  1708. 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)
  1709. elseif(State == 'Walk')then
  1710. local wsVal = 7 / (Hum.WalkSpeed/16)
  1711. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1712. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1713. RJ.C0 = RJ.C0:lerp(CF.N(0,-.1+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/3),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2)
  1714. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  1715. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha)
  1716. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.27*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha)
  1717. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1718. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1719. elseif(State == 'Jump')then
  1720. local Alpha = .1
  1721. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1722. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1723. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1724. 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)
  1725. 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)
  1726. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1727. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1728. elseif(State == 'Fall')then
  1729. local Alpha = .1
  1730. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1731. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1732. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1733. 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)
  1734. 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)
  1735. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1736. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1737. elseif(State == 'Paralyzed')then
  1738. -- paralyzed
  1739. elseif(State == 'Sit')then
  1740. -- sit
  1741. end
  1742. end
  1743.  
  1744. for i,v in next, BloodPuddles do
  1745. local mesh = i:FindFirstChild'CylinderMesh'
  1746. BloodPuddles[i] = v + 1
  1747. if(not mesh or i.Transparency >= 1)then
  1748. i:destroy()
  1749. BloodPuddles[i] = nil
  1750. elseif(v > Frame_Speed*4)then
  1751. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1752. i.Transparency = trans
  1753. if(mesh.Scale.Z > 0)then
  1754. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1755. end
  1756. else
  1757. i.Transparency = 0
  1758. end
  1759. end
  1760. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement