Advertisement
HennadiY

Untitled

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