TheYoutuber_Pro

Error Sans Edited

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