Advertisement
DarkScriptZEditors

Other Script

Dec 23rd, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.72 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. -----------------------
  8. --[[ Name : Error sans ]]--
  9. -------------------------------------------------------
  10. --A script By makhail07
  11.  
  12. --Credit To affady482 and
  13.  
  14.  
  15.  
  16. --DoyouKnowDaWay
  17.  
  18. -------------------------------------------------------
  19.  
  20. local FavIDs = {
  21. 340106355, --Nefl Crystals
  22. 927529620, --Dimension
  23. 876981900, --Fantasy
  24. 398987889, --Ordinary Days
  25. 1117396305, --Oh wait, it's you.
  26. 885996042, --Action Winter Journey
  27. 919231299, --Sprawling Idiot Effigy
  28. 743466274, --Good Day Sunshine
  29. 727411183, --Knife Fight
  30. 1402748531, --The Earth Is Counting On You!
  31. 595230126 --Robot Language
  32. }
  33.  
  34.  
  35.  
  36. --The reality of my life isn't real but a Universe -makhail07
  37. wait(0.2)
  38. local plr = game:service'Players'.LocalPlayer
  39. print('Local User is '..plr.Name)
  40. print('Chain Magician Loaded')
  41. print('Was going to be a test script but fuck it.')
  42. local char = plr.Character
  43. local hum = char.Humanoid
  44. local hed = char.Head
  45. local root = char.HumanoidRootPart
  46. local rootj = root.RootJoint
  47. local tors = char.Torso
  48. local ra = char["Right Arm"]
  49. local la = char["Left Arm"]
  50. local rl = char["Right Leg"]
  51. local ll = char["Left Leg"]
  52. local neck = tors["Neck"]
  53. local mouse = plr:GetMouse()
  54. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  55. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  56. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  57. local maincolor = BrickColor.new("Institutional blue")
  58.  
  59. ff = Instance.new("ForceField",char)
  60. ff.Visible = false
  61. hum.Name = "Base"
  62. hum.MaxHealth = "inf"
  63. hum.Health = "inf"
  64. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  65. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  66. hum.MaxHealth = "inf"
  67. hum.Health = "inf"
  68. end
  69. end)
  70.  
  71. -------------------------------------------------------
  72. --Start Good Stuff--
  73. -------------------------------------------------------
  74. cam = game.Workspace.CurrentCamera
  75. CF = CFrame.new
  76. angles = CFrame.Angles
  77. attack = false
  78. Euler = CFrame.fromEulerAnglesXYZ
  79. Rad = math.rad
  80. IT = Instance.new
  81. BrickC = BrickColor.new
  82. Cos = math.cos
  83. Acos = math.acos
  84. Sin = math.sin
  85. Asin = math.asin
  86. Abs = math.abs
  87. Mrandom = math.random
  88. Floor = math.floor
  89. -------------------------------------------------------
  90. --End Good Stuff--
  91. -------------------------------------------------------
  92. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  93. RSH, LSH = nil, nil
  94. RW = Instance.new("Weld")
  95. LW = Instance.new("Weld")
  96. RH = tors["Right Hip"]
  97. LH = tors["Left Hip"]
  98. RSH = tors["Right Shoulder"]
  99. LSH = tors["Left Shoulder"]
  100. RSH.Parent = nil
  101. LSH.Parent = nil
  102. RW.Name = "RW"
  103. RW.Part0 = tors
  104. RW.C0 = CF(1.5, 0.5, 0)
  105. RW.C1 = CF(0, 0.5, 0)
  106. RW.Part1 = ra
  107. RW.Parent = tors
  108. LW.Name = "LW"
  109. LW.Part0 = tors
  110. LW.C0 = CF(-1.5, 0.5, 0)
  111. LW.C1 = CF(0, 0.5, 0)
  112. LW.Part1 = la
  113. LW.Parent = tors
  114. Effects = {}
  115. -------------------------------------------------------
  116. --Start HeartBeat--
  117. -------------------------------------------------------
  118. ArtificialHB = Instance.new("BindableEvent", script)
  119. ArtificialHB.Name = "Heartbeat"
  120. script:WaitForChild("Heartbeat")
  121.  
  122. frame = 1 / 60
  123. tf = 0
  124. allowframeloss = false
  125. tossremainder = false
  126.  
  127.  
  128. lastframe = tick()
  129. script.Heartbeat:Fire()
  130.  
  131.  
  132. game:GetService("RunService").Heartbeat:connect(function(s, p)
  133. tf = tf + s
  134. if tf >= frame then
  135. if allowframeloss then
  136. script.Heartbeat:Fire()
  137. lastframe = tick()
  138. else
  139. for i = 1, math.floor(tf / frame) do
  140. script.Heartbeat:Fire()
  141. end
  142. lastframe = tick()
  143. end
  144. if tossremainder then
  145. tf = 0
  146. else
  147. tf = tf - frame * math.floor(tf / frame)
  148. end
  149. end
  150. end)
  151. -------------------------------------------------------
  152. --End HeartBeat--
  153. -------------------------------------------------------
  154.  
  155. -------------------------------------------------------
  156. --Start Important Functions--
  157. -------------------------------------------------------
  158. function swait(num)
  159. if num == 0 or num == nil then
  160. game:service("RunService").Stepped:wait(0)
  161. else
  162. for i = 0, num do
  163. game:service("RunService").Stepped:wait(0)
  164. end
  165. end
  166. end
  167. function thread(f)
  168. coroutine.resume(coroutine.create(f))
  169. end
  170. function clerp(a, b, t)
  171. local qa = {
  172. QuaternionFromCFrame(a)
  173. }
  174. local qb = {
  175. QuaternionFromCFrame(b)
  176. }
  177. local ax, ay, az = a.x, a.y, a.z
  178. local bx, by, bz = b.x, b.y, b.z
  179. local _t = 1 - t
  180. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  181. end
  182. function QuaternionFromCFrame(cf)
  183. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  184. local trace = m00 + m11 + m22
  185. if trace > 0 then
  186. local s = math.sqrt(1 + trace)
  187. local recip = 0.5 / s
  188. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  189. else
  190. local i = 0
  191. if m00 < m11 then
  192. i = 1
  193. end
  194. if m22 > (i == 0 and m00 or m11) then
  195. i = 2
  196. end
  197. if i == 0 then
  198. local s = math.sqrt(m00 - m11 - m22 + 1)
  199. local recip = 0.5 / s
  200. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  201. elseif i == 1 then
  202. local s = math.sqrt(m11 - m22 - m00 + 1)
  203. local recip = 0.5 / s
  204. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  205. elseif i == 2 then
  206. local s = math.sqrt(m22 - m00 - m11 + 1)
  207. local recip = 0.5 / s
  208. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  209. end
  210. end
  211. end
  212. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  213. local xs, ys, zs = x + x, y + y, z + z
  214. local wx, wy, wz = w * xs, w * ys, w * zs
  215. local xx = x * xs
  216. local xy = x * ys
  217. local xz = x * zs
  218. local yy = y * ys
  219. local yz = y * zs
  220. local zz = z * zs
  221. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  222. end
  223. function QuaternionSlerp(a, b, t)
  224. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  225. local startInterp, finishInterp
  226. if cosTheta >= 1.0E-4 then
  227. if 1 - cosTheta > 1.0E-4 then
  228. local theta = math.acos(cosTheta)
  229. local invSinTheta = 1 / Sin(theta)
  230. startInterp = Sin((1 - t) * theta) * invSinTheta
  231. finishInterp = Sin(t * theta) * invSinTheta
  232. else
  233. startInterp = 1 - t
  234. finishInterp = t
  235. end
  236. elseif 1 + cosTheta > 1.0E-4 then
  237. local theta = math.acos(-cosTheta)
  238. local invSinTheta = 1 / Sin(theta)
  239. startInterp = Sin((t - 1) * theta) * invSinTheta
  240. finishInterp = Sin(t * theta) * invSinTheta
  241. else
  242. startInterp = t - 1
  243. finishInterp = t
  244. end
  245. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  246. end
  247. function rayCast(Position, Direction, Range, Ignore)
  248. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  249. end
  250. local RbxUtility = LoadLibrary("RbxUtility")
  251. local Create = RbxUtility.Create
  252. -------------------------------------------------------
  253. ypcall(function()
  254. char.Shirt:Destroy()
  255. char.Pants:Destroy()
  256. shirt = Instance.new("Shirt", char)
  257. shirt.Name = "Shirt"
  258. pants = Instance.new("Pants", char)
  259. pants.Name = "Pants"
  260. char.Shirt.ShirtTemplate = "rbxassetid://1511368672"
  261. char.Pants.PantsTemplate = "rbxassetid://818423314"
  262. char.Head.face.Texture = "rbxassetid://543498118"
  263. end)
  264. -------------------------------------------------------
  265. --Start Damage Function--
  266. -------------------------------------------------------
  267. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  268. if hit.Parent == nil then
  269. return
  270. end
  271. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  272. for _, v in pairs(hit.Parent:children()) do
  273. if v:IsA("Humanoid") then
  274. h = v
  275. end
  276. end
  277. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  278.  
  279. hit.Parent:FindFirstChild("Head"):BreakJoints()
  280. end
  281.  
  282. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  283. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  284. if hit.Parent.DebounceHit.Value == true then
  285. return
  286. end
  287. end
  288. if insta == true then
  289. hit.Parent:FindFirstChild("Head"):BreakJoints()
  290. end
  291. local c = Create("ObjectValue"){
  292. Name = "creator",
  293. Value = game:service("Players").LocalPlayer,
  294. Parent = h,
  295. }
  296. game:GetService("Debris"):AddItem(c, .5)
  297. if HitSound ~= nil and HitPitch ~= nil then
  298. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  299. end
  300. local Damage = math.random(minim, maxim)
  301. local blocked = false
  302. local block = hit.Parent:findFirstChild("Block")
  303. if block ~= nil then
  304. if block.className == "IntValue" then
  305. if block.Value > 0 then
  306. blocked = true
  307. block.Value = block.Value - 1
  308. print(block.Value)
  309. end
  310. end
  311. end
  312. if blocked == false then
  313. h.Health = h.Health - Damage
  314. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  315. else
  316. h.Health = h.Health - (Damage / 2)
  317. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  318. end
  319. if Type == "Knockdown" then
  320. local hum = hit.Parent.Humanoid
  321. hum.PlatformStand = true
  322. coroutine.resume(coroutine.create(function(HHumanoid)
  323. swait(1)
  324. HHumanoid.PlatformStand = false
  325. end), hum)
  326. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  327. local bodvol = Create("BodyVelocity"){
  328. velocity = angle * knockback,
  329. P = 5000,
  330. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  331. Parent = hit,
  332. }
  333. local rl = Create("BodyAngularVelocity"){
  334. P = 3000,
  335. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  336. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  337. Parent = hit,
  338. }
  339. game:GetService("Debris"):AddItem(bodvol, .5)
  340. game:GetService("Debris"):AddItem(rl, .5)
  341. elseif Type == "Normal" then
  342. local vp = Create("BodyVelocity"){
  343. P = 500,
  344. maxForce = Vector3.new(math.huge, 0, math.huge),
  345. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  346. }
  347. if knockback > 0 then
  348. vp.Parent = hit.Parent.Torso
  349. end
  350. game:GetService("Debris"):AddItem(vp, .5)
  351. elseif Type == "Up" then
  352. local bodyVelocity = Create("BodyVelocity"){
  353. velocity = Vector3.new(0, 20, 0),
  354. P = 5000,
  355. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  356. Parent = hit,
  357. }
  358. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  359. elseif Type == "DarkUp" then
  360. coroutine.resume(coroutine.create(function()
  361. for i = 0, 1, 0.1 do
  362. swait()
  363. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  364. end
  365. end))
  366. local bodyVelocity = Create("BodyVelocity"){
  367. velocity = Vector3.new(0, 20, 0),
  368. P = 5000,
  369. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  370. Parent = hit,
  371. }
  372. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  373. elseif Type == "Snare" then
  374. local bp = Create("BodyPosition"){
  375. P = 2000,
  376. D = 100,
  377. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  378. position = hit.Parent.Torso.Position,
  379. Parent = hit.Parent.Torso,
  380. }
  381. game:GetService("Debris"):AddItem(bp, 1)
  382. elseif Type == "Freeze" then
  383. local BodPos = Create("BodyPosition"){
  384. P = 50000,
  385. D = 1000,
  386. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  387. position = hit.Parent.Torso.Position,
  388. Parent = hit.Parent.Torso,
  389. }
  390. local BodGy = Create("BodyGyro") {
  391. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  392. P = 20e+003,
  393. Parent = hit.Parent.Torso,
  394. cframe = hit.Parent.Torso.CFrame,
  395. }
  396. hit.Parent.Torso.Anchored = true
  397. coroutine.resume(coroutine.create(function(Part)
  398. swait(1.5)
  399. Part.Anchored = false
  400. end), hit.Parent.Torso)
  401. game:GetService("Debris"):AddItem(BodPos, 3)
  402. game:GetService("Debris"):AddItem(BodGy, 3)
  403. end
  404. local debounce = Create("BoolValue"){
  405. Name = "DebounceHit",
  406. Parent = hit.Parent,
  407. Value = true,
  408. }
  409. game:GetService("Debris"):AddItem(debounce, Delay)
  410. c = Create("ObjectValue"){
  411. Name = "creator",
  412. Value = Player,
  413. Parent = h,
  414. }
  415. game:GetService("Debris"):AddItem(c, .5)
  416. end
  417. end
  418. -------------------------------------------------------
  419. --End Damage Function--
  420. -------------------------------------------------------
  421.  
  422. -------------------------------------------------------
  423. --Start Damage Function Customization--
  424. -------------------------------------------------------
  425. function ShowDamage(Pos, Text, Time, Color)
  426. local Rate = (1 / 30)
  427. local Pos = (Pos or Vector3.new(0, 0, 0))
  428. local Text = (Text or "")
  429. local Time = (Time or 2)
  430. local Color = (Color or Color3.new(1, 0, 1))
  431. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  432. EffectPart.Anchored = true
  433. local BillboardGui = Create("BillboardGui"){
  434. Size = UDim2.new(3, 0, 3, 0),
  435. Adornee = EffectPart,
  436. Parent = EffectPart,
  437. }
  438. local TextLabel = Create("TextLabel"){
  439. BackgroundTransparency = 1,
  440. Size = UDim2.new(1, 0, 1, 0),
  441. Text = Text,
  442. Font = "Bodoni",
  443. TextColor3 = Color,
  444. TextScaled = true,
  445. TextStrokeColor3 = Color3.fromRGB(0,255,255),
  446. Parent = BillboardGui,
  447. }
  448. game.Debris:AddItem(EffectPart, (Time))
  449. EffectPart.Parent = game:GetService("Workspace")
  450. delay(0, function()
  451. local Frames = (Time / Rate)
  452. for Frame = 1, Frames do
  453. wait(Rate)
  454. local Percent = (Frame / Frames)
  455. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  456. TextLabel.TextTransparency = Percent
  457. end
  458. if EffectPart and EffectPart.Parent then
  459. EffectPart:Destroy()
  460. end
  461. end)
  462. end
  463. -------------------------------------------------------
  464. --End Damage Function Customization--
  465. -------------------------------------------------------
  466.  
  467. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  468. for _, c in pairs(workspace:children()) do
  469. local hum = c:findFirstChild("Humanoid")
  470. if hum ~= nil then
  471. local head = c:findFirstChild("Head")
  472. if head ~= nil then
  473. local targ = head.Position - Part.Position
  474. local mag = targ.magnitude
  475. if magni >= mag and c.Name ~= plr.Name then
  476. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  477. end
  478. end
  479. end
  480. end
  481. end
  482.  
  483.  
  484. CFuncs = {
  485. Part = {
  486. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  487. local Part = Create("Part")({
  488. Parent = Parent,
  489. Reflectance = Reflectance,
  490. Transparency = Transparency,
  491. CanCollide = false,
  492. Locked = true,
  493. BrickColor = BrickColor.new(tostring(BColor)),
  494. Name = Name,
  495. Size = Size,
  496. Material = Material
  497. })
  498. RemoveOutlines(Part)
  499. return Part
  500. end
  501. },
  502. Mesh = {
  503. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  504. local Msh = Create(Mesh)({
  505. Parent = Part,
  506. Offset = OffSet,
  507. Scale = Scale
  508. })
  509. if Mesh == "SpecialMesh" then
  510. Msh.MeshType = MeshType
  511. Msh.MeshId = MeshId
  512. end
  513. return Msh
  514. end
  515. },
  516. Mesh = {
  517. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  518. local Msh = Create(Mesh)({
  519. Parent = Part,
  520. Offset = OffSet,
  521. Scale = Scale
  522. })
  523. if Mesh == "SpecialMesh" then
  524. Msh.MeshType = MeshType
  525. Msh.MeshId = MeshId
  526. end
  527. return Msh
  528. end
  529. },
  530. Weld = {
  531. Create = function(Parent, Part0, Part1, C0, C1)
  532. local Weld = Create("Weld")({
  533. Parent = Parent,
  534. Part0 = Part0,
  535. Part1 = Part1,
  536. C0 = C0,
  537. C1 = C1
  538. })
  539. return Weld
  540. end
  541. },
  542. Sound = {
  543. Create = function(id, par, vol, pit)
  544. coroutine.resume(coroutine.create(function()
  545. local S = Create("Sound")({
  546. Volume = vol,
  547. Pitch = pit or 1,
  548. SoundId = id,
  549. Parent = par or workspace
  550. })
  551. wait()
  552. S:play()
  553. game:GetService("Debris"):AddItem(S, 6)
  554. end))
  555. end
  556. },
  557. ParticleEmitter = {
  558. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  559. local fp = Create("ParticleEmitter")({
  560. Parent = Parent,
  561. Color = ColorSequence.new(Color1, Color2),
  562. LightEmission = LightEmission,
  563. Size = Size,
  564. Texture = Texture,
  565. Transparency = Transparency,
  566. ZOffset = ZOffset,
  567. Acceleration = Accel,
  568. Drag = Drag,
  569. LockedToPart = LockedToPart,
  570. VelocityInheritance = VelocityInheritance,
  571. EmissionDirection = EmissionDirection,
  572. Enabled = Enabled,
  573. Lifetime = LifeTime,
  574. Rate = Rate,
  575. Rotation = Rotation,
  576. RotSpeed = RotSpeed,
  577. Speed = Speed,
  578. VelocitySpread = VelocitySpread
  579. })
  580. return fp
  581. end
  582. }
  583. }
  584. function RemoveOutlines(part)
  585. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  586. end
  587. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  588. local Part = Create("Part")({
  589. formFactor = FormFactor,
  590. Parent = Parent,
  591. Reflectance = Reflectance,
  592. Transparency = Transparency,
  593. CanCollide = false,
  594. Locked = true,
  595. BrickColor = BrickColor.new(tostring(BColor)),
  596. Name = Name,
  597. Size = Size,
  598. Material = Material
  599. })
  600. RemoveOutlines(Part)
  601. return Part
  602. end
  603. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  604. local Msh = Create(Mesh)({
  605. Parent = Part,
  606. Offset = OffSet,
  607. Scale = Scale
  608. })
  609. if Mesh == "SpecialMesh" then
  610. Msh.MeshType = MeshType
  611. Msh.MeshId = MeshId
  612. end
  613. return Msh
  614. end
  615. function CreateWeld(Parent, Part0, Part1, C0, C1)
  616. local Weld = Create("Weld")({
  617. Parent = Parent,
  618. Part0 = Part0,
  619. Part1 = Part1,
  620. C0 = C0,
  621. C1 = C1
  622. })
  623. return Weld
  624. end
  625.  
  626. char["Body Colors"].HeadColor = BrickColor.new("Black")
  627. char["Body Colors"].TorsoColor = BrickColor.new("Black")
  628. char["Body Colors"].LeftArmColor = BrickColor.new("Black")
  629. char["Body Colors"].RightArmColor = BrickColor.new("Black")
  630.  
  631. -------------------------------------------------------
  632. --Start Effect Function--
  633. -------------------------------------------------------
  634. EffectModel = Instance.new("Model", char)
  635. Effects = {
  636. Block = {
  637. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  638. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  639. prt.Anchored = true
  640. prt.CFrame = cframe
  641. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  642. game:GetService("Debris"):AddItem(prt, 10)
  643. if Type == 1 or Type == nil then
  644. table.insert(Effects, {
  645. prt,
  646. "Block1",
  647. delay,
  648. x3,
  649. y3,
  650. z3,
  651. msh
  652. })
  653. elseif Type == 2 then
  654. table.insert(Effects, {
  655. prt,
  656. "Block2",
  657. delay,
  658. x3,
  659. y3,
  660. z3,
  661. msh
  662. })
  663. else
  664. table.insert(Effects, {
  665. prt,
  666. "Block3",
  667. delay,
  668. x3,
  669. y3,
  670. z3,
  671. msh
  672. })
  673. end
  674. end
  675. },
  676. Sphere = {
  677. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  678. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  679. prt.Anchored = true
  680. prt.CFrame = cframe
  681. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  682. game:GetService("Debris"):AddItem(prt, 10)
  683. table.insert(Effects, {
  684. prt,
  685. "Cylinder",
  686. delay,
  687. x3,
  688. y3,
  689. z3,
  690. msh
  691. })
  692. end
  693. },
  694. Cylinder = {
  695. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  696. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  697. prt.Anchored = true
  698. prt.CFrame = cframe
  699. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  700. game:GetService("Debris"):AddItem(prt, 10)
  701. table.insert(Effects, {
  702. prt,
  703. "Cylinder",
  704. delay,
  705. x3,
  706. y3,
  707. z3,
  708. msh
  709. })
  710. end
  711. },
  712. Wave = {
  713. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  714. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  715. prt.Anchored = true
  716. prt.CFrame = cframe
  717. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  718. game:GetService("Debris"):AddItem(prt, 10)
  719. table.insert(Effects, {
  720. prt,
  721. "Cylinder",
  722. delay,
  723. x3 / 60,
  724. y3 / 60,
  725. z3 / 60,
  726. msh
  727. })
  728. end
  729. },
  730. Ring = {
  731. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  732. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  733. prt.Anchored = true
  734. prt.CFrame = cframe
  735. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  736. game:GetService("Debris"):AddItem(prt, 10)
  737. table.insert(Effects, {
  738. prt,
  739. "Cylinder",
  740. delay,
  741. x3,
  742. y3,
  743. z3,
  744. msh
  745. })
  746. end
  747. },
  748. Break = {
  749. Create = function(brickcolor, cframe, x1, y1, z1)
  750. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  751. prt.Anchored = true
  752. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  753. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  754. local num = math.random(10, 50) / 1000
  755. game:GetService("Debris"):AddItem(prt, 10)
  756. table.insert(Effects, {
  757. prt,
  758. "Shatter",
  759. num,
  760. prt.CFrame,
  761. math.random() - math.random(),
  762. 0,
  763. math.random(50, 100) / 100
  764. })
  765. end
  766. },
  767. Spiral = {
  768. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  769. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  770. prt.Anchored = true
  771. prt.CFrame = cframe
  772. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  773. game:GetService("Debris"):AddItem(prt, 10)
  774. table.insert(Effects, {
  775. prt,
  776. "Cylinder",
  777. delay,
  778. x3,
  779. y3,
  780. z3,
  781. msh
  782. })
  783. end
  784. },
  785. Push = {
  786. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  787. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  788. prt.Anchored = true
  789. prt.CFrame = cframe
  790. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  791. game:GetService("Debris"):AddItem(prt, 10)
  792. table.insert(Effects, {
  793. prt,
  794. "Cylinder",
  795. delay,
  796. x3,
  797. y3,
  798. z3,
  799. msh
  800. })
  801. end
  802. }
  803. }
  804. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  805. local fp = IT("Part")
  806. fp.formFactor = formfactor
  807. fp.Parent = parent
  808. fp.Reflectance = reflectance
  809. fp.Transparency = transparency
  810. fp.CanCollide = false
  811. fp.Locked = true
  812. fp.BrickColor = brickcolor
  813. fp.Name = name
  814. fp.Size = size
  815. fp.Position = tors.Position
  816. RemoveOutlines(fp)
  817. fp.Material = "SmoothPlastic"
  818. fp:BreakJoints()
  819. return fp
  820. end
  821.  
  822. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  823. local mesh = IT(Mesh)
  824. mesh.Parent = part
  825. if Mesh == "SpecialMesh" then
  826. mesh.MeshType = meshtype
  827. if meshid ~= "nil" then
  828. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  829. end
  830. end
  831. mesh.Offset = offset
  832. mesh.Scale = scale
  833. return mesh
  834. end
  835.  
  836. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  837. local type = type
  838. local rng = Instance.new("Part", char)
  839. rng.Anchored = true
  840. rng.BrickColor = color
  841. rng.CanCollide = false
  842. rng.FormFactor = 3
  843. rng.Name = "Ring"
  844. rng.Material = "Neon"
  845. rng.Size = Vector3.new(1, 1, 1)
  846. rng.Transparency = 0
  847. rng.TopSurface = 0
  848. rng.BottomSurface = 0
  849. rng.CFrame = pos
  850. local rngm = Instance.new("SpecialMesh", rng)
  851. rngm.MeshType = MType
  852. rngm.Scale = scale
  853. local scaler2 = 1
  854. if type == "Add" then
  855. scaler2 = 1 * value
  856. elseif type == "Divide" then
  857. scaler2 = 1 / value
  858. end
  859. coroutine.resume(coroutine.create(function()
  860. for i = 0, 10 / bonuspeed, 0.1 do
  861. swait()
  862. if type == "Add" then
  863. scaler2 = scaler2 - 0.01 * value / bonuspeed
  864. elseif type == "Divide" then
  865. scaler2 = scaler2 - 0.01 / value * bonuspeed
  866. end
  867. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  868. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  869. end
  870. rng:Destroy()
  871. end))
  872. end
  873.  
  874. function Eviscerate(dude)
  875. if dude.Name ~= char then
  876. local bgf = IT("BodyGyro", dude.Head)
  877. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  878. local val = IT("BoolValue", dude)
  879. val.Name = "IsHit"
  880. local ds = coroutine.wrap(function()
  881. dude:WaitForChild("Head"):BreakJoints()
  882. wait(0.5)
  883. target = nil
  884. coroutine.resume(coroutine.create(function()
  885. for i, v in pairs(dude:GetChildren()) do
  886. if v:IsA("Accessory") then
  887. v:Destroy()
  888. end
  889. if v:IsA("Humanoid") then
  890. v:Destroy()
  891. end
  892. if v:IsA("CharacterMesh") then
  893. v:Destroy()
  894. end
  895. if v:IsA("Model") then
  896. v:Destroy()
  897. end
  898. if v:IsA("Part") or v:IsA("MeshPart") then
  899. for x, o in pairs(v:GetChildren()) do
  900. if o:IsA("Decal") then
  901. o:Destroy()
  902. end
  903. end
  904. coroutine.resume(coroutine.create(function()
  905. v.Material = "Neon"
  906. v.CanCollide = false
  907. local PartEmmit1 = IT("ParticleEmitter", v)
  908. PartEmmit1.LightEmission = 1
  909. PartEmmit1.Texture = "rbxassetid://284205403"
  910. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  911. PartEmmit1.Rate = 150
  912. PartEmmit1.Lifetime = NumberRange.new(1)
  913. PartEmmit1.Size = NumberSequence.new({
  914. NumberSequenceKeypoint.new(0, 0.75, 0),
  915. NumberSequenceKeypoint.new(1, 0, 0)
  916. })
  917. PartEmmit1.Transparency = NumberSequence.new({
  918. NumberSequenceKeypoint.new(0, 0, 0),
  919. NumberSequenceKeypoint.new(1, 1, 0)
  920. })
  921. PartEmmit1.Speed = NumberRange.new(0, 0)
  922. PartEmmit1.VelocitySpread = 30000
  923. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  924. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  925. local BodPoss = IT("BodyPosition", v)
  926. BodPoss.P = 3000
  927. BodPoss.D = 1000
  928. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  929. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  930. v.Color = maincolor.Color
  931. coroutine.resume(coroutine.create(function()
  932. for i = 0, 49 do
  933. swait(1)
  934. v.Transparency = v.Transparency + 0.08
  935. end
  936. wait(0.5)
  937. PartEmmit1.Enabled = false
  938. wait(3)
  939. v:Destroy()
  940. dude:Destroy()
  941. end))
  942. end))
  943. end
  944. end
  945. end))
  946. end)
  947. ds()
  948. end
  949. end
  950.  
  951. function FindNearestHead(Position, Distance, SinglePlayer)
  952. if SinglePlayer then
  953. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  954. end
  955. local List = {}
  956. for i, v in pairs(workspace:GetChildren()) do
  957. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  958. table.insert(List, v)
  959. end
  960. end
  961. return List
  962. end
  963.  
  964. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  965. local type = type
  966. local rng = Instance.new("Part", char)
  967. rng.Anchored = true
  968. rng.BrickColor = color
  969. rng.CanCollide = false
  970. rng.FormFactor = 3
  971. rng.Name = "Ring"
  972. rng.Material = "Neon"
  973. rng.Size = Vector3.new(1, 1, 1)
  974. rng.Transparency = 0
  975. rng.TopSurface = 0
  976. rng.BottomSurface = 0
  977. rng.CFrame = pos
  978. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  979. local rngm = Instance.new("SpecialMesh", rng)
  980. rngm.MeshType = MType
  981. rngm.Scale = Vector3.new(x1, y1, z1)
  982. local scaler2 = 1
  983. local speeder = FastSpeed
  984. if type == "Add" then
  985. scaler2 = 1 * value
  986. elseif type == "Divide" then
  987. scaler2 = 1 / value
  988. end
  989. coroutine.resume(coroutine.create(function()
  990. for i = 0, 10 / bonuspeed, 0.1 do
  991. swait()
  992. if type == "Add" then
  993. scaler2 = scaler2 - 0.01 * value / bonuspeed
  994. elseif type == "Divide" then
  995. scaler2 = scaler2 - 0.01 / value * bonuspeed
  996. end
  997. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  998. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  999. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1000. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1001. end
  1002. rng:Destroy()
  1003. end))
  1004. end
  1005.  
  1006. function SoulSteal(dude)
  1007. if dude.Name ~= char then
  1008. local bgf = IT("BodyGyro", dude.Head)
  1009. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1010. local val = IT("BoolValue", dude)
  1011. val.Name = "IsHit"
  1012. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1013. local soulst = coroutine.wrap(function()
  1014. local soul = Instance.new("Part",dude)
  1015. soul.Size = Vector3.new(1,1,1)
  1016. soul.CanCollide = false
  1017. soul.Anchored = false
  1018. soul.Position = torso.Position
  1019. soul.Transparency = 1
  1020. local PartEmmit1 = IT("ParticleEmitter", soul)
  1021. PartEmmit1.LightEmission = 1
  1022. PartEmmit1.Texture = "rbxassetid://569507414"
  1023. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1024. PartEmmit1.Rate = 250
  1025. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1026. PartEmmit1.Size = NumberSequence.new({
  1027. NumberSequenceKeypoint.new(0, 1, 0),
  1028. NumberSequenceKeypoint.new(1, 0, 0)
  1029. })
  1030. PartEmmit1.Transparency = NumberSequence.new({
  1031. NumberSequenceKeypoint.new(0, 0, 0),
  1032. NumberSequenceKeypoint.new(1, 1, 0)
  1033. })
  1034. PartEmmit1.Speed = NumberRange.new(0, 0)
  1035. PartEmmit1.VelocitySpread = 30000
  1036. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1037. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1038. local BodPoss = IT("BodyPosition", soul)
  1039. BodPoss.P = 3000
  1040. BodPoss.D = 1000
  1041. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1042. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1043. wait(1.6)
  1044. soul.Touched:connect(function(hit)
  1045. if hit.Parent == char then
  1046. soul:Destroy()
  1047. end
  1048. end)
  1049. wait(1.2)
  1050. while soul do
  1051. swait()
  1052. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1053. BodPoss.Position = tors.Position
  1054. end
  1055. end)
  1056. soulst()
  1057. end
  1058. end
  1059. function FaceMouse()
  1060. local Cam = workspace.CurrentCamera
  1061. return {
  1062. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1063. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1064. }
  1065. end
  1066. -------------------------------------------------------
  1067. --End Effect Function--
  1068. -------------------------------------------------------
  1069. function Cso(ID, PARENT, VOLUME, PITCH)
  1070. local NSound = nil
  1071. coroutine.resume(coroutine.create(function()
  1072. NSound = IT("Sound", PARENT)
  1073. NSound.Volume = VOLUME
  1074. NSound.Pitch = PITCH
  1075. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1076. swait()
  1077. NSound:play()
  1078. game:GetService("Debris"):AddItem(NSound, 10)
  1079. end))
  1080. return NSound
  1081. end
  1082. function CameraEnshaking(Length, Intensity)
  1083. coroutine.resume(coroutine.create(function()
  1084. local intensity = 1 * Intensity
  1085. local rotM = 0.01 * Intensity
  1086. for i = 0, Length, 0.1 do
  1087. swait()
  1088. intensity = intensity - 0.05 * Intensity / Length
  1089. rotM = rotM - 5.0E-4 * Intensity / Length
  1090. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1091. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1092. end
  1093. hum.CameraOffset = Vector3.new(0, 0, 0)
  1094. end))
  1095. end
  1096. function getRegion(point,range,ignore)
  1097. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1098. end
  1099.  
  1100. function GetTorso(char)
  1101. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1102. end
  1103.  
  1104. 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}
  1105.  
  1106. NewInstance = function(instance,parent,properties)
  1107. local inst = Instance.new(instance)
  1108. inst.Parent = parent
  1109. if(properties)then
  1110. for i,v in next, properties do
  1111. pcall(function() inst[i] = v end)
  1112. end
  1113. end
  1114. return inst;
  1115. end
  1116.  
  1117. function Part(parent,color,material,size,cframe,anchored,cancollide)
  1118. local part = Instance.new("Part")
  1119. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
  1120. part.Material = material or Enum.Material.SmoothPlastic
  1121. part.TopSurface,part.BottomSurface=10,10
  1122. part.Size = size or Vector3.new(1,1,1)
  1123. part.CFrame = cframe or CF(0,0,0)
  1124. part.Anchored = anchored or true
  1125. part.CanCollide = cancollide or false
  1126. part.Parent = parent or char
  1127. return part
  1128. end
  1129. -------------------------------------------------------
  1130. --End Important Functions--
  1131. -------------------------------------------------------
  1132.  
  1133.  
  1134. -------------------------------------------------------
  1135. --Start Customization--
  1136. -------------------------------------------------------
  1137. local Player_Size = 1
  1138. if Player_Size ~= 1 then
  1139. root.Size = root.Size * Player_Size
  1140. tors.Size = tors.Size * Player_Size
  1141. hed.Size = hed.Size * Player_Size
  1142. ra.Size = ra.Size * Player_Size
  1143. la.Size = la.Size * Player_Size
  1144. rl.Size = rl.Size * Player_Size
  1145. ll.Size = ll.Size * Player_Size
  1146. ----------------------------------------------------------------------------------
  1147. rootj.Parent = root
  1148. neck.Parent = tors
  1149. RW.Parent = tors
  1150. LW.Parent = tors
  1151. RH.Parent = tors
  1152. LH.Parent = tors
  1153. ----------------------------------------------------------------------------------
  1154. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1155. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1156. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1157. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1158. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1159. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1160. ----------------------------------------------------------------------------------
  1161. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1162. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1163. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1164. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1165. --hat.Parent = Character
  1166. end
  1167. ----------------------------------------------------------------------------------
  1168. local SONG = 562226927
  1169. local SONG2 = 0
  1170. local Music = Instance.new("Sound",tors)
  1171. Music.Volume = 2
  1172. Music.Looped = true
  1173. Music.Pitch = 1 --Pitcher
  1174. ----------------------------------------------------------------------------------
  1175. local equipped = false
  1176. local idle = 0
  1177. local change = 1
  1178. local val = 0
  1179. local toim = 0
  1180. local idleanim = 0.4
  1181. local sine = 0
  1182. local Sit = 1
  1183. ----------------------------------------------------------------------------------
  1184. hum.WalkSpeed = 120
  1185. hum.JumpPower = 120
  1186. hum.Animator.Parent = nil
  1187. -------------------------------------------------------
  1188. --End Customization--
  1189. -------------------------------------------------------
  1190.  
  1191. -------------------------------------------------------
  1192. --Start Attacks N Stuff--
  1193. -------------------------------------------------------
  1194. function DRAG_THEM_TO_HELL()
  1195. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1196. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1197. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1198. local HEAD = HUM.Parent:FindFirstChild("Head")
  1199. if HEAD and TORSO and HUM.Health > 0 then
  1200. local GYRO = IT("BodyGyro",root)
  1201. GYRO.D = 275
  1202. GYRO.P = 20000
  1203. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1204. attack = true
  1205. hum.WalkSpeed = 120
  1206. local hit,pos,hummie;
  1207. local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1208. Hook.Transparency = 1
  1209. local A = NewInstance("Attachment",Hook)
  1210. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1211. local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(0,255,255),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://614117108",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1212. local POS = mouse.Hit.p
  1213. local CHAINS = false
  1214. local CHAINLINKS = {}
  1215. local A = IT("Attachment",ra)
  1216. A.Position = Vector3.new(1,-1,0)*Player_Size
  1217. A.Orientation = Vector3.new(-90, -89.982, 0)
  1218. local B = IT("Attachment",ra)
  1219. B.Position = Vector3.new(-1,-1,0)*Player_Size
  1220. B.Orientation = Vector3.new(-90, 89.988, 0)
  1221. local C = IT("Attachment",ra)
  1222. C.Position = Vector3.new(0.5,-1.3,0)*Player_Size
  1223. C.Orientation = Vector3.new(-90, -89.982, 0)
  1224. local D = IT("Attachment",ra)
  1225. D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size
  1226. D.Orientation = Vector3.new(-90, 89.988, 0)
  1227. local LIGHT = IT("Attachment",ra)
  1228. LIGHT.Position = Vector3.new(0,-1,0)*Player_Size
  1229. local LIGHT2 = IT("PointLight",LIGHT)
  1230. LIGHT2.Range = 7
  1231. LIGHT2.Brightness = 5
  1232. LIGHT2.Color = Color3.new(0,0,0)
  1233. for i = 1, 2 do
  1234. local TWIST = -2
  1235. local START = A
  1236. local END = B
  1237. if i == 1 then
  1238. START = B
  1239. END = A
  1240. end
  1241. local ChainLink = IT("Beam",tors)
  1242. ChainLink.Texture = "rbxassetid://614117108"
  1243. ChainLink.Color = ColorSequence.new(Color3.fromRGB(0,255,255))
  1244. ChainLink.TextureSpeed = 1
  1245. ChainLink.Width0 = 1
  1246. ChainLink.Width1 = 1
  1247. ChainLink.TextureLength = 2.5
  1248. ChainLink.Attachment0 = START
  1249. ChainLink.Attachment1 = END
  1250. ChainLink.CurveSize0 = TWIST
  1251. ChainLink.CurveSize1 = TWIST
  1252. --ChainLink.FaceCamera = true
  1253. ChainLink.Segments = 45
  1254. ChainLink.Transparency = NumberSequence.new(0.25)
  1255. table.insert(CHAINLINKS,ChainLink)
  1256. end
  1257. for i = 1, 2 do
  1258. local TWIST = -1
  1259. local START = C
  1260. local END = D
  1261. if i == 1 then
  1262. START = D
  1263. END = C
  1264. end
  1265. local ChainLink = IT("Beam",tors)
  1266. ChainLink.Texture = "rbxassetid://614117108"
  1267. ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
  1268. ChainLink.TextureSpeed = 1
  1269. ChainLink.Width0 = 1
  1270. ChainLink.Width1 = 1
  1271. ChainLink.TextureLength = 5
  1272. ChainLink.Attachment0 = START
  1273. ChainLink.Attachment1 = END
  1274. ChainLink.CurveSize0 = TWIST
  1275. ChainLink.CurveSize1 = TWIST
  1276. --ChainLink.FaceCamera = true
  1277. ChainLink.Segments = 25
  1278. ChainLink.LightEmission = 0.5
  1279. ChainLink.Transparency = NumberSequence.new(0.25)
  1280. table.insert(CHAINLINKS,ChainLink)
  1281. end
  1282. for i = 0, 2.3, .1 do
  1283. swait()
  1284. GYRO.cframe = CF(root.Position,TORSO.Position)
  1285. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(-45)), 0.15)
  1286. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(45)), 0.3)
  1287. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1288. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1289. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1290. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1291. end
  1292. Cso("169105657", ra, 7, 1.2)
  1293. for i = 0, 4, .1 do
  1294. if(hit)then break end
  1295. swait()
  1296. GYRO.cframe = CF(root.Position,TORSO.Position)
  1297. Hook.CFrame = HEAD.CFrame
  1298. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(5), Rad(45)), 0.15)
  1299. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-45)), 0.3)
  1300. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1301. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1302. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(45)), 0.1)
  1303. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
  1304. end
  1305. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1306. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1307. hit = GetTorso(v.Parent);
  1308. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1309. break;
  1310. end
  1311. end
  1312. Cso("169105657", ra, 5, .8)
  1313. Cso("131228548", tors, 2, 1.1)
  1314. GYRO:remove()
  1315. for i = 0, 3, .1 do
  1316. swait()
  1317. HUM.PlatformStand = true
  1318. Hook.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
  1319. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1320. end
  1321. if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
  1322. break
  1323. end
  1324. Chain.TextureLength = 4
  1325. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(-5), Rad(-45)), 0.15)
  1326. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(45)), 0.3)
  1327. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 0.15)
  1328. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 0.15)
  1329. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(45)), 0.1)
  1330. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(-.6), Rad(-25)), 0.1)
  1331. end
  1332. hum.WalkSpeed = 120
  1333. attack = false
  1334. Hook:Destroy()
  1335. A:remove()
  1336. B:remove()
  1337. C:remove()
  1338. D:remove()
  1339. end
  1340. end
  1341. end
  1342. --------------------------------------------------------
  1343. --------------------------------------------------------
  1344. --------------------------------------------------------
  1345. --------------------------------------------------------
  1346. --------------------------------------------------------
  1347. --------------------------------------------------------
  1348. --------------------------------------------------------
  1349. function DRAG_YOURSELF_TO_HELL()
  1350. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1351. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1352. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1353. local HEAD = HUM.Parent:FindFirstChild("Head")
  1354. if HEAD and TORSO and HUM.Health > 0 then
  1355. local GYRO = IT("BodyGyro",root)
  1356. GYRO.D = 275
  1357. GYRO.P = 20000
  1358. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1359. attack = true
  1360. hum.WalkSpeed = 120
  1361. local hit,pos,hummie;
  1362. local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1363. Hook.Transparency = 1
  1364. local A = NewInstance("Attachment",Hook)
  1365. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1366. local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://614117108",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1367. local POS = mouse.Hit.p
  1368. local CHAINS = false
  1369. local CHAINLINKS = {}
  1370. local A = IT("Attachment",ra)
  1371. A.Position = Vector3.new(1,-1,0)*Player_Size
  1372. A.Orientation = Vector3.new(-90, -89.982, 0)
  1373. local B = IT("Attachment",ra)
  1374. B.Position = Vector3.new(-1,-1,0)*Player_Size
  1375. B.Orientation = Vector3.new(-90, 89.988, 0)
  1376. local C = IT("Attachment",ra)
  1377. C.Position = Vector3.new(0.5,-1.3,0)*Player_Size
  1378. C.Orientation = Vector3.new(-90, -89.982, 0)
  1379. local D = IT("Attachment",ra)
  1380. D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size
  1381. D.Orientation = Vector3.new(-90, 89.988, 0)
  1382. local LIGHT = IT("Attachment",ra)
  1383. LIGHT.Position = Vector3.new(0,-1,0)*Player_Size
  1384. local LIGHT2 = IT("PointLight",LIGHT)
  1385. LIGHT2.Range = 7
  1386. LIGHT2.Brightness = 5
  1387. LIGHT2.Color = Color3.new(0,0,0)
  1388. for i = 1, 2 do
  1389. local TWIST = -2
  1390. local START = A
  1391. local END = B
  1392. if i == 1 then
  1393. START = B
  1394. END = A
  1395. end
  1396. local ChainLink = IT("Beam",tors)
  1397. ChainLink.Texture = "rbxassetid://614117108"
  1398. ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
  1399. ChainLink.TextureSpeed = 1
  1400. ChainLink.Width0 = 1
  1401. ChainLink.Width1 = 1
  1402. ChainLink.TextureLength = 2.5
  1403. ChainLink.Attachment0 = START
  1404. ChainLink.Attachment1 = END
  1405. ChainLink.CurveSize0 = TWIST
  1406. ChainLink.CurveSize1 = TWIST
  1407. --ChainLink.FaceCamera = true
  1408. ChainLink.Segments = 45
  1409. ChainLink.Transparency = NumberSequence.new(0.25)
  1410. table.insert(CHAINLINKS,ChainLink)
  1411. end
  1412. for i = 1, 2 do
  1413. local TWIST = -1
  1414. local START = C
  1415. local END = D
  1416. if i == 1 then
  1417. START = D
  1418. END = C
  1419. end
  1420. local ChainLink = IT("Beam",tors)
  1421. ChainLink.Texture = "rbxassetid://614117108"
  1422. ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
  1423. ChainLink.TextureSpeed = 1
  1424. ChainLink.Width0 = 1
  1425. ChainLink.Width1 = 1
  1426. ChainLink.TextureLength = 5
  1427. ChainLink.Attachment0 = START
  1428. ChainLink.Attachment1 = END
  1429. ChainLink.CurveSize0 = TWIST
  1430. ChainLink.CurveSize1 = TWIST
  1431. --ChainLink.FaceCamera = true
  1432. ChainLink.Segments = 25
  1433. ChainLink.LightEmission = 0.5
  1434. ChainLink.Transparency = NumberSequence.new(0.25)
  1435. table.insert(CHAINLINKS,ChainLink)
  1436. end
  1437. for i = 0, 2.3, .1 do
  1438. swait()
  1439. GYRO.cframe = CF(root.Position,TORSO.Position)
  1440. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(-45)), 0.15)
  1441. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(45)), 0.3)
  1442. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1443. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1444. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1445. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1446. end
  1447. Cso("169105657", ra, 7, 1.2)
  1448. for i = 0, 4, .1 do
  1449. if(hit)then break end
  1450. swait()
  1451. GYRO.cframe = CF(root.Position,TORSO.Position)
  1452. Hook.CFrame = HEAD.CFrame
  1453. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(5), Rad(45)), 0.15)
  1454. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-45)), 0.3)
  1455. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1456. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1457. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(45)), 0.1)
  1458. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
  1459. end
  1460. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1461. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1462. hit = GetTorso(v.Parent);
  1463. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1464. break;
  1465. end
  1466. end
  1467. Cso("169105657", ra, 5, .8)
  1468. Cso("271693128", tors, 2, 1)
  1469. GYRO:remove()
  1470. for i = 0, 3, .1 do
  1471. swait()
  1472. root.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
  1473. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1474. end
  1475. if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
  1476. break
  1477. end
  1478. Chain.TextureLength = 4
  1479. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(90), Rad(-5), Rad(0)), 0.15)
  1480. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1481. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1482. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1483. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(0), Rad(-.6), Rad(25)), 0.1)
  1484. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-25)), 0.1)
  1485. end
  1486. hum.WalkSpeed = 120
  1487. attack = false
  1488. Hook:Destroy()
  1489. A:remove()
  1490. B:remove()
  1491. C:remove()
  1492. D:remove()
  1493. end
  1494. end
  1495. end
  1496. --------------------------------------------------------
  1497. --------------------------------------------------------
  1498. --------------------------------------------------------
  1499. --------------------------------------------------------
  1500. --------------------------------------------------------
  1501. --------------------------------------------------------
  1502. --------------------------------------------------------
  1503. function GIMME_THOSE()
  1504. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1505. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1506. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1507. local HEAD = HUM.Parent:FindFirstChild("Head")
  1508. local RIGHTARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightLowerArm")
  1509. local LEFTARM = HUM.Parent:FindFirstChild("Left Arm") or HUM.Parent:FindFirstChild("LeftLowerArm")
  1510. if HEAD and TORSO and HUM.Health > 0 then
  1511. local GYRO = IT("BodyGyro",root)
  1512. GYRO.D = 275
  1513. GYRO.P = 20000
  1514. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1515. attack = true
  1516. hum.WalkSpeed = 120
  1517. local hit,pos,hummie;
  1518. local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1519. local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1520. Hook.Transparency = 1
  1521. Hook2.Transparency = 1
  1522. local A = NewInstance("Attachment",Hook)
  1523. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1524. local A2 = NewInstance("Attachment",Hook2)
  1525. local B2 = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1526. local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1527. local Chain2 = NewInstance("Beam",Hook2,{Attachment0 = A2,Attachment1=B2,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1528. for i = 0, 2.3, .1 do
  1529. swait()
  1530. GYRO.cframe = CF(root.Position,TORSO.Position)
  1531. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
  1532. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1533. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15)
  1534. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1535. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1536. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1537. end
  1538. Cso("169105657", ra, 7, 1.2)
  1539. for i = 0, 5, .1 do
  1540. if(hit)then break end
  1541. swait()
  1542. GYRO.cframe = CF(root.Position,TORSO.Position)
  1543. Hook.CFrame = TORSO.CFrame
  1544. Hook2.CFrame = TORSO.CFrame
  1545. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(7), Rad(0), Rad(0)), 0.15)
  1546. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1547. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1548. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15)
  1549. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1550. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1551. end
  1552. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1553. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1554. hit = GetTorso(v.Parent);
  1555. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1556. break;
  1557. end
  1558. end
  1559. Cso("169105657", ra, 5, .8)
  1560. Cso("1474367957", TORSO, 2, 1)
  1561. GYRO:remove()
  1562. TORSO:BreakJoints()
  1563. for i = 0, 6, .1 do
  1564. swait()
  1565. Hook.CFrame = Hook.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2)
  1566. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1567. end
  1568. if((Hook.CFrame.p-tors.CFrame.p).magnitude < 2)then
  1569. break
  1570. end
  1571. Hook2.CFrame = Hook2.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2)
  1572. if(hit)then hit.CFrame = Hook2.CFrame; hit.Velocity = Vector3.new()
  1573. end
  1574. if((Hook2.CFrame.p-tors.CFrame.p).magnitude < 2)then
  1575. break
  1576. end
  1577. Chain.TextureLength = 4
  1578. Chain2.TextureLength = 4
  1579. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
  1580. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1581. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(90)), 0.15)
  1582. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1583. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1584. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1585. end
  1586. hum.WalkSpeed = 120
  1587. attack = false
  1588. Hook2:Destroy()
  1589. Hook:Destroy()
  1590. end
  1591. end
  1592. end
  1593. -------------------------------------------------------
  1594. --End Attacks N Stuff--
  1595. -------------------------------------------------------
  1596. mouse.KeyDown:connect(function(key)
  1597. if attack == false then
  1598. if key == 'b' then
  1599. DRAG_THEM_TO_HELL()
  1600. elseif key == 'v' then
  1601. DRAG_YOURSELF_TO_HELL()
  1602. elseif key == 'c' then
  1603. GIMME_THOSE()
  1604. end
  1605. end
  1606. end)
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614. -------------------------------------------------------
  1615. --Start Animations--
  1616. -------------------------------------------------------
  1617. print("By Makhail07")
  1618. while true do
  1619. swait()
  1620. sine = sine + change
  1621. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1622. local velderp = root.Velocity.y
  1623. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1624. if equipped == true or equipped == false then
  1625. if attack == false then
  1626. idle = idle + 1
  1627. else
  1628. idle = 0
  1629. end
  1630. if 1 < root.Velocity.y and hitfloor == nil then
  1631. Anim = "Jump"
  1632. if attack == false then
  1633. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1634. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1635. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1636. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1637. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1638. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1639. end
  1640. elseif -1 > root.Velocity.y and hitfloor == nil then
  1641. Anim = "Fall"
  1642. if attack == false then
  1643. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  1644. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1645. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1646. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1647. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1648. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1649. end
  1650. elseif torvel < 1 and hitfloor ~= nil then
  1651. Anim = "Idle"
  1652. change = 1
  1653. if attack == false then
  1654. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1655. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3)
  1656. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1657. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1658. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1)
  1659. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1)
  1660. end
  1661. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1662. Anim = "Walk"
  1663. change = 1.1
  1664. if attack == false then
  1665. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1666. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1667. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1668. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1669. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
  1670. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  1671. end
  1672. elseif torvel >= 25 and hitfloor ~= nil then
  1673. Anim = "Sprint"
  1674. change = 1.35
  1675. if attack == false then
  1676. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1677. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1678. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1679. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1680. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1681. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1682. end
  1683. end
  1684. end
  1685. Music.SoundId = "rbxassetid://"..SONG
  1686. Music.Looped = true
  1687. Music.Pitch = 1
  1688. Music.Volume = 1.5
  1689. Music.Parent = tors
  1690. Music:Resume()
  1691. if 0 < #Effects then
  1692. for e = 1, #Effects do
  1693. if Effects[e] ~= nil then
  1694. local Thing = Effects[e]
  1695. if Thing ~= nil then
  1696. local Part = Thing[1]
  1697. local Mode = Thing[2]
  1698. local Delay = Thing[3]
  1699. local IncX = Thing[4]
  1700. local IncY = Thing[5]
  1701. local IncZ = Thing[6]
  1702. if 1 >= Thing[1].Transparency then
  1703. if Thing[2] == "Block1" then
  1704. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1705. local Mesh = Thing[1].Mesh
  1706. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1707. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1708. elseif Thing[2] == "Block2" then
  1709. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1710. local Mesh = Thing[7]
  1711. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1712. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1713. elseif Thing[2] == "Block3" then
  1714. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1715. local Mesh = Thing[7]
  1716. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1717. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1718. elseif Thing[2] == "Cylinder" then
  1719. local Mesh = Thing[1].Mesh
  1720. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1721. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1722. elseif Thing[2] == "Blood" then
  1723. local Mesh = Thing[7]
  1724. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1725. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1726. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1727. elseif Thing[2] == "Elec" then
  1728. local Mesh = Thing[1].Mesh
  1729. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1730. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1731. elseif Thing[2] == "Disappear" then
  1732. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1733. elseif Thing[2] == "Shatter" then
  1734. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1735. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1736. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1737. Thing[6] = Thing[6] + Thing[5]
  1738. end
  1739. else
  1740. Part.Parent = nil
  1741. table.remove(Effects, e)
  1742. end
  1743. end
  1744. end
  1745. end
  1746. end
  1747. end
  1748. -------------------------------------------------------
  1749. --End Animations And Script--
  1750. -------------------------------------------------------
  1751. --------------------------------------------------------
  1752.  
  1753. pls = game:GetService'Players'
  1754. rs = game:GetService'RunService'
  1755. uinps = game:GetService'UserInputService'
  1756. lp = pls.LocalPlayer
  1757. mouse = lp:GetMouse()
  1758. c = lp.Character
  1759. human = c.Humanoid
  1760. human.MaxHealth = 50
  1761. wait()
  1762. human.Health = 50
  1763. c.Health:Destroy()
  1764.  
  1765. --------------------------------------------------------
  1766.  
  1767. Debounces = {
  1768. AnimationCycles = 0;
  1769. FPS = 0;
  1770. scalingDamage = false;
  1771. damageLevel = 0;
  1772. attackNumber = 0;
  1773. isAttacking = false;
  1774. isMoving = false;
  1775. isSprinting = false;
  1776. isBoosting = false;
  1777. isPassive = false;
  1778. isTyping = false;
  1779. }
  1780.  
  1781. --------------------------------------------------------
  1782.  
  1783. numLerp = function(start, goal, alpha)
  1784. return(((goal - start) * alpha) + start)
  1785. end
  1786.  
  1787. CFrameZero = function()
  1788. return CFrame.new(Vector3.new())
  1789. end
  1790.  
  1791. rad = function(value)
  1792. return math.rad(value)
  1793. end
  1794.  
  1795. CFAngles = function(Vector)
  1796. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  1797. end
  1798.  
  1799. --------------------------------------------------------
  1800.  
  1801. AnimStat = {
  1802. lerpSpeed = .2;
  1803. lerpSpeed2 = .35;
  1804. lerpTween = 0;
  1805. }
  1806.  
  1807. Joints = {
  1808. c.HumanoidRootPart.RootJoint;
  1809. c.Torso.Neck;
  1810. c.Torso['Left Shoulder'];
  1811. c.Torso['Right Shoulder'];
  1812. c.Torso['Left Hip'];
  1813. c.Torso['Right Hip'];
  1814. }
  1815.  
  1816. JointTargets = {
  1817. CFrameZero();
  1818. CFrameZero();
  1819. CFrameZero();
  1820. CFrameZero();
  1821. CFrameZero();
  1822. CFrameZero();
  1823. }
  1824.  
  1825. --------------------------------------------------------
  1826.  
  1827. prepareCharacter = function()
  1828. local transPoints = {
  1829. NumberSequenceKeypoint.new(0,.819,.0375),
  1830. NumberSequenceKeypoint.new(.207,.594,.0187),
  1831. NumberSequenceKeypoint.new(.4,.55,.031),
  1832. NumberSequenceKeypoint.new(.57,.619,.05),
  1833. NumberSequenceKeypoint.new(.76,.8,.0375),
  1834. NumberSequenceKeypoint.new(1,1,0),
  1835. }
  1836. local sizePoints = {
  1837. NumberSequenceKeypoint.new(0,.687,0),
  1838. NumberSequenceKeypoint.new(.111,.875,0),
  1839. NumberSequenceKeypoint.new(.327,1.19,0),
  1840. NumberSequenceKeypoint.new(.646,1.56,0),
  1841. NumberSequenceKeypoint.new(.805,1.37,0),
  1842. NumberSequenceKeypoint.new(.905,1.06,0),
  1843. NumberSequenceKeypoint.new(.968,.938,0),
  1844. NumberSequenceKeypoint.new(.984,1.13,0),
  1845. NumberSequenceKeypoint.new(1,1.62,0),
  1846. }
  1847. local Size = NumberSequence.new(sizePoints)
  1848. local Transparency = NumberSequence.new(transPoints)
  1849. rayModel = Instance.new("Model",c)
  1850. efxBlock = Instance.new("Part",c)
  1851. efxBlock.BrickColor = BrickColor.new("Cyan")
  1852. efxBlock.Material = "Neon"
  1853. efxBlock.FormFactor = "Custom"
  1854. efxBlock.Transparency = .3
  1855. efxBlock.Size = Vector3.new(.3,.3,.3)
  1856. local mesh = Instance.new("SpecialMesh",efxBlock)
  1857. mesh.MeshType = Enum.MeshType.Sphere
  1858. mesh.Scale = Vector3.new(1,1,1)
  1859. light = Instance.new("PointLight",c.Head)
  1860. light.Range = 10
  1861. light.Color = Color3.new(0,200/255,1)
  1862. light.Shadows = false
  1863. local particles = Instance.new("ParticleEmitter",efxBlock)
  1864. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  1865. particles.LightEmission = .95
  1866. particles.Size = Size
  1867. particles.Name = "Fire"
  1868. particles.Transparency = Transparency
  1869. particles.LockedToPart = true
  1870. particles.VelocityInheritance = .5
  1871. particles.LockedToPart = true
  1872. particles.Rate = 70
  1873. particles.Texture = "rbxassetid://56561915"
  1874. particles.Lifetime = NumberRange.new(2,2)
  1875. particles.RotSpeed = NumberRange.new(100,100)
  1876. particles.Speed = NumberRange.new(7,7)
  1877. script.Parent = efxBlock
  1878. fire = particles
  1879. local offset = Vector3.new(-0.11, .23, -0.5)
  1880. local weld = Instance.new("Weld",c.Head)
  1881. weld.Part0 = c.Head
  1882. weld.Part1 = efxBlock
  1883. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  1884. efxBlock.Parent = c
  1885. local music = Instance.new("Sound",c)
  1886. music.SoundId = "rbxassetid://316012176"
  1887. music.Looped = true
  1888. music.Volume = 0
  1889. fight = music
  1890. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  1891. pointGyro.P = 1e7
  1892. pointGyro.D = 1e3
  1893. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  1894. animator = c.Humanoid:FindFirstChild("Animator")
  1895. if animator then
  1896. animator:Destroy()
  1897. end
  1898. c.Torso.roblox:Destroy()
  1899. for i,v in pairs (c.Head:children()) do
  1900. if v.ClassName == "Sound" then
  1901. v:Destroy()
  1902. end
  1903. end
  1904. for i = 1,#Joints do
  1905. Joints[i].C1 = CFrame.new(Vector3.new())
  1906. end
  1907. human.WalkSpeed = 120
  1908. human.JumpPower = 120
  1909. end
  1910.  
  1911. uinps.InputBegan:connect(function(InputObject)
  1912. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  1913. Debounces.isPassive = not Debounces.isPassive
  1914. end
  1915. end)
  1916.  
  1917. setJointCFrames = function(table)
  1918. for i = 1,#table do
  1919. JointTargets[i] = table[i]
  1920. end
  1921. AnimationCycles = 0
  1922. end
  1923.  
  1924. setLerp = function(speed)
  1925. AnimStat.lerpSpeed = speed
  1926. end
  1927.  
  1928. setTween = function(tween)
  1929. AnimStat.lerpTween = tween
  1930. end
  1931.  
  1932. takeDamage = function(position,damage,distance,platformStand)
  1933. for i,v in pairs (pls:children()) do
  1934. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  1935. local torso = v.Character:FindFirstChild("Torso")
  1936. if torso and (torso.Position - position).magnitude < distance then
  1937. v.Character.Humanoid:TakeDamage(damage)
  1938. if platformStand == true then
  1939. v.Character.PlatformStand = platformStand
  1940. end
  1941. end
  1942. end
  1943. end
  1944. end
  1945.  
  1946. --------------------------------------------------------
  1947.  
  1948. prepareCharacter()
  1949.  
  1950. --------------------------------------------------------
  1951.  
  1952. spawn(function()
  1953. local sine = 0
  1954. while wait() do
  1955. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  1956. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  1957. setLerp(.1)
  1958. if Debounces.isPassive == true then
  1959. setJointCFrames({
  1960. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  1961. CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
  1962. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  1963. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  1964. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  1965. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  1966. })
  1967. else
  1968. setJointCFrames({
  1969. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1970. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
  1971. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  1972. CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  1973. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  1974. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  1975. })
  1976. end
  1977. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  1978. sine = sine + math.rad(12)
  1979. human.WalkSpeed = 15
  1980. setLerp(.15)
  1981. setJointCFrames({
  1982. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  1983. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  1984. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
  1985. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
  1986. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  1987. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  1988. })
  1989. end
  1990. if Debounces.scalingDamage == true then
  1991. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  1992. end
  1993. end
  1994. end)
  1995.  
  1996. human.Changed:connect(function(prop)
  1997. if prop == "MoveDirection" then
  1998. if human.MoveDirection.magnitude > .02 then
  1999. Debounces.isMoving = true
  2000. else
  2001. Debounces.isMoving = false
  2002. end
  2003. end
  2004. end)
  2005.  
  2006. uinps.InputBegan:connect(function(InputObject)
  2007. if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2008. Debounces.isBoosting = true
  2009. Debounces.damageLevel = 10
  2010. Debounces.scalingDamage = true
  2011. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2012. setLerp(.15)
  2013. setJointCFrames({
  2014. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  2015. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  2016. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  2017. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  2018. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  2019. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  2020. })
  2021. local boostSpeed = 250
  2022. local efx = Instance.new("Sound",c.Head)
  2023. efx.SoundId = "rbxassetid://200632875"
  2024. efx.Pitch = math.random(1100,1300)/1000
  2025. efx.Volume = .5
  2026. efx:Play()
  2027. spawn(function()
  2028. wait(5)
  2029. efx:Destroy()
  2030. end)
  2031. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  2032. vel.P = 1e3
  2033. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2034. wait(.15)
  2035. vel.P = 1000
  2036. vel.MaxForce = Vector3.new(3000,0,3000)
  2037. vel.Velocity = Vector3.new()
  2038. wait(.3)
  2039. setLerp(.3)
  2040. setJointCFrames({
  2041. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  2042. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  2043. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  2044. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  2045. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  2046. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  2047. })
  2048. wait(.2)
  2049. vel:Destroy()
  2050. Debounces.damageLevel = 0
  2051. Debounces.scalingDamage = false
  2052. Debounces.isBoosting = false
  2053. end
  2054. end)
  2055.  
  2056. uinps.InputBegan:connect(function(InputObject)
  2057. if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2058. Debounces.isBoosting = true
  2059. Debounces.damageLevel = 10
  2060. Debounces.scalingDamage = true
  2061. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2062. setLerp(.15)
  2063. setJointCFrames({
  2064. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  2065. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  2066. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  2067. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  2068. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  2069. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  2070. })
  2071. local boostSpeed = 250
  2072. local efx = Instance.new("Sound",c.Head)
  2073. efx.SoundId = "rbxassetid://200632875"
  2074. efx.Pitch = math.random(1100,1300)/1000
  2075. efx.Volume = .5
  2076. efx:Play()
  2077. spawn(function()
  2078. wait(5)
  2079. efx:Destroy()
  2080. end)
  2081. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  2082. vel.P = 1e3
  2083. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2084. wait(.15)
  2085. vel.P = 1000
  2086. vel.MaxForce = Vector3.new(3000,0,3000)
  2087. vel.Velocity = Vector3.new()
  2088. wait(.3)
  2089. setLerp(.3)
  2090. setJointCFrames({
  2091. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  2092. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2093. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2094. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2095. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2096. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2097. })
  2098. wait(.2)
  2099. vel:Destroy()
  2100. Debounces.damageLevel = 0
  2101. Debounces.scalingDamage = false
  2102. Debounces.isBoosting = false
  2103. end
  2104. end)
  2105.  
  2106. uinps.InputBegan:connect(function(InputObject)
  2107. if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2108. Debounces.isBoosting = true
  2109. Debounces.damageLevel = 10
  2110. Debounces.scalingDamage = true
  2111. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2112. setLerp(.15)
  2113. setJointCFrames({
  2114. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  2115. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  2116. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  2117. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  2118. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  2119. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2120. })
  2121. local boostSpeed = 250
  2122. local efx = Instance.new("Sound",c.Head)
  2123. efx.SoundId = "rbxassetid://200632875"
  2124. efx.Pitch = math.random(1100,1300)/1000
  2125. efx.Volume = .5
  2126. efx:Play()
  2127. spawn(function()
  2128. wait(5)
  2129. efx:Destroy()
  2130. end)
  2131. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  2132. vel.P = 1e3
  2133. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2134. wait(.15)
  2135. vel.P = 1000
  2136. vel.MaxForce = Vector3.new(3000,0,3000)
  2137. vel.Velocity = Vector3.new()
  2138. wait(.3)
  2139. setLerp(.3)
  2140. setJointCFrames({
  2141. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  2142. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2143. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2144. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2145. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2146. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2147. })
  2148. wait(.2)
  2149. vel:Destroy()
  2150. Debounces.damageLevel = 0
  2151. Debounces.scalingDamage = false
  2152. Debounces.isBoosting = false
  2153. end
  2154. end)
  2155.  
  2156. uinps.InputBegan:connect(function(InputObject)
  2157. if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2158. Debounces.isBoosting = true
  2159. Debounces.damageLevel = 10
  2160. Debounces.scalingDamage = true
  2161. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2162. setLerp(.15)
  2163. setJointCFrames({
  2164. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  2165. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  2166. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  2167. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  2168. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  2169. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2170. })
  2171. local boostSpeed = 150
  2172. local boostSpeed = 250
  2173. local efx = Instance.new("Sound",c.Head)
  2174. efx.SoundId = "rbxassetid://200632875"
  2175. efx.Pitch = math.random(1100,1300)/1000
  2176. efx.Volume = .5
  2177. efx:Play()
  2178. spawn(function()
  2179. wait(5)
  2180. efx:Destroy()
  2181. end)
  2182. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  2183. vel.P = 1e3
  2184. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2185. wait(.15)
  2186. vel.P = 1000
  2187. vel.MaxForce = Vector3.new(3000,0,3000)
  2188. vel.Velocity = Vector3.new()
  2189. wait(.3)
  2190. setLerp(.3)
  2191. setJointCFrames({
  2192. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  2193. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  2194. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  2195. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  2196. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  2197. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  2198. })
  2199. wait(.2)
  2200. vel:Destroy()
  2201. Debounces.damageLevel = 0
  2202. Debounces.scalingDamage = false
  2203. Debounces.isBoosting = false
  2204. end
  2205. end)
  2206.  
  2207. uinps.InputBegan:connect(function(InputObject)
  2208. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2209. local isLooping = true
  2210. uinps.InputEnded:connect(function(InputObject2)
  2211. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2212. isLooping = false
  2213. end
  2214. end)
  2215. while true do
  2216. if isLooping == false then
  2217. break
  2218. end
  2219. Debounces.attackNumber = Debounces.attackNumber + 1
  2220. local aimPos = mouse.Hit.p
  2221. local head = Instance.new("Part",c)
  2222. head.Size = Vector3.new(12,.2,12)
  2223. head.CanCollide = false
  2224. head.Anchored = true
  2225. head.Transparency = 1
  2226. for i = 1,2 do
  2227. local decal = Instance.new("Decal",head)
  2228. decal.Texture = "rbxassetid://323497117"
  2229. if i == 1 then
  2230. decal.Face = Enum.NormalId.Top
  2231. else
  2232. decal.Face = Enum.NormalId.Bottom
  2233. end
  2234. end
  2235. if Debounces.attackNumber%2 == 1 then
  2236. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2237. else
  2238. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2239. end
  2240. spawn(function()
  2241. local timer = 0
  2242. while rs.RenderStepped:wait() do
  2243. if timer >= 1.55 then
  2244. break
  2245. end
  2246. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2247. timer = timer + 1/30/(Debounces.FPS/60)
  2248. end
  2249. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2250. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2251. local hit, pos = workspace:FindPartOnRay(ray,c)
  2252. local dis = (head.CFrame.p - pos).magnitude
  2253. local rayPart = Instance.new("Part",rayModel)
  2254. rayPart.Material = "Neon"
  2255. rayPart.FormFactor = "Custom"
  2256. rayPart.BrickColor = BrickColor.new(1,1,1)
  2257. rayPart.Anchored = true
  2258. rayPart.CanCollide = false
  2259. rayPart.Size = Vector3.new(7,7,dis + 400)
  2260. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  2261. rayPart.CFrame = rayCFrame
  2262. head:Destroy()
  2263. end)
  2264. wait()
  2265. local s = Instance.new("Sound",head)
  2266. s.Volume = 1
  2267. s.SoundId = "rbxassetid://332223043"
  2268. s:Play()
  2269. wait(.04)
  2270. end
  2271. end
  2272. end)
  2273.  
  2274. uinps.InputBegan:connect(function(InputObj)
  2275. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2276. Debounces.isAttacking = true
  2277. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2278. local head = Instance.new("Part",c)
  2279. head.Size = Vector3.new(18,.2,18)
  2280. head.CanCollide = false
  2281. head.Anchored = true
  2282. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2283. head.Transparency = 1
  2284. for i = 1,2 do
  2285. local decal = Instance.new("Decal",head)
  2286. decal.Texture = "rbxassetid://323497117"
  2287. if i == 1 then
  2288. decal.Face = Enum.NormalId.Top
  2289. else
  2290. decal.Face = Enum.NormalId.Bottom
  2291. end
  2292. end
  2293. setLerp(.1)
  2294. setJointCFrames({
  2295. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2296. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2297. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2298. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2299. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2300. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2301. })
  2302. spawn(function()
  2303. local timer = 0
  2304. while rs.RenderStepped:wait() do
  2305. if timer >= 1.55/.8 then
  2306. break
  2307. end
  2308. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2309. timer = timer + 1/30/(Debounces.FPS/60)
  2310. end
  2311. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2312. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2313. local hit, pos = workspace:FindPartOnRay(ray,c)
  2314. local dis = (head.CFrame.p - pos).magnitude
  2315. local rayPart = Instance.new("Part",rayModel)
  2316. rayPart.Material = "Neon"
  2317. rayPart.FormFactor = "Custom"
  2318. rayPart.Name = "Punch"
  2319. rayPart.BrickColor = BrickColor.new(1,1,1)
  2320. rayPart.Anchored = true
  2321. rayPart.CanCollide = false
  2322. rayPart.Size = Vector3.new(28,28,dis + 400)
  2323. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  2324. rayPart.CFrame = rayCFrame
  2325. head:Destroy()
  2326. end)
  2327. wait()
  2328. local s = Instance.new("Sound",head)
  2329. s.Volume = 1
  2330. s.SoundId = "rbxassetid://332223043"
  2331. s.Pitch = .8
  2332. s:Play()
  2333. wait(.75)
  2334. setLerp(.17)
  2335. setJointCFrames({
  2336. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2337. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2338. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2339. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  2340. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  2341. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  2342. })
  2343. wait(.5)
  2344. Debounces.isAttacking = false
  2345. end
  2346. end)
  2347.  
  2348. reflect = function(d,n)
  2349. local i, n = -1 * d.unit, n.unit
  2350. local dot = n:Dot(i)
  2351. return 2*dot*n - i
  2352. end
  2353.  
  2354. makeReflectionBeam = function(pos,look,isCrit)
  2355. local ray = Ray.new(pos,look)
  2356. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  2357. local e = Instance.new("Part",rayModel)
  2358. e.Anchored = true
  2359. e.CanCollide = false
  2360. e.BrickColor = BrickColor.new("White")
  2361. e.Material = "Neon"
  2362. e.FormFactor = "Custom"
  2363. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  2364. if isCrit == true then
  2365. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  2366. e.Name = "Punch"
  2367. end
  2368. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  2369. local e = Instance.new("Sound",c)
  2370. if isCrit == true then
  2371. e.Volume = .5
  2372. else
  2373. e.Volume = .3
  2374. e.Pitch = 1.5
  2375. end
  2376. e.SoundId = "rbxassetid://200632875"
  2377. e:Play()
  2378. spawn(function()
  2379. wait(6)
  2380. e:Destroy()
  2381. end)
  2382. wait(.05)
  2383. if hit ~= nil then
  2384. newDir = reflect(look.unit,norm,isCrit)
  2385. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  2386. end
  2387. end
  2388.  
  2389. uinps.InputBegan:connect(function(InputObject)
  2390. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2391. local isLooping = true
  2392. uinps.InputEnded:connect(function(InputObject2)
  2393. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2394. isLooping = false
  2395. end
  2396. end)
  2397. while true do
  2398. if isLooping == false then
  2399. break
  2400. end
  2401. Debounces.attackNumber = Debounces.attackNumber + 1
  2402. local aimPos = mouse.Hit.p
  2403. local head = Instance.new("Part",c)
  2404. head.Size = Vector3.new(12,.2,12)
  2405. head.CanCollide = false
  2406. head.Anchored = true
  2407. head.Transparency = 1
  2408. for i = 1,2 do
  2409. local decal = Instance.new("Decal",head)
  2410. decal.Texture = "rbxassetid://323497117"
  2411. if i == 1 then
  2412. decal.Face = Enum.NormalId.Top
  2413. else
  2414. decal.Face = Enum.NormalId.Bottom
  2415. end
  2416. end
  2417. if Debounces.attackNumber%2 == 1 then
  2418. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2419. else
  2420. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2421. end
  2422. spawn(function()
  2423. local timer = 0
  2424. while rs.RenderStepped:wait() do
  2425. if timer >= 1.55 then
  2426. break
  2427. end
  2428. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2429. timer = timer + 1/30/(Debounces.FPS/60)
  2430. end
  2431. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2432. head:Destroy()
  2433. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  2434. end)
  2435.  
  2436. wait()
  2437. local s = Instance.new("Sound",head)
  2438. s.Volume = 1
  2439. s.SoundId = "rbxassetid://332223043"
  2440. s.Pitch = 1.02
  2441. s:Play()
  2442. wait(.2)
  2443. end
  2444. end
  2445. end)
  2446.  
  2447. uinps.InputBegan:connect(function(InputObj)
  2448. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2449. Debounces.isAttacking = true
  2450. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2451. local head = Instance.new("Part",c)
  2452. head.Size = Vector3.new(18,.2,18)
  2453. head.CanCollide = false
  2454. head.Anchored = true
  2455. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2456. head.Transparency = 1
  2457. for i = 1,2 do
  2458. local decal = Instance.new("Decal",head)
  2459. decal.Texture = "rbxassetid://323497117"
  2460. if i == 1 then
  2461. decal.Face = Enum.NormalId.Top
  2462. else
  2463. decal.Face = Enum.NormalId.Bottom
  2464. end
  2465. end
  2466. setLerp(.1)
  2467. setJointCFrames({
  2468. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2469. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2470. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2471. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2472. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2473. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2474. })
  2475. spawn(function()
  2476. local timer = 0
  2477. while rs.RenderStepped:wait() do
  2478. if timer >= 1.55/.8 then
  2479. break
  2480. end
  2481. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2482. timer = timer + 1/30/(Debounces.FPS/60)
  2483. end
  2484. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2485. head:Destroy()
  2486. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  2487. end)
  2488. wait()
  2489. local s = Instance.new("Sound",head)
  2490. s.Volume = 2
  2491. s.SoundId = "rbxassetid://332223043"
  2492. s.Pitch = .8
  2493. s:Play()
  2494. wait(.75)
  2495. setLerp(.17)
  2496. setJointCFrames({
  2497. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2498. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2499. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2500. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  2501. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  2502. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  2503. })
  2504. wait(.5)
  2505. Debounces.isAttacking = false
  2506. end
  2507. end)
  2508.  
  2509. uinps.InputBegan:connect(function(InputObj)
  2510. if InputObj.KeyCode == Enum.KeyCode.Slash then
  2511. local finishEvent = nil
  2512. Debounces.isTyping = true
  2513. finishEvent = uinps.InputBegan:connect(function(InputObj)
  2514. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  2515. Debounces.isTyping = false
  2516. finishEvent:disconnect()
  2517. end
  2518. end)
  2519. end
  2520. end)
  2521.  
  2522. uinps.InputBegan:connect(function(InputObj)
  2523. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  2524. Debounces.isSprinting = true
  2525. end
  2526. end)
  2527.  
  2528. uinps.InputEnded:connect(function(InputObj)
  2529. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  2530. Debounces.isSprinting = false
  2531. end
  2532. end)
  2533.  
  2534. rs.RenderStepped:connect(function()
  2535. Debounces.FPS = 1/rs.RenderStepped:wait()
  2536. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  2537. if Debounces.isPassive == false then
  2538. fire.Enabled = false
  2539. light.Range = 0
  2540. fight:Pause()
  2541. sans:Resume()
  2542. efxBlock.Transparency = 1
  2543. else
  2544. fire.Enabled = true
  2545. light.Range = 10
  2546. fight:Resume()
  2547. sans:Pause()
  2548. efxBlock.Transparency = 0
  2549. end
  2550. for i,v in pairs (rayModel:children()) do
  2551. if v.Transparency >= 1 then
  2552. v:Destroy()
  2553. else
  2554. v.CanCollide = true
  2555. local parts = v:GetTouchingParts()
  2556. v.CanCollide = false
  2557. for i = 1,#parts do
  2558. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  2559. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  2560. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  2561. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  2562. end
  2563. end
  2564. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  2565. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  2566. end
  2567. end
  2568. for i = 1,#Joints do
  2569. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  2570. end
  2571. local sineval = math.sin(tick() * 2) * 3
  2572. fire.Acceleration = Vector3.new(sineval,1,sineval)
  2573. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  2574. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement