Advertisement
Dark_EccentricYT

Untitled

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