Advertisement
StarzoZero

Roblox FE Mephisto Script

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