Advertisement
StarzoZero

error sans

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