XskillyX

Untitled

Nov 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 121.88 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  8.  
  9. wait(1)
  10. player = game.Players.LocalPlayer
  11. torso = player.Character:WaitForChild("Torso")
  12. mouse = player:GetMouse()
  13.  
  14. mouse.KeyDown:connect(function(key)
  15. if key == "c" then
  16. dist = (torso.Position - mouse.Hit.p).magnitude
  17. if dist <= 100 then
  18. torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0)
  19. end
  20. end
  21. end)
  22. -- BurnLegion strikes again!
  23. -- wongxd, this is why you DON'T goto Voidacity's
  24. -- SLPM has been absent, so I've taken it upon myself to make something
  25.  
  26. --------------------------------------------------------
  27.  
  28. pls = game:GetService'Players'
  29. rs = game:GetService'RunService'
  30. uinps = game:GetService'UserInputService'
  31. lp = pls.LocalPlayer
  32. mouse = lp:GetMouse()
  33. c = lp.Character
  34. human = c.Humanoid
  35. human.MaxHealth = 50
  36. wait()
  37. human.Health = 50
  38. c.Health:Destroy()
  39.  
  40. --------------------------------------------------------
  41.  
  42. Debounces = {
  43. AnimationCycles = 0;
  44. FPS = 0;
  45. scalingDamage = false;
  46. damageLevel = 0;
  47. attackNumber = 0;
  48. isAttacking = false;
  49. isMoving = false;
  50. isSprinting = false;
  51. isBoosting = false;
  52. isPassive = false;
  53. isTyping = false;
  54. }
  55.  
  56. --------------------------------------------------------
  57.  
  58. numLerp = function(start, goal, alpha)
  59. return(((goal - start) * alpha) + start)
  60. end
  61.  
  62. CFrameZero = function()
  63. return CFrame.new(Vector3.new())
  64. end
  65.  
  66. rad = function(value)
  67. return math.rad(value)
  68. end
  69.  
  70. CFAngles = function(Vector)
  71. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  72. end
  73.  
  74. --------------------------------------------------------
  75.  
  76. AnimStat = {
  77. lerpSpeed = .2;
  78. lerpSpeed2 = .35;
  79. lerpTween = 0;
  80. }
  81.  
  82. Joints = {
  83. c.HumanoidRootPart.RootJoint;
  84. c.Torso.Neck;
  85. c.Torso['Left Shoulder'];
  86. c.Torso['Right Shoulder'];
  87. c.Torso['Left Hip'];
  88. c.Torso['Right Hip'];
  89. }
  90.  
  91. JointTargets = {
  92. CFrameZero();
  93. CFrameZero();
  94. CFrameZero();
  95. CFrameZero();
  96. CFrameZero();
  97. CFrameZero();
  98. }
  99.  
  100. --------------------------------------------------------
  101.  
  102. BodyColors = {
  103. HeadColor = BrickColor.new("Institutional white");
  104. LeftArmColor = BrickColor.new("Institutional white");
  105. RightArmColor = BrickColor.new("Institutional white");
  106. LeftLegColor = BrickColor.new("Institutional white");
  107. RightLegColor = BrickColor.new("Institutional white");
  108. TorsoColor = BrickColor.new("Mid gray");
  109. }
  110.  
  111. Customs = {
  112. Face = "http://www.roblox.com/asset/?id=8560915";
  113. Shirt = "http://www.roblox.com/asset/?id=334781688";
  114. Pants = "http://www.roblox.com/asset/?id=335237283";
  115. }
  116.  
  117. --------------------------------------------------------
  118.  
  119. ypcall(function()
  120. char.Shirt:Destroy()
  121. char.Pants:Destroy()
  122. shirt = Instance.new("Shirt", char)
  123. shirt.Name = "Shirt"
  124. pants = Instance.new("Pants", char)
  125. pants.Name = "Pants"
  126. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=334755544"
  127. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=315964941"
  128. end)
  129.  
  130. --------------------------------------------------------
  131.  
  132. prepareCharacter = function()
  133. local transPoints = {
  134. NumberSequenceKeypoint.new(0,.819,.0375),
  135. NumberSequenceKeypoint.new(.207,.594,.0187),
  136. NumberSequenceKeypoint.new(.4,.55,.031),
  137. NumberSequenceKeypoint.new(.57,.619,.05),
  138. NumberSequenceKeypoint.new(.76,.8,.0375),
  139. NumberSequenceKeypoint.new(1,1,0),
  140. }
  141. local sizePoints = {
  142. NumberSequenceKeypoint.new(0,.687,0),
  143. NumberSequenceKeypoint.new(.111,.875,0),
  144. NumberSequenceKeypoint.new(.327,1.19,0),
  145. NumberSequenceKeypoint.new(.646,1.56,0),
  146. NumberSequenceKeypoint.new(.805,1.37,0),
  147. NumberSequenceKeypoint.new(.905,1.06,0),
  148. NumberSequenceKeypoint.new(.968,.938,0),
  149. NumberSequenceKeypoint.new(.984,1.13,0),
  150. NumberSequenceKeypoint.new(1,1.62,0),
  151. }
  152. local Size = NumberSequence.new(sizePoints)
  153. local Transparency = NumberSequence.new(transPoints)
  154. rayModel = Instance.new("Model",c)
  155. efxBlock = Instance.new("Part",c)
  156. efxBlock.BrickColor = BrickColor.new("Cyan")
  157. efxBlock.Material = "Neon"
  158. efxBlock.FormFactor = "Custom"
  159. efxBlock.Transparency = .3
  160. efxBlock.Size = Vector3.new(.3,.3,.3)
  161. local mesh = Instance.new("SpecialMesh",efxBlock)
  162. mesh.MeshType = Enum.MeshType.Sphere
  163. mesh.Scale = Vector3.new(1,1,1)
  164. light = Instance.new("PointLight",c.Head)
  165. light.Range = 10
  166. light.Color = Color3.new(0,200/255,1)
  167. light.Shadows = false
  168. local particles = Instance.new("ParticleEmitter",efxBlock)
  169. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  170. particles.LightEmission = .95
  171. particles.Size = Size
  172. particles.Name = "Fire"
  173. particles.Transparency = Transparency
  174. particles.LockedToPart = true
  175. particles.VelocityInheritance = .5
  176. particles.LockedToPart = true
  177. particles.Rate = 70
  178. particles.Texture = "rbxassetid://56561915"
  179. particles.Lifetime = NumberRange.new(2,2)
  180. particles.RotSpeed = NumberRange.new(100,100)
  181. particles.Speed = NumberRange.new(7,7)
  182. script.Parent = efxBlock
  183. fire = particles
  184. local offset = Vector3.new(-0.11, .23, -0.5)
  185. local weld = Instance.new("Weld",c.Head)
  186. weld.Part0 = c.Head
  187. weld.Part1 = efxBlock
  188. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  189. efxBlock.Parent = c
  190. local music = Instance.new("Sound",c)
  191. music.SoundId = "rbxassetid://316012176"
  192. music.Looped = true
  193. music.Volume = 0
  194. fight = music
  195. local music2 = Instance.new("Sound",c)
  196. music2.SoundId = "rbxassetid://316014309"
  197. music2.Looped = true
  198. music2.Volume = 0
  199. sans = music2
  200. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  201. pointGyro.P = 1e7
  202. pointGyro.D = 1e3
  203. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  204. animator = c.Humanoid:FindFirstChild("Animator")
  205. if animator then
  206. animator:Destroy()
  207. end
  208. c.Torso.roblox:Destroy()
  209. for i,v in pairs (c.Head:children()) do
  210. if v.ClassName == "Sound" then
  211. v:Destroy()
  212. end
  213. end
  214. for i = 1,#Joints do
  215. Joints[i].C1 = CFrame.new(Vector3.new())
  216. end
  217. human.WalkSpeed = 0
  218. human.JumpPower = 0
  219. end
  220.  
  221. uinps.InputBegan:connect(function(InputObject)
  222. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  223. Debounces.isPassive = not Debounces.isPassive
  224. end
  225. end)
  226.  
  227. setJointCFrames = function(table)
  228. for i = 1,#table do
  229. JointTargets[i] = table[i]
  230. end
  231. AnimationCycles = 0
  232. end
  233.  
  234. setLerp = function(speed)
  235. AnimStat.lerpSpeed = speed
  236. end
  237.  
  238. setTween = function(tween)
  239. AnimStat.lerpTween = tween
  240. end
  241.  
  242. takeDamage = function(position,damage,distance,platformStand)
  243. for i,v in pairs (pls:children()) do
  244. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  245. local torso = v.Character:FindFirstChild("Torso")
  246. if torso and (torso.Position - position).magnitude < distance then
  247. v.Character.Humanoid:TakeDamage(damage)
  248. if platformStand == true then
  249. v.Character.PlatformStand = platformStand
  250. end
  251. end
  252. end
  253. end
  254. end
  255.  
  256. --------------------------------------------------------
  257.  
  258. prepareCharacter()
  259.  
  260. --------------------------------------------------------
  261.  
  262. spawn(function()
  263. local sine = 0
  264. while wait() do
  265. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  266. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  267. setLerp(.1)
  268. if Debounces.isPassive == true then
  269. setJointCFrames({
  270. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  271. 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));
  272. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  273. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  274. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  275. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  276. })
  277. else
  278. setJointCFrames({
  279. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  280. 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));
  281. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  282. 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));
  283. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  284. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  285. })
  286. end
  287. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  288. sine = sine + math.rad(12)
  289. human.WalkSpeed = 15
  290. setLerp(.15)
  291. setJointCFrames({
  292. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  293. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  294. 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));
  295. 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));
  296. 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));
  297. 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));
  298. })
  299. end
  300. if Debounces.scalingDamage == true then
  301. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  302. end
  303. end
  304. end)
  305.  
  306. human.Changed:connect(function(prop)
  307. if prop == "MoveDirection" then
  308. if human.MoveDirection.magnitude > .02 then
  309. Debounces.isMoving = true
  310. else
  311. Debounces.isMoving = false
  312. end
  313. end
  314. end)
  315.  
  316. uinps.InputBegan:connect(function(InputObject)
  317. 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
  318. Debounces.isBoosting = true
  319. Debounces.damageLevel = 10
  320. Debounces.scalingDamage = true
  321. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  322. setLerp(.15)
  323. setJointCFrames({
  324. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  325. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  326. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  327. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  328. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  329. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  330. })
  331. local boostSpeed = 250
  332. local efx = Instance.new("Sound",c.Head)
  333. efx.SoundId = "rbxassetid://200632875"
  334. efx.Pitch = math.random(1100,1300)/1000
  335. efx.Volume = .5
  336. efx:Play()
  337. spawn(function()
  338. wait(5)
  339. efx:Destroy()
  340. end)
  341. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  342. vel.P = 1e3
  343. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  344. wait(.15)
  345. vel.P = 1000
  346. vel.MaxForce = Vector3.new(3000,0,3000)
  347. vel.Velocity = Vector3.new()
  348. wait(.3)
  349. setLerp(.3)
  350. setJointCFrames({
  351. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  352. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  353. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  354. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  355. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  356. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  357. })
  358. wait(.2)
  359. vel:Destroy()
  360. Debounces.damageLevel = 0
  361. Debounces.scalingDamage = false
  362. Debounces.isBoosting = false
  363. end
  364. end)
  365.  
  366. uinps.InputBegan:connect(function(InputObject)
  367. 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
  368. Debounces.isBoosting = true
  369. Debounces.damageLevel = 10
  370. Debounces.scalingDamage = true
  371. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  372. setLerp(.15)
  373. setJointCFrames({
  374. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  375. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  376. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  377. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  378. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  379. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  380. })
  381. local boostSpeed = 250
  382. local efx = Instance.new("Sound",c.Head)
  383. efx.SoundId = "rbxassetid://200632875"
  384. efx.Pitch = math.random(1100,1300)/1000
  385. efx.Volume = .5
  386. efx:Play()
  387. spawn(function()
  388. wait(5)
  389. efx:Destroy()
  390. end)
  391. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  392. vel.P = 1e3
  393. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  394. wait(.15)
  395. vel.P = 1000
  396. vel.MaxForce = Vector3.new(3000,0,3000)
  397. vel.Velocity = Vector3.new()
  398. wait(.3)
  399. setLerp(.3)
  400. setJointCFrames({
  401. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  402. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  403. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  404. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  405. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  406. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  407. })
  408. wait(.2)
  409. vel:Destroy()
  410. Debounces.damageLevel = 0
  411. Debounces.scalingDamage = false
  412. Debounces.isBoosting = false
  413. end
  414. end)
  415.  
  416. uinps.InputBegan:connect(function(InputObject)
  417. 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
  418. Debounces.isBoosting = true
  419. Debounces.damageLevel = 10
  420. Debounces.scalingDamage = true
  421. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  422. setLerp(.15)
  423. setJointCFrames({
  424. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  425. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  426. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  427. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  428. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  429. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  430. })
  431. local boostSpeed = 250
  432. local efx = Instance.new("Sound",c.Head)
  433. efx.SoundId = "rbxassetid://200632875"
  434. efx.Pitch = math.random(1100,1300)/1000
  435. efx.Volume = .5
  436. efx:Play()
  437. spawn(function()
  438. wait(5)
  439. efx:Destroy()
  440. end)
  441. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  442. vel.P = 1e3
  443. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  444. wait(.15)
  445. vel.P = 1000
  446. vel.MaxForce = Vector3.new(3000,0,3000)
  447. vel.Velocity = Vector3.new()
  448. wait(.3)
  449. setLerp(.3)
  450. setJointCFrames({
  451. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  452. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  453. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  454. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  455. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  456. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  457. })
  458. wait(.2)
  459. vel:Destroy()
  460. Debounces.damageLevel = 0
  461. Debounces.scalingDamage = false
  462. Debounces.isBoosting = false
  463. end
  464. end)
  465.  
  466. uinps.InputBegan:connect(function(InputObject)
  467. 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
  468. Debounces.isBoosting = true
  469. Debounces.damageLevel = 10
  470. Debounces.scalingDamage = true
  471. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  472. setLerp(.15)
  473. setJointCFrames({
  474. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  475. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  476. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  477. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  478. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  479. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  480. })
  481. local boostSpeed = 150
  482. local boostSpeed = 250
  483. local efx = Instance.new("Sound",c.Head)
  484. efx.SoundId = "rbxassetid://200632875"
  485. efx.Pitch = math.random(1100,1300)/1000
  486. efx.Volume = .5
  487. efx:Play()
  488. spawn(function()
  489. wait(5)
  490. efx:Destroy()
  491. end)
  492. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  493. vel.P = 1e3
  494. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  495. wait(.15)
  496. vel.P = 1000
  497. vel.MaxForce = Vector3.new(3000,0,3000)
  498. vel.Velocity = Vector3.new()
  499. wait(.3)
  500. setLerp(.3)
  501. setJointCFrames({
  502. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  503. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  504. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  505. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  506. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  507. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  508. })
  509. wait(.2)
  510. vel:Destroy()
  511. Debounces.damageLevel = 0
  512. Debounces.scalingDamage = false
  513. Debounces.isBoosting = false
  514. end
  515. end)
  516.  
  517. uinps.InputBegan:connect(function(InputObject)
  518. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  519. local isLooping = true
  520. uinps.InputEnded:connect(function(InputObject2)
  521. if InputObject2.KeyCode == Enum.KeyCode.Q then
  522. isLooping = false
  523. end
  524. end)
  525. while true do
  526. if isLooping == false then
  527. break
  528. end
  529. Debounces.attackNumber = Debounces.attackNumber + 1
  530. local aimPos = mouse.Hit.p
  531. local head = Instance.new("Part",c)
  532. head.Size = Vector3.new(12,.2,12)
  533. head.CanCollide = false
  534. head.Anchored = true
  535. head.Transparency = 1
  536. for i = 1,2 do
  537. local decal = Instance.new("Decal",head)
  538. decal.Texture = "rbxassetid://323497117"
  539. if i == 1 then
  540. decal.Face = Enum.NormalId.Top
  541. else
  542. decal.Face = Enum.NormalId.Bottom
  543. end
  544. end
  545. if Debounces.attackNumber%2 == 1 then
  546. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  547. else
  548. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  549. end
  550. spawn(function()
  551. local timer = 0
  552. while rs.RenderStepped:wait() do
  553. if timer >= 1.55 then
  554. break
  555. end
  556. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  557. timer = timer + 1/30/(Debounces.FPS/60)
  558. end
  559. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  560. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  561. local hit, pos = workspace:FindPartOnRay(ray,c)
  562. local dis = (head.CFrame.p - pos).magnitude
  563. local rayPart = Instance.new("Part",rayModel)
  564. rayPart.Material = "Neon"
  565. rayPart.FormFactor = "Custom"
  566. rayPart.BrickColor = BrickColor.new(1,1,1)
  567. rayPart.Anchored = true
  568. rayPart.CanCollide = false
  569. rayPart.Size = Vector3.new(7,7,dis + 400)
  570. 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)
  571. rayPart.CFrame = rayCFrame
  572. head:Destroy()
  573. end)
  574. wait()
  575. local s = Instance.new("Sound",head)
  576. s.Volume = 1
  577. s.SoundId = "rbxassetid://332223043"
  578. s:Play()
  579. wait(.04)
  580. end
  581. end
  582. end)
  583.  
  584. uinps.InputBegan:connect(function(InputObj)
  585. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  586. Debounces.isAttacking = true
  587. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  588. local head = Instance.new("Part",c)
  589. head.Size = Vector3.new(18,.2,18)
  590. head.CanCollide = false
  591. head.Anchored = true
  592. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  593. head.Transparency = 1
  594. for i = 1,2 do
  595. local decal = Instance.new("Decal",head)
  596. decal.Texture = "rbxassetid://323497117"
  597. if i == 1 then
  598. decal.Face = Enum.NormalId.Top
  599. else
  600. decal.Face = Enum.NormalId.Bottom
  601. end
  602. end
  603. setLerp(.1)
  604. setJointCFrames({
  605. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  606. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  607. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  608. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  609. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  610. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  611. })
  612. spawn(function()
  613. local timer = 0
  614. while rs.RenderStepped:wait() do
  615. if timer >= 1.55/.8 then
  616. break
  617. end
  618. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  619. timer = timer + 1/30/(Debounces.FPS/60)
  620. end
  621. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  622. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  623. local hit, pos = workspace:FindPartOnRay(ray,c)
  624. local dis = (head.CFrame.p - pos).magnitude
  625. local rayPart = Instance.new("Part",rayModel)
  626. rayPart.Material = "Neon"
  627. rayPart.FormFactor = "Custom"
  628. rayPart.Name = "Punch"
  629. rayPart.BrickColor = BrickColor.new(1,1,1)
  630. rayPart.Anchored = true
  631. rayPart.CanCollide = false
  632. rayPart.Size = Vector3.new(28,28,dis + 400)
  633. 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)
  634. rayPart.CFrame = rayCFrame
  635. head:Destroy()
  636. end)
  637. wait()
  638. local s = Instance.new("Sound",head)
  639. s.Volume = 1
  640. s.SoundId = "rbxassetid://332223043"
  641. s.Pitch = .8
  642. s:Play()
  643. wait(.75)
  644. setLerp(.17)
  645. setJointCFrames({
  646. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  647. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  648. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  649. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  650. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  651. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  652. })
  653. wait(.5)
  654. Debounces.isAttacking = false
  655. end
  656. end)
  657.  
  658. reflect = function(d,n)
  659. local i, n = -1 * d.unit, n.unit
  660. local dot = n:Dot(i)
  661. return 2*dot*n - i
  662. end
  663.  
  664. makeReflectionBeam = function(pos,look,isCrit)
  665. local ray = Ray.new(pos,look)
  666. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  667. local e = Instance.new("Part",rayModel)
  668. e.Anchored = true
  669. e.CanCollide = false
  670. e.BrickColor = BrickColor.new("White")
  671. e.Material = "Neon"
  672. e.FormFactor = "Custom"
  673. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  674. if isCrit == true then
  675. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  676. e.Name = "Punch"
  677. end
  678. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  679. local e = Instance.new("Sound",c)
  680. if isCrit == true then
  681. e.Volume = .5
  682. else
  683. e.Volume = .3
  684. e.Pitch = 1.5
  685. end
  686. e.SoundId = "rbxassetid://200632875"
  687. e:Play()
  688. spawn(function()
  689. wait(6)
  690. e:Destroy()
  691. end)
  692. wait(.05)
  693. if hit ~= nil then
  694. newDir = reflect(look.unit,norm,isCrit)
  695. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  696. end
  697. end
  698.  
  699. uinps.InputBegan:connect(function(InputObject)
  700. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  701. local isLooping = true
  702. uinps.InputEnded:connect(function(InputObject2)
  703. if InputObject2.KeyCode == Enum.KeyCode.Q then
  704. isLooping = false
  705. end
  706. end)
  707. while true do
  708. if isLooping == false then
  709. break
  710. end
  711. Debounces.attackNumber = Debounces.attackNumber + 1
  712. local aimPos = mouse.Hit.p
  713. local head = Instance.new("Part",c)
  714. head.Size = Vector3.new(12,.2,12)
  715. head.CanCollide = false
  716. head.Anchored = true
  717. head.Transparency = 1
  718. for i = 1,2 do
  719. local decal = Instance.new("Decal",head)
  720. decal.Texture = "rbxassetid://323497117"
  721. if i == 1 then
  722. decal.Face = Enum.NormalId.Top
  723. else
  724. decal.Face = Enum.NormalId.Bottom
  725. end
  726. end
  727. if Debounces.attackNumber%2 == 1 then
  728. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  729. else
  730. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  731. end
  732. spawn(function()
  733. local timer = 0
  734. while rs.RenderStepped:wait() do
  735. if timer >= 1.55 then
  736. break
  737. end
  738. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  739. timer = timer + 1/30/(Debounces.FPS/60)
  740. end
  741. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  742. head:Destroy()
  743. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  744. end)
  745.  
  746. wait()
  747. local s = Instance.new("Sound",head)
  748. s.Volume = 1
  749. s.SoundId = "rbxassetid://332223043"
  750. s.Pitch = 1.02
  751. s:Play()
  752. wait(.2)
  753. end
  754. end
  755. end)
  756.  
  757. uinps.InputBegan:connect(function(InputObj)
  758. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  759. Debounces.isAttacking = true
  760. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  761. local head = Instance.new("Part",c)
  762. head.Size = Vector3.new(18,.2,18)
  763. head.CanCollide = false
  764. head.Anchored = true
  765. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  766. head.Transparency = 1
  767. for i = 1,2 do
  768. local decal = Instance.new("Decal",head)
  769. decal.Texture = "rbxassetid://323497117"
  770. if i == 1 then
  771. decal.Face = Enum.NormalId.Top
  772. else
  773. decal.Face = Enum.NormalId.Bottom
  774. end
  775. end
  776. setLerp(.1)
  777. setJointCFrames({
  778. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  779. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  780. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  781. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  782. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  783. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  784. })
  785. spawn(function()
  786. local timer = 0
  787. while rs.RenderStepped:wait() do
  788. if timer >= 1.55/.8 then
  789. break
  790. end
  791. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  792. timer = timer + 1/30/(Debounces.FPS/60)
  793. end
  794. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  795. head:Destroy()
  796. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  797. end)
  798. wait()
  799. local s = Instance.new("Sound",head)
  800. s.Volume = 2
  801. s.SoundId = "rbxassetid://332223043"
  802. s.Pitch = .8
  803. s:Play()
  804. wait(.75)
  805. setLerp(.17)
  806. setJointCFrames({
  807. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  808. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  809. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  810. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  811. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  812. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  813. })
  814. wait(.5)
  815. Debounces.isAttacking = false
  816. end
  817. end)
  818.  
  819. uinps.InputBegan:connect(function(InputObj)
  820. if InputObj.KeyCode == Enum.KeyCode.Slash then
  821. local finishEvent = nil
  822. Debounces.isTyping = true
  823. finishEvent = uinps.InputBegan:connect(function(InputObj)
  824. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  825. Debounces.isTyping = false
  826. finishEvent:disconnect()
  827. end
  828. end)
  829. end
  830. end)
  831.  
  832. uinps.InputBegan:connect(function(InputObj)
  833. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  834. Debounces.isSprinting = true
  835. end
  836. end)
  837.  
  838. uinps.InputEnded:connect(function(InputObj)
  839. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  840. Debounces.isSprinting = false
  841. end
  842. end)
  843.  
  844. rs.RenderStepped:connect(function()
  845. Debounces.FPS = 1/rs.RenderStepped:wait()
  846. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  847. if Debounces.isPassive == false then
  848. fire.Enabled = false
  849. light.Range = 0
  850. fight:Pause()
  851. sans:Resume()
  852. efxBlock.Transparency = 1
  853. else
  854. fire.Enabled = true
  855. light.Range = 10
  856. fight:Resume()
  857. sans:Pause()
  858. efxBlock.Transparency = 0
  859. end
  860. for i,v in pairs (rayModel:children()) do
  861. if v.Transparency >= 1 then
  862. v:Destroy()
  863. else
  864. v.CanCollide = true
  865. local parts = v:GetTouchingParts()
  866. v.CanCollide = false
  867. for i = 1,#parts do
  868. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  869. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  870. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  871. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  872. end
  873. end
  874. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  875. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  876. end
  877. end
  878. for i = 1,#Joints do
  879. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  880. end
  881. local sineval = math.sin(tick() * 2) * 3
  882. fire.Acceleration = Vector3.new(sineval,1,sineval)
  883. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  884. end)
  885. --[[
  886. ~~ GENOCIDE SANS SCRIPT ~~
  887.  
  888. VERSION BETA V3.0.3
  889. Whats New:
  890. *1st attempt in adding skull (failed lol)
  891. *Patched some more bugs
  892. *1st attempt in adding bones (failed lol)
  893. *removed ball spawning
  894. - AzuLX
  895.  
  896. Genocide Sans script from the Undertale game Script is edited by Xeradius, Isaac and Pingu.
  897. Full credit to whoever made the base
  898. Please do not leak this script.
  899. Full credit to 'KrystalTeam' and 'rocky2u' for the Telek script.
  900. TeamAzuL2K16
  901. ]]--
  902. ID = '319332735'
  903. Looped = false
  904.  
  905. Music=Instance.new("Sound" ,workspace)
  906. Music.Name = "Music"
  907. if Looped == true then
  908. Music.Looped = true
  909. end
  910. Music.SoundId = "http://roblox.com/asset/?id=319332735"
  911. Music:Play() --Demonic Laugh. (Omega Flowey) You can remove if you wish. Its very loud (To not make play, remove 'Music:Play()')
  912.  
  913. --full credit to krystal and rocky2u for below
  914. Fire = false
  915.  
  916. Sparkles = false
  917.  
  918. Box = false
  919.  
  920. local Players = game.Players
  921.  
  922. local Player = Players.LocalPlayer
  923.  
  924. local Mouse = Player:GetMouse()
  925.  
  926.  
  927. local dist = 25
  928.  
  929. local trans = 0
  930.  
  931. local dwn=false
  932.  
  933. local Bin = Instance.new("HopperBin")
  934.  
  935. Bin.Name = "Sans' Telekinesis"
  936.  
  937. Bin.Parent = Player.Backpack
  938.  
  939.  
  940. local ScreenGUI = Instance.new("ScreenGui", Player.PlayerGui)
  941.  
  942. local Color = Instance.new("Color3Value", ScreenGUI)
  943.  
  944. local ColorValue = Color.Value
  945.  
  946. local Blue = Instance.new("TextButton", ScreenGUI)
  947.  
  948. local Red = Instance.new("TextButton", ScreenGUI)
  949.  
  950. local Green = Instance.new("TextButton", ScreenGUI)
  951.  
  952. local Yellow = Instance.new("TextButton", ScreenGUI)
  953.  
  954. local Pink = Instance.new("TextButton", ScreenGUI)
  955.  
  956. local LightBlue = Instance.new("TextButton", ScreenGUI)
  957.  
  958. local White = Instance.new("TextButton", ScreenGUI)
  959.  
  960. local FireTrue = Instance.new("TextButton", ScreenGUI)
  961.  
  962. local FireFalse = Instance.new("TextButton", ScreenGUI)
  963.  
  964. local SparklesTrue = Instance.new("TextButton", ScreenGUI)
  965.  
  966. local SparklesFalse = Instance.new("TextButton", ScreenGUI)
  967.  
  968. local BoxTrue = Instance.new("TextButton", ScreenGUI)
  969.  
  970. local BoxFalse = Instance.new("TextButton", ScreenGUI)
  971.  
  972. Color.Name = "Color"
  973.  
  974. Blue.BackgroundColor3 = BrickColor.new("Bright blue").Color
  975.  
  976. Blue.Transparency = 0.5
  977.  
  978. Blue.Size = UDim2.new(0, 20 ,0, 20)
  979.  
  980. Blue.Position = UDim2.new(1, -35, 1, -35)
  981.  
  982. Blue.Name = "Blue"
  983.  
  984. Blue.Text = ""
  985.  
  986. Blue.Visible = false
  987.  
  988. Red.BackgroundColor3 = BrickColor.new("Bright red").Color
  989.  
  990. Red.Transparency = 0.5
  991.  
  992. Red.Size = UDim2.new(0, 20 ,0, 20)
  993.  
  994. Red.Position = UDim2.new(1,-65, 1, -35)
  995.  
  996. Red.Name = "Red"
  997.  
  998. Red.Text = ""
  999.  
  1000. Red.Visible = false
  1001.  
  1002. Green.BackgroundColor3 = BrickColor.new("Bright green").Color
  1003.  
  1004. Green.Transparency = 0.5
  1005.  
  1006. Green.Size = UDim2.new(0, 20 ,0, 20)
  1007.  
  1008. Green.Position = UDim2.new(1,-95, 1, -35)
  1009.  
  1010. Green.Name = "Green"
  1011.  
  1012. Green.Text = ""
  1013.  
  1014. Green.Visible = false
  1015.  
  1016. Yellow.BackgroundColor3 = BrickColor.new("New Yeller").Color
  1017.  
  1018. Yellow.Transparency = 0.5
  1019.  
  1020. Yellow.Size = UDim2.new(0, 20 ,0, 20)
  1021.  
  1022. Yellow.Position = UDim2.new(1,-125, 1, -35)
  1023.  
  1024. Yellow.Name = "Yellow"
  1025.  
  1026. Yellow.Text = ""
  1027.  
  1028. Yellow.Visible = false
  1029.  
  1030. Pink.BackgroundColor3 = BrickColor.new("Hot pink").Color
  1031.  
  1032. Pink.Transparency = 0.5
  1033.  
  1034. Pink.Size = UDim2.new(0, 20 ,0, 20)
  1035.  
  1036. Pink.Position = UDim2.new(1,-155, 1, -35)
  1037.  
  1038. Pink.Name = "Pink"
  1039.  
  1040. Pink.Text = ""
  1041.  
  1042. Pink.Visible = false
  1043.  
  1044. LightBlue.BackgroundColor3 = BrickColor.new("Cyan").Color
  1045.  
  1046. LightBlue.Transparency = 0.5
  1047.  
  1048. LightBlue.Size = UDim2.new(0, 20 ,0, 20)
  1049.  
  1050. LightBlue.Position = UDim2.new(1,-185, 1, -35)
  1051.  
  1052. LightBlue.Name = "LightBlue"
  1053.  
  1054. LightBlue.Text = ""
  1055.  
  1056. LightBlue.Visible = false
  1057.  
  1058. White.BackgroundColor3 = BrickColor.new("White").Color
  1059.  
  1060. White.Transparency = 0.5
  1061.  
  1062. White.Size = UDim2.new(0, 20 ,0, 20)
  1063.  
  1064. White.Position = UDim2.new(1,-215, 1, -35)
  1065.  
  1066. White.Name = "White"
  1067.  
  1068. White.Text = ""
  1069.  
  1070. White.Visible = false
  1071.  
  1072. FireFalse.BackgroundColor3 = BrickColor.new("Really black").Color
  1073.  
  1074. FireFalse.Transparency = 0.5
  1075.  
  1076. FireFalse.Size = UDim2.new(0, 50 ,0, 20)
  1077.  
  1078. FireFalse.Position = UDim2.new(1,-65, 1, -65)
  1079.  
  1080. FireFalse.Name = "FireFalse"
  1081.  
  1082. FireFalse.Text = "Fire: F"
  1083.  
  1084. FireFalse.Visible = false
  1085.  
  1086. FireFalse.FontSize = "Size12"
  1087.  
  1088. FireFalse.Font = "ArialBold"
  1089.  
  1090. FireFalse.TextColor = BrickColor.new(255,255,255)
  1091.  
  1092. FireFalse.TextTransparency = 0
  1093.  
  1094. FireTrue.BackgroundColor3 = BrickColor.new("Really black").Color
  1095.  
  1096. FireTrue.Transparency = 0.5
  1097.  
  1098. FireTrue.Size = UDim2.new(0, 50 ,0, 20)
  1099.  
  1100. FireTrue.Position = UDim2.new(1,-65, 1, -65)
  1101.  
  1102. FireTrue.Name = "FireTrue"
  1103.  
  1104. FireTrue.Text = "Fire: T"
  1105.  
  1106. FireTrue.Visible = false
  1107.  
  1108. FireTrue.FontSize = "Size12"
  1109.  
  1110. FireTrue.Font = "ArialBold"
  1111.  
  1112. FireTrue.TextColor = BrickColor.new(255,255,255)
  1113.  
  1114. FireTrue.TextTransparency = 0
  1115.  
  1116. SparklesTrue.BackgroundColor3 = BrickColor.new("Really black").Color
  1117.  
  1118. SparklesTrue.Transparency = 0.5
  1119.  
  1120. SparklesTrue.Size = UDim2.new(0, 50 ,0, 20)
  1121.  
  1122. SparklesTrue.Position = UDim2.new(1,-125, 1, -65)
  1123.  
  1124. SparklesTrue.Name = "SparklesTrue"
  1125.  
  1126. SparklesTrue.Text = "SP: T"
  1127.  
  1128. SparklesTrue.Visible = false
  1129.  
  1130. SparklesTrue.FontSize = "Size12"
  1131.  
  1132. SparklesTrue.Font = "ArialBold"
  1133.  
  1134. SparklesTrue.TextColor = BrickColor.new(255,255,255)
  1135.  
  1136. SparklesTrue.TextTransparency = 0
  1137.  
  1138. SparklesFalse.BackgroundColor3 = BrickColor.new("Really black").Color
  1139.  
  1140. SparklesFalse.Transparency = 0.5
  1141.  
  1142. SparklesFalse.Size = UDim2.new(0, 50 ,0, 20)
  1143.  
  1144. SparklesFalse.Position = UDim2.new(1,-125, 1, -65)
  1145.  
  1146. SparklesFalse.Name = "SparklesFalse"
  1147.  
  1148. SparklesFalse.Text = "SP: F"
  1149.  
  1150. SparklesFalse.Visible = false
  1151.  
  1152. SparklesFalse.FontSize = "Size12"
  1153.  
  1154. SparklesFalse.Font = "ArialBold"
  1155.  
  1156. SparklesFalse.TextColor = BrickColor.new(255,255,255)
  1157.  
  1158. SparklesFalse.TextTransparency = 0
  1159.  
  1160. BoxTrue.BackgroundColor3 = BrickColor.new("Really black").Color
  1161.  
  1162. BoxTrue.Transparency = 0.5
  1163.  
  1164. BoxTrue.Size = UDim2.new(0, 50 ,0, 20)
  1165.  
  1166. BoxTrue.Position = UDim2.new(1,-185, 1, -65)
  1167.  
  1168. BoxTrue.Name = "BoxTrue"
  1169.  
  1170. BoxTrue.Text = "Box: T"
  1171.  
  1172. BoxTrue.Visible = false
  1173.  
  1174. BoxTrue.FontSize = "Size12"
  1175.  
  1176. BoxTrue.Font = "ArialBold"
  1177.  
  1178. BoxTrue.TextColor = BrickColor.new(255,255,255)
  1179.  
  1180. BoxTrue.TextTransparency = 0
  1181.  
  1182. BoxFalse.BackgroundColor3 = BrickColor.new("Really black").Color
  1183.  
  1184. BoxFalse.Transparency = 0.5
  1185.  
  1186. BoxFalse.Size = UDim2.new(0, 50 ,0, 20)
  1187.  
  1188. BoxFalse.Position = UDim2.new(1,-185, 1, -65)
  1189.  
  1190. BoxFalse.Name = "BoxFalse"
  1191.  
  1192. BoxFalse.Text = "Box: F"
  1193.  
  1194. BoxFalse.Visible = false
  1195.  
  1196. BoxFalse.FontSize = "Size12"
  1197.  
  1198. BoxFalse.Font = "ArialBold"
  1199.  
  1200. BoxFalse.TextColor = BrickColor.new(255, 255, 255)
  1201.  
  1202. BoxFalse.TextTransparency = 0
  1203.  
  1204. local Credits = Instance.new("ScreenGui",Player.PlayerGui)
  1205.  
  1206. local Text = Instance.new("TextLabel",Credits)
  1207.  
  1208. Text.BackgroundTransparency = 1
  1209.  
  1210. Text.Position = UDim2.new(0, 0, 1, -25)
  1211.  
  1212. Text.Size = UDim2.new(0, 200, 0, 25)
  1213.  
  1214. Text.Font = "SourceSans"
  1215.  
  1216. Text.FontSize = "Size24"
  1217.  
  1218. Text.Text = "By AzuLX, Issac and Pingu - GSans Script."
  1219.  
  1220. Text.TextColor3 = Color3.new(255, 255, 255)
  1221.  
  1222. Text.TextXAlignment = "Left"
  1223.  
  1224. local bawl = Instance.new("Part", game.Lighting)
  1225.  
  1226. bawl.Name="TelekinesisGrab"
  1227.  
  1228. local bp = Instance.new("BodyPosition", bawl)
  1229.  
  1230. local w = Instance.new("Weld", bawl)
  1231.  
  1232. function onButton1Down(mouse)
  1233.  
  1234. bawl.Size = Vector3.new(2,2,2)
  1235.  
  1236. bawl.Material="Neon"
  1237.  
  1238. bawl.Shape=0
  1239.  
  1240. bawl.Transparency=trans
  1241.  
  1242. bawl.Name="TelekinesisGrab"
  1243.  
  1244. bawl.CanCollide = false
  1245.  
  1246. bawl.Parent = game.Workspace
  1247.  
  1248. w.Parent = bawl
  1249.  
  1250. w.Name = "Weld"
  1251.  
  1252. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1253.  
  1254. bp.Parent = bawl
  1255.  
  1256. bp.Name="lolx"
  1257.  
  1258. bawl.Parent = workspace
  1259.  
  1260. if mouse ~= nil then
  1261.  
  1262. if mouse.Target ~= nil then
  1263.  
  1264. w.Part0 = mouse.Target
  1265.  
  1266. w.Part1 = bawl
  1267.  
  1268. dwn = true
  1269.  
  1270. if mouse.Target.Parent:FindFirstChild("Humanoid") then
  1271.  
  1272. mouse.Target.Parent:FindFirstChild("Humanoid").PlatformStand=true
  1273.  
  1274. else
  1275.  
  1276. print('no humanoid')
  1277.  
  1278. end
  1279.  
  1280. end
  1281.  
  1282. end
  1283.  
  1284. spawn(function()
  1285.  
  1286. while dwn == true do
  1287.  
  1288. ypcall(function()
  1289.  
  1290. bp.Parent = bawl
  1291.  
  1292. bp.position = Player.Character.Torso.Position + (mouse.Hit.lookVector*dist)
  1293.  
  1294. wait()
  1295.  
  1296. end)
  1297.  
  1298. end
  1299.  
  1300. end)
  1301.  
  1302. end
  1303.  
  1304. function onButton1Up(mouse)
  1305.  
  1306. dwn=false
  1307.  
  1308. if bawl ~= nil then
  1309.  
  1310. bawl.Parent=game.Lighting
  1311.  
  1312. else
  1313.  
  1314. print('not found')
  1315.  
  1316. end
  1317.  
  1318. end
  1319.  
  1320. function onKeyDown(key, mouse)
  1321.  
  1322. key:lower()
  1323.  
  1324. if key == "r" then
  1325.  
  1326. if bawl ~= nil then
  1327.  
  1328. --bawl.Parent=nil
  1329.  
  1330. end
  1331.  
  1332. elseif key == "e" then
  1333.  
  1334. local p = Instance.new("Part", workspace)
  1335.  
  1336. p.Size = Vector3.new(3,3,3)
  1337.  
  1338. p.Material = "Neon"
  1339.  
  1340. p.Position = mouse.Hit.p + Vector3.new(0,2,0)
  1341.  
  1342. p.BrickColor = bawl.BrickColor
  1343.  
  1344. p.Shape = "Ball"
  1345.  
  1346. p.BottomSurface = "Smooth"
  1347.  
  1348. p.TopSurface = "Smooth"
  1349.  
  1350. elseif key == "h" then
  1351.  
  1352. if bawl ~= nil then
  1353.  
  1354. if bawl:FindFirstChild("Weld") ~= nil then
  1355.  
  1356. if bawl:FindFirstChild("Weld").Part0 ~= nil then
  1357.  
  1358. bawl:FindFirstChild("Weld").Part0.Anchored=false
  1359.  
  1360. end
  1361.  
  1362. end
  1363.  
  1364. end
  1365.  
  1366. elseif key == "g" then
  1367.  
  1368. if bawl ~= nil then
  1369.  
  1370. local x = Instance.new("Explosion",workspace)
  1371.  
  1372. x.Position=bawl.Position
  1373.  
  1374. else
  1375.  
  1376. print('some sort of error')
  1377.  
  1378. end
  1379.  
  1380. elseif key == "x" then
  1381.  
  1382. dist=dist - 5
  1383.  
  1384. elseif key == "c" then
  1385.  
  1386. dist=15
  1387.  
  1388. elseif key == "v" then
  1389.  
  1390. dist=100
  1391.  
  1392. elseif key == "z" then
  1393.  
  1394. dist=dist + 5
  1395.  
  1396. end
  1397.  
  1398. end
  1399.  
  1400. FireX = 0
  1401.  
  1402. FireY = 0
  1403.  
  1404. FireZ = 0
  1405.  
  1406. SPX = 0
  1407.  
  1408. SPY = 0
  1409.  
  1410. SPZ = 0
  1411.  
  1412. BoxColor = "White"
  1413.  
  1414. FireFalse.MouseButton1Down:connect(function ()
  1415.  
  1416. local Fire = Instance.new("Fire", bawl)
  1417. Fire.Color = Color3.new(FireX,FireY,FireZ)
  1418.  
  1419. Player.PlayerGui.ScreenGui.FireFalse.Visible = false
  1420.  
  1421. Player.PlayerGui.ScreenGui.FireTrue.Visible = true
  1422.  
  1423. Fire.Color = Color3.new(FireX,FireY,FireZ)
  1424.  
  1425. end)
  1426.  
  1427. FireTrue.MouseButton1Down:connect(function ()
  1428.  
  1429. bawl.Fire:remove()
  1430.  
  1431. Player.PlayerGui.ScreenGui.FireFalse.Visible = true
  1432.  
  1433. Player.PlayerGui.ScreenGui.FireTrue.Visible = false
  1434.  
  1435. end)
  1436.  
  1437. SparklesFalse.MouseButton1Down:connect(function ()
  1438.  
  1439. local SP = Instance.new("Sparkles", bawl)
  1440. SP.Color = Color3.new(SPX,SPY,SPZ)
  1441.  
  1442. Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false
  1443.  
  1444. Player.PlayerGui.ScreenGui.SparklesTrue.Visible = true
  1445.  
  1446. end)
  1447.  
  1448. SparklesTrue.MouseButton1Down:connect(function ()
  1449.  
  1450. bawl.Sparkles:remove()
  1451.  
  1452. Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true
  1453.  
  1454. Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false
  1455.  
  1456. end)
  1457.  
  1458. BoxFalse.MouseButton1Down:connect(function ()
  1459.  
  1460. local Box = Instance.new("SelectionBox", bawl)
  1461. Box.Color = BrickColor.new(BoxColor)
  1462. Box.Adornee = Box.Parent
  1463.  
  1464. Player.PlayerGui.ScreenGui.BoxFalse.Visible = false
  1465.  
  1466. Player.PlayerGui.ScreenGui.BoxTrue.Visible = true
  1467.  
  1468. end)
  1469.  
  1470. BoxTrue.MouseButton1Down:connect(function ()
  1471.  
  1472. bawl.SelectionBox:remove()
  1473.  
  1474. Player.PlayerGui.ScreenGui.BoxFalse.Visible = true
  1475.  
  1476. Player.PlayerGui.ScreenGui.BoxTrue.Visible = false
  1477.  
  1478. end)
  1479.  
  1480. Blue.MouseButton1Down:connect(function ()
  1481.  
  1482. if bawl ~= nil then
  1483.  
  1484. bawl.BrickColor = BrickColor.new("Bright blue")
  1485.  
  1486. FireX = 0
  1487. FireY = 0
  1488. FireZ = 255
  1489.  
  1490. SPX = 0
  1491. SPY = 0
  1492. SPZ = 255
  1493.  
  1494. BoxColor = "Bright blue"
  1495.  
  1496. game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,0,255)
  1497.  
  1498. game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,0,255)
  1499.  
  1500. game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright blue")
  1501.  
  1502. end
  1503.  
  1504. end)
  1505.  
  1506. Red.MouseButton1Down:connect(function ()
  1507.  
  1508. if bawl ~= nil then
  1509.  
  1510. bawl.BrickColor = BrickColor.new("Bright red")
  1511.  
  1512. FireX = 255
  1513. FireY = 0
  1514. FireZ = 0
  1515.  
  1516. SPX = 255
  1517. SPY = 0
  1518. SPZ = 0
  1519.  
  1520. BoxColor = "Bright red"
  1521.  
  1522. game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,0)
  1523.  
  1524. game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,0)
  1525.  
  1526. game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright red")
  1527.  
  1528. end
  1529.  
  1530. end)
  1531.  
  1532. Green.MouseButton1Down:connect(function ()
  1533.  
  1534. if bawl ~= nil then
  1535.  
  1536. bawl.BrickColor = BrickColor.new("Bright green")
  1537.  
  1538. FireX = 0
  1539. FireY = 255
  1540. FireZ = 0
  1541.  
  1542. SPX = 0
  1543. SPY = 255
  1544. SPZ = 0
  1545.  
  1546. BoxColor = "Bright green"
  1547.  
  1548. game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,0)
  1549.  
  1550. game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,0)
  1551.  
  1552. game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright green")
  1553.  
  1554. end
  1555.  
  1556. end)
  1557.  
  1558. Yellow.MouseButton1Down:connect(function ()
  1559.  
  1560. if bawl ~= nil then
  1561.  
  1562. bawl.BrickColor = BrickColor.new("New Yeller")
  1563.  
  1564. FireX = 255
  1565. FireY = 255
  1566. FireZ = 0
  1567.  
  1568. SPX = 255
  1569. SPY = 255
  1570. SPZ = 0
  1571.  
  1572. BoxColor = "New Yeller"
  1573.  
  1574. game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,0)
  1575.  
  1576. game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,0)
  1577.  
  1578. game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("New Yeller")
  1579.  
  1580. end
  1581.  
  1582. end)
  1583.  
  1584. Pink.MouseButton1Down:connect(function ()
  1585.  
  1586. if bawl ~= nil then
  1587.  
  1588. bawl.BrickColor = BrickColor.new("Hot pink")
  1589.  
  1590. FireX = 255
  1591. FireY = 0
  1592. FireZ = 255
  1593.  
  1594. SPX = 255
  1595. SPY = 0
  1596. SPZ = 255
  1597.  
  1598. BoxColor = "Hot pink"
  1599.  
  1600. game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,255)
  1601.  
  1602. game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,255)
  1603.  
  1604. game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Hot pink")
  1605.  
  1606. end
  1607.  
  1608. end)
  1609.  
  1610. LightBlue.MouseButton1Down:connect(function ()
  1611.  
  1612. if bawl ~= nil then
  1613.  
  1614. bawl.BrickColor = BrickColor.new("Cyan")
  1615.  
  1616. FireX = 0
  1617. FireY = 255
  1618. FireZ = 255
  1619.  
  1620. SPX = 0
  1621. SPY = 255
  1622. SPZ = 255
  1623.  
  1624. BoxColor = "Cyan"
  1625.  
  1626. game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,255)
  1627.  
  1628. game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,255)
  1629.  
  1630. game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Cyan")
  1631.  
  1632. end
  1633.  
  1634. end)
  1635.  
  1636.  
  1637. White.MouseButton1Down:connect(function ()
  1638.  
  1639. if bawl ~= nil then
  1640.  
  1641. bawl.BrickColor = BrickColor.new("White")
  1642.  
  1643. FireX = 255
  1644. FireY = 255
  1645. FireZ = 255
  1646.  
  1647. SPX = 255
  1648. SPY = 255
  1649. SPZ = 255
  1650.  
  1651. BoxColor = "White"
  1652.  
  1653. game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,255)
  1654.  
  1655. game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,255)
  1656.  
  1657. game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("White")
  1658.  
  1659. end
  1660.  
  1661. end)
  1662.  
  1663. Bin.Selected:connect(function ()
  1664.  
  1665. Fire = false
  1666.  
  1667. Player.PlayerGui.ScreenGui.Blue.Visible = true
  1668.  
  1669. Player.PlayerGui.ScreenGui.Red.Visible = true
  1670.  
  1671. Player.PlayerGui.ScreenGui.Green.Visible = true
  1672.  
  1673. Player.PlayerGui.ScreenGui.Yellow.Visible = true
  1674.  
  1675. Player.PlayerGui.ScreenGui.Pink.Visible = true
  1676.  
  1677. Player.PlayerGui.ScreenGui.LightBlue.Visible = true
  1678.  
  1679. Player.PlayerGui.ScreenGui.White.Visible = true
  1680.  
  1681. Player.PlayerGui.ScreenGui.FireFalse.Visible = true
  1682.  
  1683. Player.PlayerGui.ScreenGui.FireTrue.Visible = false
  1684.  
  1685. Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true
  1686.  
  1687. Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false
  1688.  
  1689. Player.PlayerGui.ScreenGui.BoxFalse.Visible = true
  1690.  
  1691. Player.PlayerGui.ScreenGui.BoxTrue.Visible = false
  1692.  
  1693. end)
  1694.  
  1695. Bin.Deselected:connect(function ()
  1696.  
  1697. Fire = false
  1698.  
  1699. Player.PlayerGui.ScreenGui.Blue.Visible = false
  1700.  
  1701. Player.PlayerGui.ScreenGui.Red.Visible = false
  1702.  
  1703. Player.PlayerGui.ScreenGui.Green.Visible = false
  1704.  
  1705. Player.PlayerGui.ScreenGui.Yellow.Visible = false
  1706.  
  1707. Player.PlayerGui.ScreenGui.Pink.Visible = false
  1708.  
  1709. Player.PlayerGui.ScreenGui.LightBlue.Visible = false
  1710.  
  1711. Player.PlayerGui.ScreenGui.White.Visible = false
  1712.  
  1713. Player.PlayerGui.ScreenGui.FireFalse.Visible = false
  1714.  
  1715. Player.PlayerGui.ScreenGui.FireTrue.Visible = false
  1716.  
  1717. Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false
  1718.  
  1719. Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false
  1720.  
  1721. Player.PlayerGui.ScreenGui.BoxFalse.Visible = false
  1722.  
  1723. Player.PlayerGui.ScreenGui.BoxTrue.Visible = false
  1724.  
  1725. end)
  1726.  
  1727. Bin.Selected:connect(function(mouse)
  1728.  
  1729. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  1730.  
  1731. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  1732.  
  1733. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  1734.  
  1735. end)
  1736. print 'Telek script has loaded, credit to Krystal and rocky2u'
  1737. dot = false
  1738. des = false
  1739. local ChatService = game:GetService("Chat")
  1740. local player = game.Players.LocalPlayer
  1741. char = player.Character
  1742. hum = char.Humanoid
  1743. torso = hum.Torso
  1744. lig = Instance.new("PointLight",player.Character.Torso)
  1745. lig.Color=Color3.new(0,255,255)
  1746. m=player:GetMouse()
  1747. bb = Instance.new("BillboardGui",player.Character.Head)
  1748. bb.Enabled = true
  1749. bb.AlwaysOnTop = true
  1750. bb.Size = UDim2.new(0,200,0,50)
  1751. bb.StudsOffset = Vector3.new(0,1,0)
  1752. gui=Instance.new("TextBox",bb)
  1753. gui.Text = "* "
  1754. gui.Size = UDim2.new(0,133,0,45)
  1755. gui.Position=UDim2.new(0,57,0,-40)
  1756. gui.TextColor3 = Color3.new(255,255,255)
  1757. gui.BackgroundColor3=Color3.new(0,0,0)
  1758. gui.TextWrapped = true
  1759. gui.TextScaled = true
  1760. gui.TextXAlignment = "Left"
  1761. gui.TextYAlignment = "Top"
  1762. gui.Visible = false
  1763. gui.BorderColor3 = Color3.new(0,0,0)
  1764.  
  1765. gui1=Instance.new("TextButton",bb)
  1766. gui1.Position=UDim2.new(0,5,0,-43)
  1767. gui1.Size = UDim2.new(0,190,0,51)
  1768.  
  1769. gui1.TextColor3 = Color3.new(255,255,255)
  1770. gui1.BackgroundColor3=Color3.new(255,255,255)
  1771.  
  1772. gui1.Visible = false
  1773. img = Instance.new("ImageLabel",bb)
  1774. img.Size = UDim2.new(0,46,0,47)
  1775. img.Position = UDim2.new(0,10,0,-41)
  1776. img.Image = "rbxassetid://388166921"
  1777. img.BorderColor3 = Color3.new(0,0,0)
  1778. img.Visible = false
  1779. asd = Instance.new("Sound",player.Character.Torso)
  1780. asd.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  1781.  
  1782. asd1 = Instance.new("Sound",player.Character.Torso)
  1783. asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  1784.  
  1785. asd2 = Instance.new("Sound",player.Character.Torso)
  1786. asd2.SoundId = "http://www.roblox.com/asset/?id = 306370481"
  1787. asd2.Looped = true
  1788. asd3 = Instance.new("Sound",player.Character.Torso)
  1789. asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309"
  1790. asd3.Looped = true
  1791. asd4 = Instance.new("Sound",player.Character.Torso)
  1792. asd4.SoundId = "http://www.roblox.com/asset/?id = 388938813"
  1793. asd4.Looped = false
  1794. asd5 = Instance.new("Sound",player.Character.Torso)
  1795. asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
  1796. asd5.Looped = true
  1797. dunkd = Instance.new("Sound",player.Character.Torso)
  1798. dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694"
  1799. dunkd.Looped = false
  1800. function play(play)
  1801. asd:Play()
  1802. asd1:Play()
  1803. end
  1804. eye = Instance.new("Part",player.Character)
  1805. eye.BrickColor = BrickColor.new("Toothpaste")
  1806. eye.Material = "Neon"
  1807. eye.FormFactor = 3
  1808. eye.Shape = "Ball"
  1809. eye.Size = Vector3.new(0.37,0.37,0.1)
  1810. weld = Instance.new("Weld",eye)
  1811. weld.Part0 = eye
  1812. weld.Part1 = player.Character.Head
  1813. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  1814. eye.Transparency = 1
  1815. -- listen for their chatting
  1816. player.Chatted:connect(function(message)
  1817. a = string.len(message)
  1818. gui.Text = "* "
  1819. gui.Visible = true
  1820. gui1.Visible = true
  1821. des = false
  1822. img.Visible = true
  1823. print(a)
  1824. if dot == false then
  1825. for i = 1,string.len(message) do wait(0.07)
  1826. gui.Text =gui.Text..message:sub(i,i)
  1827.  
  1828. play()
  1829. end
  1830. end
  1831.  
  1832. des = true
  1833. end)
  1834. m.KeyDown:connect(function(k)
  1835. if k == "g" then
  1836. asd2:Play()
  1837. eye.Transparency = 0
  1838.  
  1839. end
  1840. end)
  1841. m.KeyDown:connect(function(k)
  1842. if k == "p" then
  1843. eye.Transparency = 1
  1844. asd3:Play()
  1845. end
  1846. end)
  1847. m.KeyDown:connect(function(k)
  1848. if k == "r" then
  1849. eye.Transparency = 0
  1850. asd4:Play()
  1851. end
  1852. end)
  1853. m.KeyDown:connect(function(k)
  1854. if k == "q" then
  1855. eye.Transparency = 1
  1856. asd5:Play()
  1857. end
  1858. end)
  1859. m.KeyDown:connect(function(k)
  1860. if k == "z" then
  1861.  
  1862. img.Image = "rbxassetid://388167098"
  1863. end
  1864. end)
  1865. m.KeyDown:connect(function(k)
  1866. if k == "c" then
  1867. img.Image = "rbxassetid://388166921"
  1868. end
  1869. end)
  1870. m.KeyDown:connect(function(k)
  1871. if k == "n" then
  1872. img.Image = "rbxassetid://388166991"
  1873. end
  1874. end)
  1875. m.KeyDown:connect(function(k)
  1876. if k == "b" then
  1877. img.Image = "rbxassetid://378060690"
  1878. end
  1879. end)
  1880. m.KeyDown:connect(function(k)
  1881. if k == "m" then
  1882. img.Image = "rbxassetid://378609498"
  1883. end
  1884. end)
  1885. m.KeyDown:connect(function(k)
  1886. if k == "v" then
  1887. img.Image = "rbxassetid://388166961"
  1888. end
  1889. end)
  1890. m.KeyDown:connect(function(k)
  1891. if k == "h" then
  1892. img.Image = "rbxassetid://378577428"
  1893. end
  1894. end)
  1895. m.KeyDown:connect(function(k)
  1896. if k == "j" then
  1897. img.Image = "rbxassetid://388167116"
  1898. end
  1899. end)
  1900. m.KeyDown:connect(function(k)
  1901. if k == "l" then
  1902. img.Image = "rbxassetid://388167154"
  1903. print("You take your very last breath...")
  1904. asdd = Instance.new("Sound",player.Character.Torso)
  1905. asdd.SoundId = "http://www.roblox.com/asset/?id = 357417055"
  1906. asdd.Looped = false
  1907. spawn(function()
  1908. wait()
  1909. asdd:Play()
  1910. end)
  1911. wait(2)
  1912. asddd = Instance.new("Sound",player.Character.Torso)
  1913. asddd.SoundId = "http://www.roblox.com/asset/?id = 387183672"
  1914. asddd.Looped = false
  1915. spawn(function()
  1916. wait()
  1917. asddd:Play()
  1918. end)
  1919. wait(2)
  1920. asdded = Instance.new("Sound",player.Character.Torso)
  1921. asdded.SoundId = "http://www.roblox.com/asset/?id = 387187707"
  1922. asdded.Looped = false
  1923. spawn(function()
  1924. wait()
  1925. asdded:Play()
  1926. end)
  1927. char:BreakJoints()
  1928. end
  1929. end)
  1930. m.KeyDown:connect(function(k)
  1931. if k == "x" then
  1932. if des == true then
  1933. gui.Visible = false
  1934. gui.Text = "* "
  1935. gui1.Visible = false
  1936. img.Visible = false
  1937. end
  1938. end
  1939. end)
  1940. m.KeyDown:connect(function(k)
  1941. if k == "f" then
  1942. asd3:Stop()
  1943. asd2:Stop()
  1944. asd4:Stop()
  1945. dunkd:Stop()
  1946. eye.Transparency = 1
  1947. asd5:Stop()
  1948. end
  1949. end)
  1950. m.KeyDown:connect(function(k)
  1951. if k == "u" then
  1952. dunkd = Instance.new("Sound",player.Character.Torso)
  1953. dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694"
  1954. dunkd.Looped = false
  1955. dunkd:Play()
  1956. end
  1957. end)
  1958. m.KeyDown:connect(function(k)
  1959. if k == "y" then
  1960. img.Image = "rbxassetid://378198656"
  1961. end
  1962. end)
  1963. -- my god...
  1964. -- Suck_HiyaThere moves to arizona
  1965.  
  1966. --------------------------------------------------------
  1967.  
  1968. pls = game:GetService'Players'
  1969. rs = game:GetService'RunService'
  1970. uinps = game:GetService'UserInputService'
  1971. lp = pls.LocalPlayer
  1972. mouse = lp:GetMouse()
  1973. c = lp.Character
  1974. human = c.Humanoid
  1975. human.MaxHealth = 50
  1976. soundVol = 0
  1977. wait()
  1978. human.Health = 50
  1979. c.Health:Destroy()
  1980.  
  1981. --------------------------------------------------------
  1982.  
  1983. Debounces = {
  1984. AnimationCycles = 0;
  1985. FPS = 0;
  1986. scalingDamage = false;
  1987. damageLevel = 0;
  1988. attackNumber = 0;
  1989. isAttacking = false;
  1990. isMoving = false;
  1991. isSprinting = false;
  1992. isBoosting = false;
  1993. isPassive = false;
  1994. isTyping = false;
  1995. }
  1996.  
  1997. --------------------------------------------------------
  1998.  
  1999. numLerp = function(start, goal, alpha)
  2000. return(((goal - start) * alpha) + start)
  2001. end
  2002.  
  2003. CFrameZero = function()
  2004. return CFrame.new(Vector3.new())
  2005. end
  2006.  
  2007. rad = function(value)
  2008. return math.rad(value)
  2009. end
  2010.  
  2011. CFAngles = function(Vector)
  2012. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  2013. end
  2014.  
  2015. --------------------------------------------------------
  2016.  
  2017. AnimStat = {
  2018. lerpSpeed = .2;
  2019. lerpSpeed2 = .35;
  2020. lerpTween = 0;
  2021. }
  2022.  
  2023. Joints = {
  2024. c.HumanoidRootPart.RootJoint;
  2025. c.Torso.Neck;
  2026. c.Torso['Left Shoulder'];
  2027. c.Torso['Right Shoulder'];
  2028. c.Torso['Left Hip'];
  2029. c.Torso['Right Hip'];
  2030. }
  2031.  
  2032. JointTargets = {
  2033. CFrameZero();
  2034. CFrameZero();
  2035. CFrameZero();
  2036. CFrameZero();
  2037. CFrameZero();
  2038. CFrameZero();
  2039. }
  2040.  
  2041. --------------------------------------------------------
  2042.  
  2043. BodyColors = {
  2044. HeadColor = BrickColor.new("Institutional white");
  2045. LeftArmColor = BrickColor.new("Institutional white");
  2046. RightArmColor = BrickColor.new("Institutional white");
  2047. LeftLegColor = BrickColor.new("Institutional white");
  2048. RightLegColor = BrickColor.new("Institutional white");
  2049. TorsoColor = BrickColor.new("Mid gray");
  2050. }
  2051.  
  2052. Customs = {
  2053. Face = "http://www.roblox.com/asset/?id=8560915";
  2054. Shirt = "http://www.roblox.com/asset/?id=334781688";
  2055. Pants = "http://www.roblox.com/asset/?id=335237283";
  2056. }
  2057.  
  2058. --------------------------------------------------------
  2059.  
  2060. prepareCharacter = function()
  2061. local transPoints = {
  2062. NumberSequenceKeypoint.new(0,0,0),
  2063. NumberSequenceKeypoint.new(.4,.05,0),
  2064. NumberSequenceKeypoint.new(.8,.16,0),
  2065. NumberSequenceKeypoint.new(1,.25,0)
  2066. }
  2067. local sizePoints = {
  2068. NumberSequenceKeypoint.new(0,.5,0),
  2069. NumberSequenceKeypoint.new(.18,.5,0),
  2070. NumberSequenceKeypoint.new(.49,.69,0),
  2071. NumberSequenceKeypoint.new(.74,.5,0),
  2072. NumberSequenceKeypoint.new(.92,.25,0),
  2073. NumberSequenceKeypoint.new(1,.0625,0)
  2074. }
  2075. local Size = NumberSequence.new(sizePoints)
  2076. local Transparency = NumberSequence.new(transPoints)
  2077. rayModel = Instance.new("Model",c)
  2078. efxBlock = Instance.new("Part",c)
  2079. efxBlock.Material = "Neon"
  2080. efxBlock.FormFactor = "Custom"
  2081. efxBlock.Size = Vector3.new(.3,.3,.3)
  2082. light = Instance.new("PointLight",c.Head)
  2083. light.Range = 8
  2084. light.Color = Color3.new(1,1,1)
  2085. light.Shadows = false
  2086. local particles = Instance.new("ParticleEmitter",efxBlock)
  2087. particles.Color = ColorSequence.new(Color3.new(.85,.85,.85),Color3.new(1,1,1))
  2088. particles.ZOffset = 1
  2089. particles.LightEmission = .96
  2090. particles.Size = Size
  2091. particles.Name = "Fire"
  2092. particles.Transparency = Transparency
  2093. particles.LockedToPart = true
  2094. particles.Rate = 25
  2095. particles.EmissionDirection = "Right"
  2096. particles.Acceleration = Vector3.new(-.5,0,0)
  2097. particles.Texture = "rbxassetid://24378732"
  2098. particles.Lifetime = NumberRange.new(.25,.25)
  2099. particles.Speed = NumberRange.new(-.5,5)
  2100. script.Parent = efxBlock
  2101. fire = particles
  2102. local offset = Vector3.new(0.2, .23, -0.5)
  2103. local weld = Instance.new("Weld",c.Head)
  2104. weld.Part0 = c.Head
  2105. weld.Part1 = efxBlock
  2106. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  2107. efxBlock.Parent = c
  2108. local music = Instance.new("Sound",c.Torso)
  2109. music.SoundId = "rbxassetid://316012176"
  2110. music.Looped = true
  2111. music.Volume = soundVol
  2112. fight = music
  2113. local music2 = Instance.new("Sound",c.Torso)
  2114. music2.SoundId = "rbxassetid://316014309"
  2115. music2.Looped = true
  2116. music2.Volume = soundVol
  2117. sans = music2
  2118. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  2119. pointGyro.P = 1e7
  2120. pointGyro.D = 1e3
  2121. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  2122. animator = c.Humanoid:FindFirstChild("Animator")
  2123. if animator then
  2124. animator:Destroy()
  2125. end
  2126. c.Torso.roblox:Destroy()
  2127. for i,v in pairs (c.Head:children()) do
  2128. if v.ClassName == "Sound" then
  2129. v:Destroy()
  2130. end
  2131. end
  2132. for i = 1,#Joints do
  2133. Joints[i].C1 = CFrame.new(Vector3.new())
  2134. end
  2135. human.WalkSpeed = 0
  2136. human.JumpPower = 0
  2137. end
  2138.  
  2139. uinps.InputBegan:connect(function(InputObject)
  2140. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  2141. Debounces.isPassive = not Debounces.isPassive
  2142. end
  2143. end)
  2144.  
  2145. setJointCFrames = function(table)
  2146. for i = 1,#table do
  2147. JointTargets[i] = table[i]
  2148. end
  2149. AnimationCycles = 0
  2150. end
  2151.  
  2152. setLerp = function(speed)
  2153. AnimStat.lerpSpeed = speed
  2154. end
  2155.  
  2156. setTween = function(tween)
  2157. AnimStat.lerpTween = tween
  2158. end
  2159.  
  2160. takeDamage = function(position,damage,distance,platformStand)
  2161. for i,v in pairs (pls:children()) do
  2162. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  2163. local torso = v.Character:FindFirstChild("Torso")
  2164. if torso and (torso.Position - position).magnitude < distance then
  2165. if v.Character.Humanoid.MaxHealth > 1000 then
  2166. v.Character.Humanoid.MaxHealth = 100;
  2167. v.Character.Humanoid.Breakjoints()
  2168. end
  2169.  
  2170.  
  2171. v.Character.Humanoid:TakeDamage(damage)
  2172. if platformStand == true then
  2173. v.Character.PlatformStand = platformStand
  2174. end
  2175. end
  2176. end
  2177. end
  2178. end
  2179.  
  2180. --------------------------------------------------------
  2181.  
  2182. prepareCharacter()
  2183.  
  2184. --------------------------------------------------------
  2185.  
  2186. spawn(function()
  2187. local sine = 0
  2188. while wait() do
  2189. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  2190. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  2191. setLerp(.1)
  2192. if Debounces.isPassive == true then
  2193. setJointCFrames({
  2194. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2195. 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));
  2196. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  2197. 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));
  2198. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  2199. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  2200. })
  2201. else
  2202. setJointCFrames({
  2203. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2204. 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));
  2205. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  2206. 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));
  2207. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  2208. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  2209. })
  2210. end
  2211. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  2212. sine = sine + math.rad(12)
  2213. human.WalkSpeed = 15
  2214. setLerp(.15)
  2215. setJointCFrames({
  2216. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  2217. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  2218. 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));
  2219. 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));
  2220. 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));
  2221. 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));
  2222. })
  2223. end
  2224. if Debounces.scalingDamage == true then
  2225. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  2226. end
  2227. end
  2228. end)
  2229.  
  2230. human.Changed:connect(function(prop)
  2231. if prop == "MoveDirection" then
  2232. if human.MoveDirection.magnitude > .02 then
  2233. Debounces.isMoving = true
  2234. else
  2235. Debounces.isMoving = false
  2236. end
  2237. end
  2238. end)
  2239.  
  2240. uinps.InputBegan:connect(function(InputObject)
  2241. 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
  2242. Debounces.isBoosting = true
  2243. Debounces.damageLevel = 10
  2244. Debounces.scalingDamage = true
  2245. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2246. setLerp(.15)
  2247. setJointCFrames({
  2248. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  2249. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  2250. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  2251. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  2252. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  2253. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  2254. })
  2255. local boostSpeed = 250
  2256. local efx = Instance.new("Sound",c.Head)
  2257. efx.SoundId = "rbxassetid://200632875"
  2258. efx.Pitch = math.random(1100,1300)/1000
  2259. efx.Volume = .5
  2260. efx:Play()
  2261. spawn(function()
  2262. wait(5)
  2263. efx:Destroy()
  2264. end)
  2265. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  2266. vel.P = 1e3
  2267. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2268. wait(.15)
  2269. vel.P = 1000
  2270. vel.MaxForce = Vector3.new(3000,0,3000)
  2271. vel.Velocity = Vector3.new()
  2272. wait(.3)
  2273. setLerp(.3)
  2274. setJointCFrames({
  2275. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  2276. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  2277. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  2278. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  2279. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  2280. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  2281. })
  2282. wait(.2)
  2283. vel:Destroy()
  2284. Debounces.damageLevel = 0
  2285. Debounces.scalingDamage = false
  2286. Debounces.isBoosting = false
  2287. end
  2288. end)
  2289.  
  2290. uinps.InputBegan:connect(function(InputObject)
  2291. 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
  2292. Debounces.isBoosting = true
  2293. Debounces.damageLevel = 10
  2294. Debounces.scalingDamage = true
  2295. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2296. setLerp(.15)
  2297. setJointCFrames({
  2298. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  2299. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  2300. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  2301. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  2302. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  2303. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  2304. })
  2305. local boostSpeed = 250
  2306. local efx = Instance.new("Sound",c.Head)
  2307. efx.SoundId = "rbxassetid://200632875"
  2308. efx.Pitch = math.random(1100,1300)/1000
  2309. efx.Volume = .5
  2310. efx:Play()
  2311. spawn(function()
  2312. wait(5)
  2313. efx:Destroy()
  2314. end)
  2315. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  2316. vel.P = 1e3
  2317. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2318. wait(.15)
  2319. vel.P = 1000
  2320. vel.MaxForce = Vector3.new(3000,0,3000)
  2321. vel.Velocity = Vector3.new()
  2322. wait(.3)
  2323. setLerp(.3)
  2324. setJointCFrames({
  2325. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  2326. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2327. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2328. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2329. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2330. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2331. })
  2332. wait(.2)
  2333. vel:Destroy()
  2334. Debounces.damageLevel = 0
  2335. Debounces.scalingDamage = false
  2336. Debounces.isBoosting = false
  2337. end
  2338. end)
  2339.  
  2340. uinps.InputBegan:connect(function(InputObject)
  2341. 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
  2342. Debounces.isBoosting = true
  2343. Debounces.damageLevel = 10
  2344. Debounces.scalingDamage = true
  2345. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2346. setLerp(.15)
  2347. setJointCFrames({
  2348. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  2349. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  2350. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  2351. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  2352. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  2353. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2354. })
  2355. local boostSpeed = 250
  2356. local efx = Instance.new("Sound",c.Head)
  2357. efx.SoundId = "rbxassetid://200632875"
  2358. efx.Pitch = math.random(1100,1300)/1000
  2359. efx.Volume = .5
  2360. efx:Play()
  2361. spawn(function()
  2362. wait(5)
  2363. efx:Destroy()
  2364. end)
  2365. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  2366. vel.P = 1e3
  2367. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2368. wait(.15)
  2369. vel.P = 1000
  2370. vel.MaxForce = Vector3.new(3000,0,3000)
  2371. vel.Velocity = Vector3.new()
  2372. wait(.3)
  2373. setLerp(.3)
  2374. setJointCFrames({
  2375. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  2376. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2377. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2378. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2379. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2380. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2381. })
  2382. wait(.2)
  2383. vel:Destroy()
  2384. Debounces.damageLevel = 0
  2385. Debounces.scalingDamage = false
  2386. Debounces.isBoosting = false
  2387. end
  2388. end)
  2389.  
  2390. uinps.InputBegan:connect(function(InputObject)
  2391. 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
  2392. Debounces.isBoosting = true
  2393. Debounces.damageLevel = 10
  2394. Debounces.scalingDamage = true
  2395. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2396. setLerp(.15)
  2397. setJointCFrames({
  2398. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  2399. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  2400. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  2401. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  2402. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  2403. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2404. })
  2405. local boostSpeed = 150
  2406. local boostSpeed = 250
  2407. local efx = Instance.new("Sound",c.Head)
  2408. efx.SoundId = "rbxassetid://200632875"
  2409. efx.Pitch = math.random(1100,1300)/1000
  2410. efx.Volume = .5
  2411. efx:Play()
  2412. spawn(function()
  2413. wait(5)
  2414. efx:Destroy()
  2415. end)
  2416. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  2417. vel.P = 1e3
  2418. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2419. wait(.15)
  2420. vel.P = 1000
  2421. vel.MaxForce = Vector3.new(3000,0,3000)
  2422. vel.Velocity = Vector3.new()
  2423. wait(.3)
  2424. setLerp(.3)
  2425. setJointCFrames({
  2426. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  2427. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  2428. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  2429. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  2430. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  2431. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  2432. })
  2433. wait(.2)
  2434. vel:Destroy()
  2435. Debounces.damageLevel = 0
  2436. Debounces.scalingDamage = false
  2437. Debounces.isBoosting = false
  2438. end
  2439. end)
  2440.  
  2441. uinps.InputBegan:connect(function(InputObject)
  2442. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2443. local isLooping = true
  2444. uinps.InputEnded:connect(function(InputObject2)
  2445. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2446. isLooping = false
  2447. end
  2448. end)
  2449. while true do
  2450. if isLooping == false then
  2451. break
  2452. end
  2453. Debounces.attackNumber = Debounces.attackNumber + 1
  2454. local aimPos = mouse.Hit.p
  2455. local head = Instance.new("Part",c)
  2456. head.Size = Vector3.new(12,.2,12)
  2457. head.CanCollide = false
  2458. head.Anchored = true
  2459. head.Transparency = 1
  2460. for i = 1,2 do
  2461. local decal = Instance.new("Decal",head)
  2462. decal.Texture = "rbxassetid://323497117"
  2463. if i == 1 then
  2464. decal.Face = Enum.NormalId.Top
  2465. else
  2466. decal.Face = Enum.NormalId.Bottom
  2467. end
  2468. end
  2469. if Debounces.attackNumber%2 == 1 then
  2470. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2471. else
  2472. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2473. end
  2474. spawn(function()
  2475. local timer = 0
  2476. while rs.RenderStepped:wait() do
  2477. if timer >= 1.55 then
  2478. break
  2479. end
  2480. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2481. timer = timer + 1/30/(Debounces.FPS/60)
  2482. end
  2483. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2484. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2485. local hit, pos = workspace:FindPartOnRay(ray,c)
  2486. local dis = (head.CFrame.p - pos).magnitude
  2487. local rayPart = Instance.new("Part",rayModel)
  2488. rayPart.Material = "Neon"
  2489. rayPart.FormFactor = "Custom"
  2490. rayPart.BrickColor = BrickColor.new(1,1,1)
  2491. rayPart.Anchored = true
  2492. rayPart.CanCollide = false
  2493. rayPart.Size = Vector3.new(7,7,dis + 400)
  2494. 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)
  2495. rayPart.CFrame = rayCFrame
  2496. head:Destroy()
  2497. end)
  2498. wait()
  2499. local s = Instance.new("Sound",head)
  2500. s.Volume = 1
  2501. s.SoundId = "rbxassetid://332223043"
  2502. s:Play()
  2503. wait(.04)
  2504. end
  2505. end
  2506. end)
  2507.  
  2508. uinps.InputBegan:connect(function(InputObj)
  2509. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2510. Debounces.isAttacking = true
  2511. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2512. local head = Instance.new("Part",c)
  2513. head.Size = Vector3.new(18,.2,18)
  2514. head.CanCollide = false
  2515. head.Anchored = true
  2516. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2517. head.Transparency = 1
  2518. for i = 1,2 do
  2519. local decal = Instance.new("Decal",head)
  2520. decal.Texture = "rbxassetid://323497117"
  2521. if i == 1 then
  2522. decal.Face = Enum.NormalId.Top
  2523. else
  2524. decal.Face = Enum.NormalId.Bottom
  2525. end
  2526. end
  2527. setLerp(.1)
  2528. setJointCFrames({
  2529. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2530. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2531. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2532. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2533. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2534. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2535. })
  2536. spawn(function()
  2537. local timer = 0
  2538. while rs.RenderStepped:wait() do
  2539. if timer >= 1.55/.8 then
  2540. break
  2541. end
  2542. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2543. timer = timer + 1/30/(Debounces.FPS/60)
  2544. end
  2545. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2546. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2547. local hit, pos = workspace:FindPartOnRay(ray,c)
  2548. local dis = (head.CFrame.p - pos).magnitude
  2549. local rayPart = Instance.new("Part",rayModel)
  2550. rayPart.Material = "Neon"
  2551. rayPart.FormFactor = "Custom"
  2552. rayPart.Name = "Punch"
  2553. rayPart.BrickColor = BrickColor.new(1,1,1)
  2554. rayPart.Anchored = true
  2555. rayPart.CanCollide = false
  2556. rayPart.Size = Vector3.new(28,28,dis + 400)
  2557. 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)
  2558. rayPart.CFrame = rayCFrame
  2559. head:Destroy()
  2560. end)
  2561. wait()
  2562. local s = Instance.new("Sound",head)
  2563. s.Volume = 1
  2564. s.SoundId = "rbxassetid://332223043"
  2565. s.Pitch = .8
  2566. s:Play()
  2567. wait(.75)
  2568. setLerp(.17)
  2569. setJointCFrames({
  2570. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2571. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2572. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2573. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  2574. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  2575. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  2576. })
  2577. wait(.5)
  2578. Debounces.isAttacking = false
  2579. end
  2580. end)
  2581.  
  2582. reflect = function(d,n)
  2583. local i, n = -1 * d.unit, n.unit
  2584. local dot = n:Dot(i)
  2585. return 2*dot*n - i
  2586. end
  2587.  
  2588. makeReflectionBeam = function(pos,look,isCrit)
  2589. local ray = Ray.new(pos,look)
  2590. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  2591. local e = Instance.new("Part",rayModel)
  2592. e.Anchored = true
  2593. e.CanCollide = false
  2594. e.BrickColor = BrickColor.new("White")
  2595. e.Material = "Neon"
  2596. e.FormFactor = "Custom"
  2597. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  2598. if isCrit == true then
  2599. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  2600. e.Name = "Punch"
  2601. end
  2602. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  2603. local e = Instance.new("Sound",c)
  2604. if isCrit == true then
  2605. e.Volume = .5
  2606. else
  2607. e.Volume = .3
  2608. e.Pitch = 1.5
  2609. end
  2610. e.SoundId = "rbxassetid://200632875"
  2611. e:Play()
  2612. spawn(function()
  2613. wait(6)
  2614. e:Destroy()
  2615. end)
  2616. wait(.05)
  2617. if hit ~= nil then
  2618. newDir = reflect(look.unit,norm,isCrit)
  2619. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  2620. end
  2621. end
  2622.  
  2623. uinps.InputBegan:connect(function(InputObject)
  2624. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2625. local isLooping = true
  2626. uinps.InputEnded:connect(function(InputObject2)
  2627. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2628. isLooping = false
  2629. end
  2630. end)
  2631. while true do
  2632. if isLooping == false then
  2633. break
  2634. end
  2635. Debounces.attackNumber = Debounces.attackNumber + 1
  2636. local aimPos = mouse.Hit.p
  2637. local head = Instance.new("Part",c)
  2638. head.Size = Vector3.new(12,.2,12)
  2639. head.CanCollide = false
  2640. head.Anchored = true
  2641. head.Transparency = 1
  2642. for i = 1,2 do
  2643. local decal = Instance.new("Decal",head)
  2644. decal.Texture = "rbxassetid://323497117"
  2645. if i == 1 then
  2646. decal.Face = Enum.NormalId.Top
  2647. else
  2648. decal.Face = Enum.NormalId.Bottom
  2649. end
  2650. end
  2651. if Debounces.attackNumber%2 == 1 then
  2652. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2653. else
  2654. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2655. end
  2656. spawn(function()
  2657. local timer = 0
  2658. while rs.RenderStepped:wait() do
  2659. if timer >= 1.55 then
  2660. break
  2661. end
  2662. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2663. timer = timer + 1/30/(Debounces.FPS/60)
  2664. end
  2665. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2666. head:Destroy()
  2667. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  2668. end)
  2669.  
  2670. wait()
  2671. local s = Instance.new("Sound",head)
  2672. s.Volume = 1
  2673. s.SoundId = "rbxassetid://332223043"
  2674. s.Pitch = 1.02
  2675. s:Play()
  2676. wait(.2)
  2677. end
  2678. end
  2679. end)
  2680.  
  2681. uinps.InputBegan:connect(function(InputObj)
  2682. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2683. Debounces.isAttacking = true
  2684. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2685. local head = Instance.new("Part",c)
  2686. head.Size = Vector3.new(18,.2,18)
  2687. head.CanCollide = false
  2688. head.Anchored = true
  2689. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2690. head.Transparency = 1
  2691. for i = 1,2 do
  2692. local decal = Instance.new("Decal",head)
  2693. decal.Texture = "rbxassetid://323497117"
  2694. if i == 1 then
  2695. decal.Face = Enum.NormalId.Top
  2696. else
  2697. decal.Face = Enum.NormalId.Bottom
  2698. end
  2699. end
  2700. setLerp(.1)
  2701. setJointCFrames({
  2702. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2703. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2704. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2705. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2706. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2707. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2708. })
  2709. spawn(function()
  2710. local timer = 0
  2711. while rs.RenderStepped:wait() do
  2712. if timer >= 1.55/.8 then
  2713. break
  2714. end
  2715. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2716. timer = timer + 1/30/(Debounces.FPS/60)
  2717. end
  2718. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2719. head:Destroy()
  2720. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  2721. end)
  2722. wait()
  2723. local s = Instance.new("Sound",head)
  2724. s.Volume = 2
  2725. s.SoundId = "rbxassetid://332223043"
  2726. s.Pitch = .8
  2727. s:Play()
  2728. wait(.75)
  2729. setLerp(.17)
  2730. setJointCFrames({
  2731. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2732. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2733. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2734. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  2735. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  2736. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  2737. })
  2738. wait(.5)
  2739. Debounces.isAttacking = false
  2740. end
  2741. end)
  2742.  
  2743. uinps.InputBegan:connect(function(InputObj)
  2744. if InputObj.KeyCode == Enum.KeyCode.Slash then
  2745. local finishEvent = nil
  2746. Debounces.isTyping = true
  2747. finishEvent = uinps.InputBegan:connect(function(InputObj)
  2748. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  2749. Debounces.isTyping = false
  2750. finishEvent:disconnect()
  2751. end
  2752. end)
  2753. end
  2754. end)
  2755.  
  2756. uinps.InputBegan:connect(function(InputObj)
  2757. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  2758. Debounces.isSprinting = true
  2759. end
  2760. end)
  2761.  
  2762. uinps.InputEnded:connect(function(InputObj)
  2763. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  2764. Debounces.isSprinting = false
  2765. end
  2766. end)
  2767.  
  2768. rs.RenderStepped:connect(function()
  2769. Debounces.FPS = 1/rs.RenderStepped:wait()
  2770. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  2771. if Debounces.isPassive == false then
  2772. fight:Pause()
  2773. sans:Resume()
  2774. efxBlock.Transparency = 1
  2775. else
  2776. fight:Resume()
  2777. sans:Pause()
  2778. efxBlock.Transparency = 0
  2779. end
  2780. for i,v in pairs (rayModel:children()) do
  2781. if v.Transparency >= 1 then
  2782. v:Destroy()
  2783. else
  2784. v.CanCollide = true
  2785. local parts = v:GetTouchingParts()
  2786. v.CanCollide = false
  2787. for i = 1,#parts do
  2788. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  2789. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  2790. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  2791. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  2792. end
  2793. end
  2794. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  2795. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  2796. end
  2797. end
  2798. for i = 1,#Joints do
  2799. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  2800. end
  2801. light.Brightness = math.random(1,4)
  2802. end)
  2803. -- ~CLarramore
Add Comment
Please, Sign In to add comment