Advertisement
NebulaZorua

The Tyrant

Jul 4th, 2018
1,450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.29 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- The Tyrant --
  3. -- I was originally planning this to be a Mr Bye Bye bootleg --
  4. -- But shack would kill me --
  5. -- Discord: Nebula the Zorua#6969
  6. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  7.  
  8. wait(1/60)
  9.  
  10. --// Shortcut Variables \\--
  11. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  12. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  13. local C3 = {D=function(c31,fact) return Color3.new(c31.r/fact,c31.g/fact,c31.b/fact) end,S=function(c31,c32) return Color3.new(c31.r-c32.r,c31.g-c32.g,c31.b-c32.b) end,tRGB= function(c3) return c3.r*255,c3.g*255,c3.b*255 end,N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  14. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  15. 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}
  16. local R3 = {N=Region3.new}
  17. local De = S.Debris
  18. local WS = workspace
  19. local Lght = S.Lighting
  20. local RepS = S.ReplicatedStorage
  21. local IN = Instance.new
  22. local Plrs = S.Players
  23.  
  24. --// Initializing \\--
  25. local Plr = Plrs.LocalPlayer
  26. local Char = Plr.Character
  27. local Hum = Char:FindFirstChildOfClass'Humanoid'
  28. local RArm = Char["Right Arm"]
  29. local LArm = Char["Left Arm"]
  30. local RLeg = Char["Right Leg"]
  31. local LLeg = Char["Left Leg"]
  32. local Root = Char:FindFirstChild'HumanoidRootPart'
  33. local Torso = Char.Torso
  34. local Head = Char.Head
  35. local NeutralAnims = true
  36. local Attack = false
  37. local Debounces = {Debounces={}}
  38. local Mouse = Plr:GetMouse()
  39. local Hit = {}
  40. local Sine = 0
  41. local Change = 1
  42. local BloodPuddles = {}
  43.  
  44. local Effects = IN("Folder",Char)
  45. Effects.Name = "Effects"
  46.  
  47.  
  48. --// Debounce System \\--
  49.  
  50.  
  51. function Debounces:New(name,cooldown)
  52. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  53. setmetatable(aaaaa,{__index = Debounces})
  54. Debounces.Debounces[name] = aaaaa
  55. return aaaaa
  56. end
  57.  
  58. function Debounces:Use(overrideUsable)
  59. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  60. if(self.Usable or overrideUsable)then
  61. self.Usable = false
  62. self.CoolingDown = true
  63. local LastUse = time()
  64. self.LastUse = LastUse
  65. delay(self.Cooldown or 2,function()
  66. if(self.LastUse == LastUse)then
  67. self.CoolingDown = false
  68. self.Usable = true
  69. end
  70. end)
  71. end
  72. end
  73.  
  74. function Debounces:Get(name)
  75. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  76. for i,v in next, Debounces.Debounces do
  77. if(i == name)then
  78. return v;
  79. end
  80. end
  81. end
  82.  
  83. function Debounces:GetProgressPercentage()
  84. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  85. if(self.CoolingDown and not self.Usable)then
  86. return math.max(
  87. math.floor(
  88. (
  89. (time()-self.LastUse)/self.Cooldown or 2
  90. )*100
  91. )
  92. )
  93. else
  94. return 100
  95. end
  96. end
  97.  
  98. --// Instance Creation Functions \\--
  99. local baseSound = IN("Sound")
  100. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  101. local Sound = baseSound:Clone()
  102. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  103. Sound.Pitch = pitch or 1
  104. Sound.Volume = volume or 1
  105. Sound.Looped = looped or false
  106. if(autoPlay)then
  107. coroutine.wrap(function()
  108. repeat wait() until Sound.IsLoaded
  109. Sound.Playing = autoPlay or false
  110. end)()
  111. end
  112. if(not looped and effect)then
  113. Sound.Stopped:connect(function()
  114. Sound.Volume = 0
  115. Sound:destroy()
  116. end)
  117. elseif(effect)then
  118. warn("Sound can't be looped and a sound effect!")
  119. end
  120. Sound.Parent =parent or Torso
  121. return Sound
  122. end
  123. function Part(parent,color,material,size,cframe,anchored,cancollide)
  124. local part = IN("Part")
  125. part.Parent = parent or Char
  126. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  127. part.Material = material or Enum.Material.SmoothPlastic
  128. part.TopSurface,part.BottomSurface=10,10
  129. part.Size = size or V3.N(1,1,1)
  130. part.CFrame = cframe or CF.N(0,0,0)
  131. part.CanCollide = cancollide or false
  132. part.Anchored = anchored or false
  133. return part
  134. end
  135.  
  136. function Weld(part0,part1,c0,c1)
  137. local weld = IN("Weld")
  138. weld.Parent = part0
  139. weld.Part0 = part0
  140. weld.Part1 = part1
  141. weld.C0 = c0 or CF.N()
  142. weld.C1 = c1 or CF.N()
  143. return weld
  144. end
  145.  
  146. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  147. local part = IN("SpecialMesh")
  148. part.MeshId = meshid or ""
  149. part.TextureId = textid or ""
  150. part.Scale = scale or V3.N(1,1,1)
  151. part.Offset = offset or V3.N(0,0,0)
  152. part.MeshType = meshtype or Enum.MeshType.Sphere
  153. part.Parent = parent
  154. return part
  155. end
  156.  
  157. NewInstance = function(instance,parent,properties)
  158. local inst = Instance.new(instance)
  159. inst.Parent = parent
  160. if(properties)then
  161. for i,v in next, properties do
  162. pcall(function() inst[i] = v end)
  163. end
  164. end
  165. return inst;
  166. end
  167.  
  168. function Clone(instance,parent,properties)
  169. local inst = instance:Clone()
  170. inst.Parent = parent
  171. if(properties)then
  172. for i,v in next, properties do
  173. pcall(function() inst[i] = v end)
  174. end
  175. end
  176. return inst;
  177. end
  178.  
  179. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  180. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  181. local Sound = IN("Sound")
  182. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  183. Sound.Pitch = pitch or 1
  184. Sound.Volume = volume or 1
  185. Sound.Looped = looped or false
  186. if(autoPlay)then
  187. coroutine.wrap(function()
  188. repeat wait() until Sound.IsLoaded
  189. Sound.Playing = autoPlay or false
  190. end)()
  191. end
  192. if(not looped and effect)then
  193. Sound.Stopped:connect(function()
  194. Sound.Volume = 0
  195. soundPart:destroy()
  196. end)
  197. elseif(effect)then
  198. warn("Sound can't be looped and a sound effect!")
  199. end
  200. Sound.Parent = soundPart
  201. return Sound
  202. end
  203.  
  204.  
  205. --// Extended ROBLOX tables \\--
  206. 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})
  207. --// Require stuff \\--
  208. function CamShake(who,times,intense,origin)
  209. coroutine.wrap(function()
  210. if(script:FindFirstChild'CamShake')then
  211. local cam = script.CamShake:Clone()
  212. cam:WaitForChild'intensity'.Value = intense
  213. cam:WaitForChild'times'.Value = times
  214.  
  215. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  216. cam.Parent = who
  217. wait()
  218. cam.Disabled = false
  219. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  220. local intensity = intense
  221. if(Hum and not Hum:FindFirstChild'CamShaking')then
  222. local cam = workspace.CurrentCamera
  223. local oCO = Hum.CameraOffset
  224. local cs = Instance.new("BoolValue",Hum)
  225. cs.Name = "CamShaking"
  226. for i = 1, times do
  227. local camDistFromOrigin
  228. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  229. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin.Position).magnitude )/25
  230. elseif(typeof(origin) == 'Vector3')then
  231. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin).magnitude )/25
  232. end
  233. if(camDistFromOrigin)then
  234. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  235. end
  236. --cam.CoordinateFrame = cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  237. if(Hum)then
  238. Hum.CameraOffset = Vector3.new(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  239. end
  240. swait()
  241. end
  242. if(Hum)then
  243. Hum.CameraOffset = oCO
  244. end
  245. cs:destroy()
  246. end
  247. end
  248. end)()
  249. end
  250.  
  251.  
  252. function CamShakeAll(times,intense,origin)
  253. for _,v in next, Plrs:players() do
  254. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  255. end
  256. end
  257.  
  258. function ServerScript(code)
  259. if(script:FindFirstChild'Loadstring')then
  260. local load = script.Loadstring:Clone()
  261. load:WaitForChild'Sauce'.Value = code
  262. load.Disabled = false
  263. load.Parent = workspace
  264. elseif(NS and typeof(NS) == 'function')then
  265. NS(code,workspace)
  266. else
  267. warn("no serverscripts lol")
  268. end
  269. end
  270.  
  271. function LocalOnPlayer(who,code)
  272. ServerScript([[
  273. wait()
  274. script.Parent=nil
  275. if(not _G.Http)then _G.Http = game:service'HttpService' end
  276.  
  277. local Http = _G.Http or game:service'HttpService'
  278.  
  279. local source = ]].."[["..code.."]]"..[[
  280. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  281. local asd = Http:PostAsync(link,source)
  282. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  283. local ID = Http:JSONDecode(asd).Result.Require_ID
  284. local vs = require(ID).VORTH_SCRIPT
  285. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  286. ]])
  287. end
  288.  
  289. function Nametag(color,tag)
  290. local r,g,b = C3.tRGB(color)
  291. local c3 = C3.RGB(r/2,g/2,b/2)
  292. local name = script:FindFirstChild'Nametag' and script.Nametag:Clone();
  293. if(not name)then
  294. name = NewInstance("BillboardGui",nil,{MaxDistance=150,AlwaysOnTop=true,Active=false,Size=UDim2.new(5,0,1,0),SizeOffset=Vector2.new(0,6)})
  295. NewInstance("TextLabel",name,{Name='PlayerName',BackgroundTransparency=1,Size=UDim2.new(1,0,1,0),Text=Plr.Name,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextSize=14,TextScaled=true,TextWrapped=true,})
  296. NewInstance("TextLabel",name,{Name='Title',BackgroundTransparency=1,Size=UDim2.new(2.5,0,1.5,0),Position=UDim2.new(-.75,0,.9,0),Text=tag,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextStrokeTransparency=0,TextSize=14,TextScaled=true,TextWrapped=true,})
  297. end
  298. name.Title.Text = tag
  299. name.Title.TextColor3 = color
  300. name.Title.TextStrokeColor3 = c3
  301.  
  302. name.PlayerName.Text = Plr.Name
  303. name.PlayerName.TextColor3 = color
  304. name.PlayerName.TextStrokeColor3 = c3
  305.  
  306. name.Parent = Char
  307. name.Adornee = Head
  308. name.PlayerToHideFrom = Plr
  309.  
  310. return name
  311. end
  312.  
  313. --// Customization \\--
  314.  
  315. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  316. local Remove_Hats = false
  317. local Remove_Clothing = false
  318. local PlayerSize = 1
  319. local DamageColor = BrickColor.new'Really red'
  320. local MusicID = 0
  321. local God = false
  322. local Muted = false
  323.  
  324. local WalkSpeed = 16
  325.  
  326. --// Weapon and GUI creation, and Character Customization \\--
  327.  
  328. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  329. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  330.  
  331. if(PlayerSize ~= 1)then
  332. for _,v in next, Char:GetDescendants() do
  333. if(v:IsA'BasePart')then
  334. v.Size = v.Size * PlayerSize
  335. end
  336. end
  337. end
  338.  
  339.  
  340. local Music = Sound(Char,MusicID,1,3,true,false,true)
  341. Music.Name = 'Music'
  342.  
  343. --// Stop animations \\--
  344. for _,v in next, Hum:GetPlayingAnimationTracks() do
  345. v:Stop();
  346. end
  347.  
  348. pcall(game.Destroy,Char:FindFirstChild'Animate')
  349. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  350.  
  351. --// Joints \\--
  352.  
  353. 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)})
  354. 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)})
  355. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  356. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  357. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  358. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  359.  
  360. local LSC0 = LS.C0
  361. local RSC0 = RS.C0
  362. local NKC0 = NK.C0
  363. local LHC0 = LH.C0
  364. local RHC0 = RH.C0
  365. local RJC0 = RJ.C0
  366.  
  367. --// Artificial HB \\--
  368.  
  369. local ArtificialHB = IN("BindableEvent", script)
  370. ArtificialHB.Name = "Heartbeat"
  371.  
  372. script:WaitForChild("Heartbeat")
  373.  
  374. local tf = 0
  375. local allowframeloss = false
  376. local tossremainder = false
  377. local lastframe = tick()
  378. local frame = 1/Frame_Speed
  379. ArtificialHB:Fire()
  380.  
  381. game:GetService("RunService").Heartbeat:connect(function(s, p)
  382. tf = tf + s
  383. if tf >= frame then
  384. if allowframeloss then
  385. script.Heartbeat:Fire()
  386. lastframe = tick()
  387. else
  388. for i = 1, math.floor(tf / frame) do
  389. ArtificialHB:Fire()
  390. end
  391. lastframe = tick()
  392. end
  393. if tossremainder then
  394. tf = 0
  395. else
  396. tf = tf - frame * math.floor(tf / frame)
  397. end
  398. end
  399. end)
  400.  
  401. function swait(num)
  402. if num == 0 or num == nil then
  403. ArtificialHB.Event:wait()
  404. else
  405. for i = 0, num do
  406. ArtificialHB.Event:wait()
  407. end
  408. end
  409. end
  410.  
  411.  
  412. --// Effect Function(s) \\--
  413.  
  414. function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis)
  415. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  416. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  417. local Scale = 1
  418. local speeder = Speed
  419. if(Type == "Multiply")then
  420. Scale = 1*Inc
  421. elseif(Type == "Divide")then
  422. Scale = 1/Inc
  423. end
  424. coroutine.wrap(function()
  425. for i = 0,10/Lifetime,.1 do
  426.  
  427. if(Type == "Multiply")then
  428. Scale = Scale - 0.01*Inc/Lifetime
  429. elseif(Type == "Divide")then
  430. Scale = Scale - 0.01/Inc*Lifetime
  431. end
  432. speeder = speeder - 0.01*Speed*Lifetime
  433. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  434. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  435. if(Axis == 'x')then
  436. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0)
  437. elseif(Axis == 'y')then
  438. fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0)
  439. elseif(Axis == 'z')then
  440. fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime)
  441. elseif(Axis == 'xyz')then
  442. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime)
  443. elseif(Axis == 'yz')then
  444. fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime)
  445. elseif(Axis == 'xz')then
  446. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime)
  447. else
  448. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0)
  449. end
  450. if(fxP.Transparency >= 1)then break end
  451. swait()
  452. end
  453. fxP:destroy()
  454. end)()
  455. return fxP
  456. end
  457.  
  458. function NoobySphere2(Lifetime,Type,Pos,StartSize,Inc,Color,MeshId)
  459. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos,true,false)
  460. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  461.  
  462. local Scale = 1
  463. if(Type == "Multiply")then
  464. Scale = 1*Inc
  465. elseif(Type == "Divide")then
  466. Scale = 1/Inc
  467. end
  468. coroutine.wrap(function()
  469. for i = 0,10/Lifetime,.1 do
  470.  
  471. if(Type == "Multiply")then
  472. Scale = Scale - 0.01*Inc/Lifetime
  473. elseif(Type == "Divide")then
  474. Scale = Scale - 0.01/Inc*Lifetime
  475. end
  476. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  477. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  478. swait()
  479. end
  480. fxP:destroy()
  481. end)()
  482. end
  483.  
  484. function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
  485. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  486. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  487. local Scale = 1
  488. local speeder = Speed
  489. if(Type == "Multiply")then
  490. Scale = 1*Inc
  491. elseif(Type == "Divide")then
  492. Scale = 1/Inc
  493. end
  494. coroutine.wrap(function()
  495. for i = 0,10/Lifetime,.1 do
  496. if(Type == "Multiply")then
  497. Scale = Scale - 0.01*Inc/Lifetime
  498. elseif(Type == "Divide")then
  499. Scale = Scale - 0.01/Inc*Lifetime
  500. end
  501. if(Fade)then
  502. fxP.Transparency = i/(10/Lifetime)
  503. end
  504. speeder = speeder - 0.01*Speed*Lifetime/10
  505. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  506. fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  507. swait()
  508. end
  509. fxP:destroy()
  510. end)()
  511. end
  512.  
  513. function Bezier(startpos, pos2, pos3, endpos, t)
  514. local A = startpos:lerp(pos2, t)
  515. local B = pos2:lerp(pos3, t)
  516. local C = pos3:lerp(endpos, t)
  517. local lerp1 = A:lerp(B, t)
  518. local lerp2 = B:lerp(C, t)
  519. local cubic = lerp1:lerp(lerp2, t)
  520. return cubic
  521. end
  522. function Puddle(hit,pos,norm,data)
  523. local material = data.Material or Enum.Material.SmoothPlastic
  524. local color = data.Color or BrickColor.new'Crimson'
  525. local size = data.Size or 1
  526.  
  527. if(hit.Name ~= 'BloodPuddle')then
  528. 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'})
  529. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  530. BloodPuddles[Puddle] = 0
  531. else
  532. local cyl = hit:FindFirstChild'CylinderMesh'
  533. if(cyl)then
  534. BloodPuddles[hit] = 0
  535. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  536. hit.Transparency = 0
  537. end
  538. end
  539. end
  540.  
  541. function Droplet(data)
  542. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  543. local Size = data.Size or 1
  544. local Color = data.Color or BrickColor.new'Crimson'
  545. local StudsPerFrame = data.Speed or 1
  546. local Shape = data.Shape or 'Ball'
  547. local Frames = (data.Frames or 160)+1
  548. local Pos = data.Origin or Root.CFrame
  549. local Direction = data.Direction or Root.CFrame.lookVector*100000
  550. local Material = data.Material or Enum.Material.SmoothPlastic
  551. local Drop = data.Drop or .05
  552. local Ignorelist = data.Ignorelist or nil
  553.  
  554. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  555. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  556. if(Shape == 'Ball')then
  557. BMesh.MeshType = Enum.MeshType.Sphere
  558. elseif(Shape == 'Head')then
  559. BMesh.MeshType = Enum.MeshType.Head
  560. elseif(Shape == 'Cylinder')then
  561. BMesh.MeshType = Enum.MeshType.Cylinder
  562. end
  563.  
  564. coroutine.wrap(function()
  565. for i = 1, Frames do
  566. Pos = Pos * CF.N(0,-(Drop*i),0)
  567. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame)
  568. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  569. Puddle(hit,pos,norm,data)
  570. break;
  571. else
  572. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  573. end
  574. swait()
  575. end
  576. Bullet:destroy()
  577. end)()
  578. end
  579.  
  580. function ShootBullet(data)
  581. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  582. local Size = data.Size or V3.N(2,2,2)
  583. local Color = data.Color or BrickColor.new'Crimson'
  584. local StudsPerFrame = data.Speed or 10
  585. local Shape = data.Shape or 'Ball'
  586. local Frames = data.Frames or 160
  587. local Pos = data.Origin or Torso.CFrame
  588. local Direction = data.Direction or Mouse.Hit
  589. local Material = data.Material or Enum.Material.Neon
  590. local OnHit = data.HitFunction or function(hit,pos)
  591.  
  592. end
  593.  
  594. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  595. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  596. if(Shape == 'Ball')then
  597. BMesh.MeshType = Enum.MeshType.Sphere
  598. elseif(Shape == 'Head')then
  599. BMesh.MeshType = Enum.MeshType.Head
  600. elseif(Shape == 'Cylinder')then
  601. BMesh.MeshType = Enum.MeshType.Cylinder
  602. end
  603.  
  604. coroutine.wrap(function()
  605. for i = 1, Frames+1 do
  606. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  607. if(hit)then
  608. OnHit(hit,pos,norm,dist)
  609. break;
  610. else
  611. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  612. end
  613. swait()
  614. end
  615. Bullet:destroy()
  616. end)()
  617.  
  618. end
  619.  
  620.  
  621.  
  622. function Zap2(data)
  623. local Color = data.Color or BrickColor.new'Electric blue'
  624. local StartPos = data.Start or Torso.Position
  625. local EndPos = data.End or Mouse.Hit.p
  626. local SegLength = data.SegL or 2
  627. local Thicc = data.Thickness or 0.5
  628. local Fades = data.Fade or 45
  629. local Parent = data.Parent or Effects
  630. local MaxD = data.MaxDist or 200
  631. local Branch = data.Branches or false
  632. local Material = data.Material or Enum.Material.Neon
  633. local Raycasts = data.Raycasts or false
  634. local Offset = data.Offset or {0,360}
  635. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  636. if((StartPos-EndPos).magnitude > MaxD)then
  637. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  638. end
  639. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  640. if(Raycasts)then
  641. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  642. end
  643. local segments = dist/SegLength
  644. local model = IN("Model",Parent)
  645. model.Name = 'Lightning'
  646. local Last;
  647. for i = 1, segments do
  648. local size = (segments-i)/25
  649. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  650. if(AddMesh)then IN("CylinderMesh",prt) end
  651. if(Last and math.floor(segments) == i)then
  652. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  653. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  654. 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)
  655. elseif(not Last)then
  656. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  657. else
  658. 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)
  659. end
  660. Last = prt
  661. if(Branch)then
  662. local choice = M.RNG(1,7+((segments-i)*2))
  663. if(choice == 1)then
  664. local LastB;
  665. for i2 = 1,M.RNG(2,5) do
  666. local size2 = ((segments-i)/35)/i2
  667. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  668. if(AddMesh)then IN("CylinderMesh",prt) end
  669. if(not LastB)then
  670. 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)
  671. else
  672. 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)
  673. end
  674. LastB = prt
  675. end
  676. end
  677. end
  678. end
  679. if(Fades > 0)then
  680. coroutine.wrap(function()
  681. for i = 1, Fades do
  682. for _,v in next, model:children() do
  683. if(v:IsA'BasePart')then
  684. v.Transparency = (i/Fades)
  685. end
  686. end
  687. swait()
  688. end
  689. model:destroy()
  690. end)()
  691. else
  692. S.Debris:AddItem(model,.01)
  693. end
  694. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  695. end
  696.  
  697. function Tween(obj,props,time,easing,direction,repeats,backwards)
  698. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  699. local tween = S.TweenService:Create(obj, info, props)
  700.  
  701. tween:Play()
  702. end
  703.  
  704. function Effect(data)
  705. local Color = data.Color or C3.N(1,1,1)
  706.  
  707. local Material = data.Material or Enum.Material.Neon;
  708. local MeshD = data.Mesh or {};
  709. local SoundD = data.Sound or nil;
  710. local Shape = data.Shape or Enum.PartType.Block;
  711. local Size = data.StartSize or V3.N(.1,.1,.1);
  712. local ESize = data.EndSize or V3.N(6,6,6);
  713. local Direction = data.Direction or nil;
  714. local Speed = data.Speed or .1; -- studs per second
  715. local Boomerang = data.Boomerang or {Enabled=false,SizeBoomerang=0,MoveBoomerang=0};
  716. local Pos = data.CFrame or Torso.CFrame;
  717. local Frames = data.Frames or 60;
  718. local RotInc = data.RotInc or {0,0,0}
  719. local StartTrans = data.TransStart or 0;
  720. local EndTrans = data.TransEnd or 1;
  721.  
  722. if(typeof(RotInc) == 'number')then RotInc = {RotInc,RotInc,RotInc}; end
  723. local S,PM,P;
  724.  
  725. coroutine.wrap(function()
  726. P = Part(Effects,Color,Material,V3.N(1,1,1),Pos,true,false)
  727.  
  728. if(MeshD == "Blast")then
  729. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://20329976','',Size,V3.N(0,0,-Size.X/8))
  730. elseif(MeshD == 'Ring')then
  731. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://559831844','',Size,V3.N(0,0,0))
  732. elseif(MeshD == 'Slash1')then
  733. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://662586858','',V3.N(Size.X/10,.001,Size.Z/10),V3.N(0,0,0))
  734. elseif(MeshD == 'Slash2')then
  735. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://448386996','',V3.N(Size.X/1000,Size.Y/100,Size.Z/100),V3.N(0,0,0))
  736. elseif(MeshD == 'Slash3')then
  737. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',Size,V3.N(0,0,0))
  738. elseif(MeshD == 'Tornado1')then
  739. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://443529437','',Size/10,V3.N(0,0,0))
  740. elseif(MeshD == 'Tornado2')then
  741. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://168892432','',Size/4,V3.N(0,0,0))
  742. elseif(MeshD == 'Skull')then
  743. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',Size*2,V3.N(0,0,0))
  744. elseif(MeshD == 'Crystal')then
  745. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://9756362','',Size,V3.N(0,0,0))
  746. elseif(MeshD == 'Cloud')then
  747. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://1095708','',Size,V3.N(0,0,0))
  748. elseif(typeof(MeshD) == 'table')then
  749. local Type = MeshD.Type or Enum.MeshType.Brick
  750. local ID = MeshD.ID or '';
  751. local Tex = MeshD.Texture or '';
  752. local Offset = MeshD.Offset or V3.N(0,0,0)
  753. PM = Mesh(P,Type,ID,Tex,Size,Offset)
  754. else
  755. PM = Mesh(P,Enum.MeshType.Brick,'','',Size)
  756. end
  757.  
  758. if(typeof(SoundD) == 'table')then
  759. local ID = SoundD.ID or '';
  760. local Pitch = SoundD.Pitch or 1;
  761. local Volume = SoundD.Volume or 1;
  762. S = Sound(P,ID,Pitch,Volume,false,true,true)
  763. elseif(typeof(SoundD) == 'string' or typeof(SoundD) == 'number')then
  764. S = Sound(P,SoundD,1,1,false,true,true)
  765. end
  766. local grow = (Size - ESize)
  767.  
  768. local SizeBoomer = 1+Boomerang.SizeBoomerang/50
  769. local MoveBoomer = 1+Boomerang.MoveBoomerang/50
  770. if(Boomerang and Boomerang.Enabled)then
  771. grow = (Size - ESize)*(SizeBoomer+1)
  772. end
  773. local TransChange = StartTrans - EndTrans
  774. for i = 0, Frames do
  775. local MoveSpeed = -Speed
  776. local scaleGay = grow/Frames
  777. if(Boomerang and Boomerang.Enabled)then -- thanks shack
  778. MoveSpeed = -(Speed)*((1-(i/Frames)*MoveBoomer))
  779. scaleGay = (V3.N((grow.X)*((1 - (i/Frames)*SizeBoomer)),(grow.Y)*((1 - (i/Frames)*SizeBoomer)),(grow.Z)*((1 - (i/Frames)*SizeBoomer)))*SizeBoomer)/Frames
  780. end
  781. PM.Scale = PM.Scale - scaleGay
  782. P.Transparency = P.Transparency - TransChange/Frames
  783.  
  784.  
  785. if(RotInc == 'random')then
  786. P.CFrame=P.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  787. elseif(typeof(RotInc) == 'table')then
  788. P.CFrame=P.CFrame*CF.A(unpack(RotInc))
  789. end
  790.  
  791. if(PM.MeshId == 'rbxassetid://20329976')then
  792. PM.Offset = V3.N(0,0,-PM.Scale.Z/8)
  793. elseif(PM.MeshId == 'rbxassetid://4770583')then
  794. scaleGay = scaleGay*2
  795. elseif(PM.MeshId == 'rbxassetid://168892432')then
  796. scaleGay = scaleGay/4
  797. elseif(PM.MeshId == 'rbxassetid://443529437')then
  798. scaleGay = scaleGay/10
  799. elseif(PM.MeshId == 'rbxassetid://443529437')then
  800. scaleGay = scaleGay/10
  801. end
  802.  
  803. if(Direction and Speed)then
  804. local Orientation = P.Orientation
  805. P.CFrame = CF.N(P.Position,P.Position+Direction)*CF.N(0,0,MoveSpeed)
  806. P.Orientation = Orientation
  807. end
  808. swait()
  809. end
  810.  
  811. P.Transparency = 1
  812. if(S and S.Playing)then
  813. repeat swait() until not S.Parent or not S.Playing
  814. end
  815. if(S and S.Parent)then
  816. S:destroy()
  817. end
  818. end)()
  819.  
  820.  
  821. end
  822.  
  823.  
  824. --// Other Functions \\ --
  825.  
  826. function CastRay(startPos,endPos,range,ignoreList)
  827. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  828. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  829. return part,pos,norm,(pos and (startPos-pos).magnitude)
  830. end
  831.  
  832. function getRegion(point,range,ignore)
  833. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  834. end
  835.  
  836. function clerp(startCF,endCF,alpha)
  837. return startCF:lerp(endCF, alpha)
  838. end
  839.  
  840. function GetTorso(char)
  841. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  842. end
  843.  
  844.  
  845. function ShowDamage(Pos, Text, Time, Color)
  846. coroutine.wrap(function()
  847. local Rate = (1 / Frame_Speed)
  848. local Pos = (Pos or Vector3.new(0, 0, 0))
  849. local Text = (Text or "")
  850. local Time = (Time or 2)
  851. local Color = (Color or Color3.new(1, 0, 1))
  852. local EffectPart = NewInstance("Part",Effects,{
  853. Material=Enum.Material.SmoothPlastic,
  854. Reflectance = 0,
  855. Transparency = 1,
  856. BrickColor = BrickColor.new(Color),
  857. Name = "Effect",
  858. Size = Vector3.new(0,0,0),
  859. Anchored = true,
  860. CFrame = CF.N(Pos)
  861. })
  862. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  863. Size = UDim2.new(1.25, 0, 1.25, 0),
  864. Adornee = EffectPart,
  865. })
  866. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  867. BackgroundTransparency = 1,
  868. Size = UDim2.new(1, 0, 1, 0),
  869. Text = Text,
  870. Font = "Bodoni",
  871. TextColor3 = Color,
  872. TextStrokeColor3 = Color3.new(0,0,0),
  873. TextStrokeTransparency=0,
  874. TextScaled = true,
  875. })
  876. S.Debris:AddItem(EffectPart, (Time))
  877. EffectPart.Parent = workspace
  878. delay(0, function()
  879. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  880. local Frames = (Time / Rate)
  881. for Frame = 1, Frames do
  882. swait()
  883. local Percent = (Frame / Frames)
  884. TextLabel.TextTransparency = Percent
  885. TextLabel.TextStrokeTransparency = Percent
  886. end
  887. if EffectPart and EffectPart.Parent then
  888. EffectPart:Destroy()
  889. end
  890. end) end)()
  891. end
  892.  
  893. function DealDamage(data)
  894. local Who = data.Who;
  895. local MinDam = data.MinimumDamage or 15;
  896. local MaxDam = data.MaximumDamage or 30;
  897. local MaxHP = data.MaxHP or 1e5;
  898.  
  899. local DB = data.Debounce or .2;
  900.  
  901. local CritData = data.Crit or {}
  902. local CritChance = CritData.Chance or 0;
  903. local CritMultiplier = CritData.Multiplier or 1;
  904.  
  905. local DamageEffects = data.DamageFX or {}
  906. local DamageType = DamageEffects.Type or "Normal"
  907. local DeathFunction = DamageEffects.DeathFunction
  908.  
  909. assert(Who,"Specify someone to damage!")
  910.  
  911. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  912. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  913.  
  914. local canHit = true
  915. if(Humanoid)then
  916. for _, p in pairs(Hit) do
  917. if p[1] == Humanoid then
  918. if(time() - p[2] <= DB) then
  919. canHit = false
  920. else
  921. Hit[_] = nil
  922. end
  923. end
  924. end
  925. if(canHit)then
  926. table.insert(Hit,{Humanoid,time()})
  927. local HitTorso = GetTorso(Who)
  928. local player = S.Players:GetPlayerFromCharacter(Who)
  929. if(not player or player.UserId ~= 5719877 and player.UserId ~= 19081129)then
  930. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  931. print'Got kill'
  932. Humanoid.Health = 0;
  933. Who:BreakJoints();
  934. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  935. else
  936. local c = Instance.new("ObjectValue",Hum)
  937. c.Name = "creator"
  938. c.Value = Plr
  939. S.Debris:AddItem(c,0.35)
  940. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  941. 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)
  942. end
  943. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  944. Humanoid.Health = Humanoid.Health - DoneDamage
  945.  
  946. if(DamageType == 'Knockback' and HitTorso)then
  947. local up = DamageEffects.KnockUp or 25
  948. local back = DamageEffects.KnockBack or 25
  949. local origin = DamageEffects.Origin or Root
  950. local decay = DamageEffects.Decay or .5;
  951. if(typeof(origin) == 'Instance' and origin:IsA'BasePart') then origin = origin.CFrame end
  952. if(typeof(origin) == 'Vector3') then origin = CF.N(origin) end
  953. local bfos = Instance.new("BodyVelocity",HitTorso)
  954. bfos.P = 20000
  955. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  956. bfos.Velocity = Vector3.new(0,up,0) + (origin.lookVector * back)
  957. S.Debris:AddItem(bfos,decay)
  958. end
  959. end
  960. end
  961. end
  962. end
  963. end
  964.  
  965. function AOEDamage(where,range,options)
  966. local hit = {}
  967. for _,v in next, getRegion(where,range,{Char}) do
  968. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  969. local callTable = {Who=v.Parent}
  970. hit[v.Parent] = true
  971. for _,v in next, options do callTable[_] = v end
  972. DealDamage(callTable)
  973. end
  974. end
  975. return hit
  976. end
  977.  
  978. function AOEHeal(where,range,amount)
  979. local healed = {}
  980. for _,v in next, getRegion(where,range,{Char}) do
  981. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  982. if(hum and not healed[hum])then
  983. hum.Health = hum.Health + amount
  984. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  985. 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)
  986. end
  987. end
  988. end
  989. end
  990.  
  991. function Stomp()
  992. Attack = true
  993. NeutralAnims = false
  994. WalkSpeed = 0
  995. Tween(RJ,{C0=RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0)},.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  996. Tween(NK,{C0=NKC0*CF.A(M.R(15),0,0)},.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  997. Tween(LS,{C0=LSC0*CF.A(M.R(15),M.R(15),M.R(-15))},.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  998. Tween(RS,{C0=RSC0*CF.A(M.R(15),M.R(-15),M.R(15))},.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  999. Tween(LH,{C0=LHC0*CF.N(0,1,-.7)*CF.A(M.R(-25),0,0)},.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1000. Tween(RH,{C0=RHC0*CF.A(M.R(-25),0,0)},.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1001. swait(.25*Frame_Speed)
  1002. Tween(RJ,{C0=RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0)},.07,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1003. Tween(NK,{C0=NKC0*CF.A(M.R(-15),0,0)},.07,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1004. Tween(LS,{C0=LSC0*CF.A(M.R(-35),M.R(15),M.R(-15))},.07,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1005. Tween(RS,{C0=RSC0*CF.A(M.R(-35),M.R(-15),M.R(15))},.07,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1006. Tween(LH,{C0=LHC0*CF.N(0,.15,-.7)*CF.A(M.R(25),0,0)},.07,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1007. Tween(RH,{C0=RHC0*CF.A(M.R(25),0,0)},.1,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  1008. swait(.04*Frame_Speed)
  1009. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(LLeg.CFrame.p,((CFrame.new(LLeg.Position,LLeg.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1010. CamShakeAll(15,100,posfloor)
  1011. AOEDamage(posfloor,32,{MinimumDamage=35,MaximumDamage=75,DamageFX={Type='Knockback',KnockBack=50,KnockUp=50,Origin=LLeg}})
  1012. SoundPart(331666100,1,10,false,true,true,CF.N(posfloor))
  1013. Effect{
  1014. StartSize=V3.N(.5,.5,.5),
  1015. CFrame=CF.N(posfloor),
  1016. RotInc={0,.1,0},
  1017. Color=(hitfloor and hitfloor.Color or C3.N(1,1,1)),
  1018. Color2=C3.N(0,0,0),
  1019. Mesh='Blast',
  1020. EndSize=V3.N(3,2,3),
  1021. Boomerang={Enabled=true,SizeBoomerang=35,MoveBoomerang=0}
  1022. }
  1023. Effect{
  1024. StartSize=V3.N(.5,.5,.5),
  1025. CFrame=CF.N(posfloor),
  1026. RotInc={0,-.1,0},
  1027. Color=(hitfloor and hitfloor.Color or C3.N(1,1,1)),
  1028. Color2=C3.N(0,0,0),
  1029. Mesh='Blast',
  1030. EndSize=V3.N(4,2,4),
  1031. Boomerang={Enabled=true,SizeBoomerang=50,MoveBoomerang=0}
  1032. }
  1033. Effect{
  1034. Frames=30,
  1035. StartSize=V3.N(.5,.5,.5),
  1036. CFrame=CF.N(posfloor)*CF.A(M.R(90),0,0),
  1037. RotInc={0,0,0},
  1038. Color=(hitfloor and hitfloor.Color or C3.N(1,1,1)),
  1039. Color2=C3.N(0,0,0),
  1040. Mesh='Ring',
  1041. EndSize=V3.N(15,15,.5),
  1042. Boomerang={Enabled=true,SizeBoomerang=35,MoveBoomerang=0}
  1043. }
  1044. swait(.21*Frame_Speed)
  1045. Attack = false
  1046. NeutralAnims = true
  1047. WalkSpeed = 16
  1048. end
  1049.  
  1050. Mouse.Button1Down:connect(function()
  1051. if(Attack)then return end
  1052. Stomp()
  1053. end)
  1054.  
  1055.  
  1056. --// Wrap it all up \\--
  1057.  
  1058. while true do
  1059. swait()
  1060. Sine = Sine + Change
  1061. if(not Music or not Music.Parent)then
  1062. local tp = (Music and Music.TimePosition)
  1063. Music = Sound(Char,MusicID,1,10,true,false,true)
  1064. Music.Name = 'Music'
  1065. Music.TimePosition = tp
  1066. end
  1067. Music.SoundId = "rbxassetid://"..MusicID
  1068. Music.Parent = Torso
  1069. Music.Pitch = 1
  1070. Music.Volume = 3
  1071. if(not Muted)then
  1072. Music:Resume()
  1073. else
  1074. Music:Pause()
  1075. end
  1076.  
  1077.  
  1078. if(God)then
  1079. Hum.MaxHealth = 1e100
  1080. Hum.Health = 1e100
  1081. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1082. Hum.Name = M.RNG()*100
  1083. end
  1084.  
  1085. 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)
  1086.  
  1087. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1088. 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")
  1089. if(not Effects or not Effects.Parent)then
  1090. Effects = IN("Model",Char)
  1091. Effects.Name = "Effects"
  1092. end
  1093. if(State == 'Run')then
  1094. local wsVal = 7 / (Hum.WalkSpeed/16)
  1095. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1096. Change = 1
  1097. 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)
  1098. 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)
  1099. elseif(State == 'Walk')then
  1100. local wsVal = 7 / (Hum.WalkSpeed/16)
  1101. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1102. Change = 1
  1103. 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-25*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1104. 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+25*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1105. else
  1106. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1107. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1108. end
  1109. Hum.WalkSpeed = WalkSpeed
  1110. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1111. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1112.  
  1113. if(NeutralAnims)then
  1114. if(State == 'Idle')then
  1115. local Alpha = .1
  1116. Change = 1
  1117. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.05*M.C(Sine/18),0),Alpha)
  1118. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-10-2.5*M.S(Sine/18)),M.R(20*M.C(Sine/18)),M.R(10)),Alpha)
  1119. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(5+5*M.C(Sine/18)),M.R(-10-5*M.C(Sine/18))),Alpha)
  1120. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(-5-5*M.C(Sine/18)),M.R(10+5*M.C(Sine/18))),Alpha)
  1121. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/18),0)*CF.A(0,0,M.R(-10)),Alpha)
  1122. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/18),-.2),Alpha)
  1123. -- idle
  1124. elseif(State == 'Run')then
  1125. local wsVal = 7 / (Hum.WalkSpeed/16)
  1126. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1127. 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)
  1128. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1129. 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)
  1130. 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)
  1131. 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)
  1132. 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)
  1133. elseif(State == 'Walk')then
  1134. local wsVal = 7 / (Hum.WalkSpeed/16)
  1135. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1136. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1137. RJ.C0 = RJ.C0:lerp(CF.N(0,-.075+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/7),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)
  1138. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  1139. 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)
  1140. 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)
  1141. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1142. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1143. elseif(State == 'Jump')then
  1144. local Alpha = .1
  1145. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1146. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1147. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1148. 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)
  1149. 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)
  1150. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1151. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1152. elseif(State == 'Fall')then
  1153. local Alpha = .1
  1154. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1155. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1156. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1157. 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)
  1158. 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)
  1159. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1160. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1161. elseif(State == 'Paralyzed')then
  1162. -- paralyzed
  1163. elseif(State == 'Sit')then
  1164. -- sit
  1165. end
  1166. end
  1167.  
  1168. for i,v in next, BloodPuddles do
  1169. local mesh = i:FindFirstChild'CylinderMesh'
  1170. BloodPuddles[i] = v + 1
  1171. if(not mesh or i.Transparency >= 1)then
  1172. i:destroy()
  1173. BloodPuddles[i] = nil
  1174. elseif(v >= Frame_Speed*4)then
  1175. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1176. i.Transparency = trans
  1177. if(mesh.Scale.Z > 0)then
  1178. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1179. end
  1180. else
  1181. i.Transparency = 0
  1182. end
  1183. end
  1184. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement