wamandnj

Untitled

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