Advertisement
Stefanuk12

ROBLOX Script Builder Scripts ( Sans )

Jun 12th, 2016
3,019
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 53.41 KB | None | 0 0
  1. --Enjoy little skids :)
  2. local p = game.Players.StefanukSwAg
  3. local char = p.Character
  4. local hed = char.Head
  5. dot = false
  6. des = false
  7. local ChatService = game:GetService("Chat")
  8. local player = game.Players.LocalPlayer
  9. char = player.Character
  10. hum = char.Humanoid
  11. torso = hum.Torso
  12. lig = Instance.new("PointLight",player.Character.Torso)
  13. lig.Color=Color3.new(0,255,255)
  14. m=player:GetMouse()
  15. bb = Instance.new("BillboardGui",player.Character.Head)
  16. bb.Enabled = true
  17. bb.AlwaysOnTop = true
  18. bb.Size = UDim2.new(0,200,0,50)
  19. bb.StudsOffset = Vector3.new(0,1,0)
  20. gui=Instance.new("TextBox",bb)
  21. gui.Text = "* "
  22. gui.Size = UDim2.new(0,133,0,45)
  23. gui.Position=UDim2.new(0,57,0,-40)
  24. gui.TextColor3 = Color3.new(255,255,255)
  25. gui.BackgroundColor3=Color3.new(0,0,0)
  26. gui.TextWrapped = true
  27. gui.TextScaled = true
  28. gui.TextXAlignment = "Left"
  29. gui.TextYAlignment = "Top"
  30. gui.Visible = false
  31. gui.BorderColor3 = Color3.new(0,0,0)
  32.  
  33. gui1=Instance.new("TextButton",bb)
  34. gui1.Position=UDim2.new(0,5,0,-43)
  35. gui1.Size = UDim2.new(0,190,0,51)
  36.  
  37. gui1.TextColor3 = Color3.new(255,255,255)
  38. gui1.BackgroundColor3=Color3.new(255,255,255)
  39.  
  40. gui1.Visible = false
  41. img = Instance.new("ImageLabel",bb)
  42. img.Size = UDim2.new(0,46,0,47)
  43. img.Position = UDim2.new(0,10,0,-41)
  44. img.Image = "rbxassetid://388166921"
  45. img.BorderColor3 = Color3.new(0,0,0)
  46. img.Visible = false
  47. asd = Instance.new("Sound",workspace)
  48. asd.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  49.  
  50. asd1 = Instance.new("Sound",player.Character.Torso)
  51. asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  52.  
  53. asd2 = Instance.new("Sound",hed)
  54. asd2.SoundId = "http://www.roblox.com/asset/?id = 410806544"
  55. asd2.Looped = true
  56. asd3 = Instance.new("Sound",player.Character.Torso)
  57. asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309"
  58. asd3.Looped = true
  59. asd4 = Instance.new("Sound",player.Character.Torso)
  60. asd4.SoundId = "http://www.roblox.com/asset/?id = 388938813"
  61. asd4.Looped = false
  62. asd5 = Instance.new("Sound",player.Character.Torso)
  63. asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
  64. asd5.Looped = true
  65. dunkd = Instance.new("Sound",player.Character.Torso)
  66. dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694"
  67. dunkd.Looped = false
  68. function play(play)
  69. asd:Play()
  70. asd1:Play()
  71. end
  72. eye = Instance.new("Part",player.Character)
  73. eye.BrickColor = BrickColor.new("Toothpaste")
  74. eye.Material = "Neon"
  75. eye.FormFactor = 3
  76. eye.Shape = "Ball"
  77. eye.Size = Vector3.new(0.37,0.37,0.1)
  78. weld = Instance.new("Weld",eye)
  79. weld.Part0 = eye
  80. weld.Part1 = player.Character.Head
  81. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  82. eye.Transparency = 1
  83. -- listen for their chatting
  84. player.Chatted:connect(function(message)
  85. a = string.len(message)
  86. gui.Text = "* "
  87. gui.Visible = true
  88. gui1.Visible = true
  89. des = false
  90. img.Visible = true
  91. print(a)
  92. if dot == false then
  93. for i = 1,string.len(message) do wait(0.07)
  94. gui.Text =gui.Text..message:sub(i,i)
  95.  
  96. play()
  97. end
  98. end
  99.  
  100. des = true
  101. end)
  102. m.KeyDown:connect(function(k)
  103. if k == "g" then
  104. asd2:Play()
  105. eye.Transparency = 0
  106.  
  107. end
  108. end)
  109. m.KeyDown:connect(function(k)
  110. if k == "p" then
  111. eye.Transparency = 1
  112. asd3:Play()
  113. end
  114. end)
  115. m.KeyDown:connect(function(k)
  116. if k == "r" then
  117. eye.Transparency = 0
  118. asd4:Play()
  119. end
  120. end)
  121. m.KeyDown:connect(function(k)
  122. if k == "q" then
  123. eye.Transparency = 1
  124. asd5:Play()
  125. end
  126. end)
  127. m.KeyDown:connect(function(k)
  128. if k == "z" then
  129.  
  130. img.Image = "rbxassetid://388167098"
  131. end
  132. end)
  133. m.KeyDown:connect(function(k)
  134. if k == "c" then
  135. img.Image = "rbxassetid://388166921"
  136. end
  137. end)
  138. m.KeyDown:connect(function(k)
  139. if k == "n" then
  140. img.Image = "rbxassetid://388166991"
  141. end
  142. end)
  143. m.KeyDown:connect(function(k)
  144. if k == "b" then
  145. img.Image = "rbxassetid://378060690"
  146. end
  147. end)
  148. m.KeyDown:connect(function(k)
  149. if k == "m" then
  150. img.Image = "rbxassetid://378609498"
  151. end
  152. end)
  153. m.KeyDown:connect(function(k)
  154. if k == "v" then
  155. img.Image = "rbxassetid://388166961"
  156. end
  157. end)
  158. m.KeyDown:connect(function(k)
  159. if k == "h" then
  160. img.Image = "rbxassetid://378577428"
  161. end
  162. end)
  163. m.KeyDown:connect(function(k)
  164. if k == "j" then
  165. img.Image = "rbxassetid://388167116"
  166. end
  167. end)
  168. m.KeyDown:connect(function(k)
  169. if k == "l" then
  170. img.Image = "rbxassetid://388167154"
  171. print("You take your very last breath...")
  172. asdd = Instance.new("Sound",player.Character.Torso)
  173. asdd.SoundId = "http://www.roblox.com/asset/?id = 357417055"
  174. asdd.Looped = false
  175. spawn(function()
  176. wait()
  177. asdd:Play()
  178. end)
  179. wait(2)
  180. asddd = Instance.new("Sound",player.Character.Torso)
  181. asddd.SoundId = "http://www.roblox.com/asset/?id = 387183672"
  182. asddd.Looped = false
  183. spawn(function()
  184. wait()
  185. asddd:Play()
  186. end)
  187. wait(2)
  188. asdded = Instance.new("Sound",player.Character.Torso)
  189. asdded.SoundId = "http://www.roblox.com/asset/?id = 387187707"
  190. asdded.Looped = false
  191. spawn(function()
  192. wait()
  193. asdded:Play()
  194. end)
  195. char:BreakJoints()
  196. end
  197. end)
  198. m.KeyDown:connect(function(k)
  199. if k == "x" then
  200. if des == true then
  201. gui.Visible = false
  202. gui.Text = "* "
  203. gui1.Visible = false
  204. img.Visible = false
  205. end
  206. end
  207. end)
  208. m.KeyDown:connect(function(k)
  209. if k == "f" then
  210. asd3:Stop()
  211. asd2:Stop()
  212. asd4:Stop()
  213. dunkd:Stop()
  214. eye.Transparency = 1
  215. asd5:Stop()
  216. end
  217. end)
  218. m.KeyDown:connect(function(k)
  219. if k == "u" then
  220. dunkd = Instance.new("Sound",player.Character.Torso)
  221. dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694"
  222. dunkd.Looped = false
  223. dunkd:Play()
  224. end
  225. end)
  226. m.KeyDown:connect(function(k)
  227. if k == "y" then
  228. img.Image = "rbxassetid://378198656"
  229. end
  230. end)
  231. -- my god...
  232. -- Suck_HiyaThere moves to arizona
  233.  
  234. --------------------------------------------------------
  235.  
  236.         pls = game:GetService'Players'
  237.         rs = game:GetService'RunService'
  238.         uinps = game:GetService'UserInputService'
  239.         lp = pls.LocalPlayer
  240.         mouse = lp:GetMouse()
  241.         c = lp.Character
  242.         human = c.Humanoid
  243.         human.MaxHealth = 50
  244.         soundVol = 0
  245.         wait()
  246.         human.Health = 50
  247.         c.Health:Destroy()
  248.  
  249. --------------------------------------------------------
  250.  
  251.         Debounces = {
  252.                 AnimationCycles = 0;
  253.                 FPS = 0;
  254.                 scalingDamage = false;
  255.                 damageLevel = 0;
  256.                 attackNumber = 0;
  257.                 isAttacking = false;
  258.                 isMoving = false;
  259.                 isSprinting = false;
  260.                 isBoosting = false;
  261.                 isPassive = false;
  262.                 isTyping = false;
  263.         }
  264.  
  265. --------------------------------------------------------
  266.  
  267.         numLerp = function(start, goal, alpha)
  268.                 return(((goal - start) * alpha) + start)
  269.         end
  270.  
  271.         CFrameZero = function()
  272.                 return CFrame.new(Vector3.new())
  273.         end
  274.  
  275.         rad = function(value)
  276.                 return math.rad(value)
  277.         end
  278.  
  279.         CFAngles = function(Vector)
  280.                 return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  281.         end
  282.  
  283. --------------------------------------------------------
  284.  
  285.         AnimStat = {
  286.                 lerpSpeed = .2;
  287.                 lerpSpeed2 = .35;
  288.                 lerpTween = 0;
  289.         }
  290.  
  291.         Joints = {
  292.                 c.HumanoidRootPart.RootJoint;
  293.                 c.Torso.Neck;
  294.                 c.Torso['Left Shoulder'];
  295.                 c.Torso['Right Shoulder'];
  296.                 c.Torso['Left Hip'];
  297.                 c.Torso['Right Hip'];
  298.         }
  299.  
  300.         JointTargets = {
  301.                 CFrameZero();
  302.                 CFrameZero();
  303.                 CFrameZero();
  304.                 CFrameZero();
  305.                 CFrameZero();
  306.                 CFrameZero();
  307.         }
  308.  
  309. --------------------------------------------------------
  310.  
  311.         BodyColors = {
  312.                 HeadColor = BrickColor.new("Institutional white");
  313.                 LeftArmColor = BrickColor.new("Institutional white");
  314.                 RightArmColor = BrickColor.new("Institutional white");
  315.                 LeftLegColor = BrickColor.new("Institutional white");
  316.                 RightLegColor = BrickColor.new("Institutional white");
  317.                 TorsoColor = BrickColor.new("Mid gray");
  318.         }
  319.  
  320.         Customs = {
  321.                 Face = "http://www.roblox.com/asset/?id=8560915";
  322.                 Shirt = "http://www.roblox.com/asset/?id=334781688";
  323.                 Pants = "http://www.roblox.com/asset/?id=335237283";
  324.         }
  325.  
  326. --------------------------------------------------------
  327.  
  328.         prepareCharacter = function()
  329.                 local transPoints = {
  330.                         NumberSequenceKeypoint.new(0,0,0),
  331.                         NumberSequenceKeypoint.new(.4,.05,0),
  332.                         NumberSequenceKeypoint.new(.8,.16,0),
  333.                         NumberSequenceKeypoint.new(1,.25,0)
  334.                 }
  335.                 local sizePoints = {
  336.                         NumberSequenceKeypoint.new(0,.5,0),
  337.                         NumberSequenceKeypoint.new(.18,.5,0),
  338.                         NumberSequenceKeypoint.new(.49,.69,0),
  339.                         NumberSequenceKeypoint.new(.74,.5,0),
  340.                         NumberSequenceKeypoint.new(.92,.25,0),
  341.                         NumberSequenceKeypoint.new(1,.0625,0)
  342.                 }
  343.                 local Size = NumberSequence.new(sizePoints)
  344.                 local Transparency = NumberSequence.new(transPoints)
  345.                 rayModel = Instance.new("Model",c)
  346.                 efxBlock = Instance.new("Part",c)
  347.                 efxBlock.Material = "Neon"
  348.                 efxBlock.FormFactor = "Custom"
  349.                 efxBlock.Size = Vector3.new(.3,.3,.3)
  350.                 light = Instance.new("PointLight",c.Head)
  351.                 light.Range = 8
  352.                 light.Color = Color3.new(1,1,1)
  353.                 light.Shadows = false
  354.                 local particles = Instance.new("ParticleEmitter",efxBlock)
  355.                 particles.Color = ColorSequence.new(Color3.new(.85,.85,.85),Color3.new(1,1,1))
  356.                 particles.ZOffset = 1
  357.                 particles.LightEmission = .96
  358.                 particles.Size = Size
  359.                 particles.Name = "Fire"
  360.                 particles.Transparency = Transparency
  361.                 particles.LockedToPart = true
  362.                 particles.Rate = 25
  363.                 particles.EmissionDirection = "Right"
  364.                 particles.Acceleration = Vector3.new(-.5,0,0)
  365.                 particles.Texture = "rbxassetid://24378732"
  366.                 particles.Lifetime = NumberRange.new(.25,.25)
  367.                 particles.Speed = NumberRange.new(-.5,5)
  368.                 script.Parent = efxBlock
  369.                 fire = particles
  370.                 local offset = Vector3.new(0.2, .23, -0.5)
  371.                 local weld = Instance.new("Weld",c.Head)
  372.                 weld.Part0 = c.Head
  373.                 weld.Part1 = efxBlock
  374.                 weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  375.                 efxBlock.Parent = c
  376.                 local music = Instance.new("Sound",c.Torso)
  377.                 music.SoundId = "rbxassetid://316012176"
  378.                 music.Looped = true
  379.                 music.Volume = soundVol
  380.                 fight = music
  381.                 local music2 = Instance.new("Sound",c.Torso)
  382.                 music2.SoundId = "rbxassetid://316014309"
  383.                 music2.Looped = true
  384.                 music2.Volume = soundVol
  385.                 sans = music2
  386.                 pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  387.                 pointGyro.P = 1e7
  388.                 pointGyro.D = 1e3
  389.                 pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  390.                 animator = c.Humanoid:FindFirstChild("Animator")
  391.                 if animator then
  392.                         animator:Destroy()
  393.                 end
  394.                 c.Torso.roblox:Destroy()
  395.                 for i,v in pairs (c.Head:children()) do
  396.                         if v.ClassName == "Sound" then
  397.                                 v:Destroy()
  398.                         end
  399.                 end
  400.                 for i = 1,#Joints do
  401.                         Joints[i].C1 = CFrame.new(Vector3.new())
  402.                 end
  403.                 human.WalkSpeed = 0
  404.                 human.JumpPower = 0
  405.         end
  406.  
  407.         uinps.InputBegan:connect(function(InputObject)
  408.                 if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  409.                         Debounces.isPassive = not Debounces.isPassive
  410.                 end
  411.         end)
  412.  
  413.         setJointCFrames = function(table)
  414.                 for i = 1,#table do
  415.                         JointTargets[i] = table[i]
  416.                 end
  417.                 AnimationCycles = 0
  418.         end
  419.  
  420.         setLerp = function(speed)
  421.                 AnimStat.lerpSpeed = speed
  422.         end
  423.  
  424.         setTween = function(tween)
  425.                 AnimStat.lerpTween = tween
  426.         end
  427.  
  428.         takeDamage = function(position,damage,distance,platformStand)
  429.                 for i,v in pairs (pls:children()) do
  430.                         if v.ClassName == "Player" and v:FindFirstChild("Character") then
  431.                                 local torso = v.Character:FindFirstChild("Torso")
  432.                                 if torso and (torso.Position - position).magnitude < distance then
  433.                                 if v.Character.Humanoid.MaxHealth > 1000 then
  434.                                     v.Character.Humanoid.MaxHealth = 100;
  435.                                v.Character.Humanoid.Breakjoints()
  436.                                 end
  437.                                
  438.                            
  439.                                         v.Character.Humanoid:TakeDamage(damage)
  440.                                         if platformStand == true then
  441.                                                 v.Character.PlatformStand = platformStand
  442.                                         end
  443.                                 end
  444.                         end
  445.                 end
  446.         end
  447.  
  448. --------------------------------------------------------
  449.  
  450.         prepareCharacter()
  451.  
  452. --------------------------------------------------------
  453.  
  454.         spawn(function()
  455.                 local sine = 0
  456.                 while wait() do
  457.                         pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  458.                         if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  459.                                 setLerp(.1)
  460.                                 if Debounces.isPassive == true then
  461.                                          setJointCFrames({
  462.                                                 CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  463.                                                 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));
  464.                                                 CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  465.                                                 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));
  466.                                                 CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  467.                                                 CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  468.                                         })
  469.                                 else
  470.                                         setJointCFrames({
  471.                                                 CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  472.                                                 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));
  473.                                                 CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  474.                                                 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));
  475.                                                 CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  476.                                                 CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  477.                                         })
  478.                                 end
  479.                         elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  480.                                 sine = sine + math.rad(12)
  481.                                 human.WalkSpeed = 15
  482.                                 setLerp(.15)
  483.                                 setJointCFrames({
  484.                                         CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  485.                                         CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  486.                                         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));
  487.                                         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));
  488.                                         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));
  489.                                         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));
  490.                                 })
  491.                         end
  492.                         if Debounces.scalingDamage == true then
  493.                                 takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  494.                         end
  495.                 end
  496.         end)
  497.  
  498.         human.Changed:connect(function(prop)
  499.                 if prop == "MoveDirection" then
  500.                         if human.MoveDirection.magnitude > .02 then
  501.                                 Debounces.isMoving = true
  502.                         else
  503.                                 Debounces.isMoving = false
  504.                         end
  505.                 end
  506.         end)
  507.  
  508.         uinps.InputBegan:connect(function(InputObject)
  509.                 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
  510.                         Debounces.isBoosting = true
  511.                         Debounces.damageLevel = 10
  512.                         Debounces.scalingDamage = true
  513.                         local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  514.                         setLerp(.15)
  515.                         setJointCFrames({
  516.                                 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  517.                                 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  518.                                 CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  519.                                 CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  520.                                 CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  521.                                 CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  522.                         })
  523.                         local boostSpeed = 250
  524.                         local efx = Instance.new("Sound",c.Head)
  525.                         efx.SoundId = "rbxassetid://200632875"
  526.                         efx.Pitch = math.random(1100,1300)/1000
  527.                         efx.Volume = .5
  528.                         efx:Play()
  529.                         spawn(function()
  530.                                 wait(5)
  531.                                 efx:Destroy()
  532.                         end)
  533.                         vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  534.                         vel.P = 1e3
  535.                         vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  536.                         wait(.15)
  537.                         vel.P = 1000
  538.                         vel.MaxForce = Vector3.new(3000,0,3000)
  539.                         vel.Velocity = Vector3.new()
  540.                         wait(.3)
  541.                         setLerp(.3)
  542.                         setJointCFrames({
  543.                                 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  544.                                 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  545.                                 CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  546.                                 CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  547.                                 CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  548.                                 CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  549.                         })
  550.                         wait(.2)
  551.                         vel:Destroy()
  552.                         Debounces.damageLevel = 0
  553.                         Debounces.scalingDamage = false
  554.                         Debounces.isBoosting = false
  555.                 end
  556.         end)
  557.  
  558.         uinps.InputBegan:connect(function(InputObject)
  559.                 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
  560.                         Debounces.isBoosting = true
  561.                         Debounces.damageLevel = 10
  562.                         Debounces.scalingDamage = true
  563.                         local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  564.                         setLerp(.15)
  565.                         setJointCFrames({
  566.                                 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  567.                                 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  568.                                 CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  569.                                 CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  570.                                 CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  571.                                 CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  572.                         })
  573.                         local boostSpeed = 250
  574.                         local efx = Instance.new("Sound",c.Head)
  575.                         efx.SoundId = "rbxassetid://200632875"
  576.                         efx.Pitch = math.random(1100,1300)/1000
  577.                         efx.Volume = .5
  578.                         efx:Play()
  579.                         spawn(function()
  580.                                 wait(5)
  581.                                 efx:Destroy()
  582.                         end)
  583.                         vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  584.                         vel.P = 1e3
  585.                         vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  586.                         wait(.15)
  587.                         vel.P = 1000
  588.                         vel.MaxForce = Vector3.new(3000,0,3000)
  589.                         vel.Velocity = Vector3.new()
  590.                         wait(.3)
  591.                         setLerp(.3)
  592.                         setJointCFrames({
  593.                                 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  594.                                 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  595.                                 CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  596.                                 CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  597.                                 CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  598.                                 CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  599.                         })
  600.                         wait(.2)
  601.                         vel:Destroy()
  602.                         Debounces.damageLevel = 0
  603.                         Debounces.scalingDamage = false
  604.                         Debounces.isBoosting = false
  605.                 end
  606.         end)
  607.  
  608.         uinps.InputBegan:connect(function(InputObject)
  609.                 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
  610.                         Debounces.isBoosting = true
  611.                         Debounces.damageLevel = 10
  612.                         Debounces.scalingDamage = true
  613.                         local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  614.                         setLerp(.15)
  615.                         setJointCFrames({
  616.                                 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  617.                                 CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  618.                                 CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  619.                                 CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  620.                                 CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  621.                                 CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  622.                         })
  623.                         local boostSpeed = 250
  624.                         local efx = Instance.new("Sound",c.Head)
  625.                         efx.SoundId = "rbxassetid://200632875"
  626.                         efx.Pitch = math.random(1100,1300)/1000
  627.                         efx.Volume = .5
  628.                         efx:Play()
  629.                         spawn(function()
  630.                                 wait(5)
  631.                                 efx:Destroy()
  632.                         end)
  633.                         vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  634.                         vel.P = 1e3
  635.                         vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  636.                         wait(.15)
  637.                         vel.P = 1000
  638.                         vel.MaxForce = Vector3.new(3000,0,3000)
  639.                         vel.Velocity = Vector3.new()
  640.                         wait(.3)
  641.                         setLerp(.3)
  642.                         setJointCFrames({
  643.                                 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  644.                                 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  645.                                 CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  646.                                 CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  647.                                 CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  648.                                 CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  649.                         })
  650.                         wait(.2)
  651.                         vel:Destroy()
  652.                         Debounces.damageLevel = 0
  653.                         Debounces.scalingDamage = false
  654.                         Debounces.isBoosting = false
  655.                 end
  656.         end)
  657.  
  658.         uinps.InputBegan:connect(function(InputObject)
  659.                 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
  660.                         Debounces.isBoosting = true
  661.                         Debounces.damageLevel = 10
  662.                         Debounces.scalingDamage = true
  663.                         local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  664.                         setLerp(.15)
  665.                         setJointCFrames({
  666.                                 CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  667.                                 CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  668.                                 CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  669.                                 CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  670.                                 CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  671.                                 CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  672.                         })
  673.                         local boostSpeed = 150
  674.                         local boostSpeed = 250
  675.                         local efx = Instance.new("Sound",c.Head)
  676.                         efx.SoundId = "rbxassetid://200632875"
  677.                         efx.Pitch = math.random(1100,1300)/1000
  678.                         efx.Volume = .5
  679.                         efx:Play()
  680.                         spawn(function()
  681.                                 wait(5)
  682.                                 efx:Destroy()
  683.                         end)
  684.                         vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  685.                         vel.P = 1e3
  686.                         vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  687.                         wait(.15)
  688.                         vel.P = 1000
  689.                         vel.MaxForce = Vector3.new(3000,0,3000)
  690.                         vel.Velocity = Vector3.new()
  691.                         wait(.3)
  692.                         setLerp(.3)
  693.                         setJointCFrames({
  694.                                 CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  695.                                 CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  696.                                 CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  697.                                 CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  698.                                 CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  699.                                 CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  700.                         })
  701.                         wait(.2)
  702.                         vel:Destroy()
  703.                         Debounces.damageLevel = 0
  704.                         Debounces.scalingDamage = false
  705.                         Debounces.isBoosting = false
  706.                 end
  707.         end)
  708.  
  709.         uinps.InputBegan:connect(function(InputObject)
  710.                 if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  711.                         local isLooping = true
  712.                         uinps.InputEnded:connect(function(InputObject2)
  713.                                 if InputObject2.KeyCode == Enum.KeyCode.Q then
  714.                                         isLooping = false
  715.                                 end
  716.                         end)
  717.                         while true do
  718.                                 if isLooping == false then
  719.                                         break
  720.                                 end
  721.                                 Debounces.attackNumber = Debounces.attackNumber + 1
  722.                                 local aimPos = mouse.Hit.p
  723.                                 local head = Instance.new("Part",c)
  724.                                 head.Size = Vector3.new(12,.2,12)
  725.                                 head.CanCollide = false
  726.                                 head.Anchored = true
  727.                                 head.Transparency = 1
  728.                                 for i = 1,2 do
  729.                                         local decal = Instance.new("Decal",head)
  730.                                         decal.Texture = "rbxassetid://323497117"
  731.                                         if i == 1 then
  732.                                                 decal.Face = Enum.NormalId.Top
  733.                                         else
  734.                                                 decal.Face = Enum.NormalId.Bottom
  735.                                         end
  736.                                 end
  737.                                 if Debounces.attackNumber%2 == 1 then
  738.                                         head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  739.                                 else
  740.                                         head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  741.                                 end
  742.                                 spawn(function()
  743.                                         local timer = 0
  744.                                         while rs.RenderStepped:wait() do
  745.                                                 if timer >= 1.55 then
  746.                                                         break
  747.                                                 end
  748.                                                 head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  749.                                                 timer = timer + 1/30/(Debounces.FPS/60)
  750.                                         end
  751.                                         head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  752.                                         local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  753.                                         local hit, pos = workspace:FindPartOnRay(ray,c)
  754.                                         local dis = (head.CFrame.p - pos).magnitude
  755.                                         local rayPart = Instance.new("Part",rayModel)
  756.                                         rayPart.Material = "Neon"
  757.                                         rayPart.FormFactor = "Custom"
  758.                                         rayPart.BrickColor = BrickColor.new(1,1,1)
  759.                                         rayPart.Anchored = true
  760.                                         rayPart.CanCollide = false
  761.                                         rayPart.Size = Vector3.new(7,7,dis + 400)
  762.                                         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)
  763.                                         rayPart.CFrame = rayCFrame
  764.                                         head:Destroy()
  765.                                 end)
  766.                                 wait()
  767.                                 local s = Instance.new("Sound",head)
  768.                                 s.Volume = 1
  769.                                 s.SoundId = "rbxassetid://332223043"
  770.                                 s:Play()
  771.                                 wait(.04)
  772.                         end
  773.                 end
  774.         end)
  775.  
  776.         uinps.InputBegan:connect(function(InputObj)
  777.                 if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  778.                         Debounces.isAttacking = true
  779.                         local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  780.                         local head = Instance.new("Part",c)
  781.                         head.Size = Vector3.new(18,.2,18)
  782.                         head.CanCollide = false
  783.                         head.Anchored = true
  784.                         head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  785.                         head.Transparency = 1
  786.                         for i = 1,2 do
  787.                                 local decal = Instance.new("Decal",head)
  788.                                 decal.Texture = "rbxassetid://323497117"
  789.                                 if i == 1 then
  790.                                         decal.Face = Enum.NormalId.Top
  791.                                 else
  792.                                         decal.Face = Enum.NormalId.Bottom
  793.                                 end
  794.                         end
  795.                         setLerp(.1)
  796.                         setJointCFrames({
  797.                                 CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  798.                                 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  799.                                 CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  800.                                 CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  801.                                 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  802.                                 CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  803.                         })
  804.                         spawn(function()
  805.                                 local timer = 0
  806.                                 while rs.RenderStepped:wait() do
  807.                                         if timer >= 1.55/.8 then
  808.                                                 break
  809.                                         end
  810.                                         head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  811.                                         timer = timer + 1/30/(Debounces.FPS/60)
  812.                                 end
  813.                                 head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  814.                                 local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  815.                                 local hit, pos = workspace:FindPartOnRay(ray,c)
  816.                                 local dis = (head.CFrame.p - pos).magnitude
  817.                                 local rayPart = Instance.new("Part",rayModel)
  818.                                 rayPart.Material = "Neon"
  819.                                 rayPart.FormFactor = "Custom"
  820.                                 rayPart.Name = "Punch"
  821.                                 rayPart.BrickColor = BrickColor.new(1,1,1)
  822.                                 rayPart.Anchored = true
  823.                                 rayPart.CanCollide = false
  824.                                 rayPart.Size = Vector3.new(28,28,dis + 400)
  825.                                 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)
  826.                                 rayPart.CFrame = rayCFrame
  827.                                 head:Destroy()
  828.                         end)
  829.                         wait()
  830.                         local s = Instance.new("Sound",head)
  831.                         s.Volume = 1
  832.                         s.SoundId = "rbxassetid://332223043"
  833.                         s.Pitch = .8
  834.                         s:Play()
  835.                         wait(.75)
  836.                         setLerp(.17)
  837.                         setJointCFrames({
  838.                                 CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  839.                                 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  840.                                 CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  841.                                 CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  842.                                 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  843.                                 CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  844.                         })
  845.                         wait(.5)
  846.                         Debounces.isAttacking = false
  847.                 end
  848.         end)
  849.        
  850.         reflect = function(d,n)
  851.                 local i, n = -1 * d.unit, n.unit
  852.                 local dot = n:Dot(i)
  853.                 return 2*dot*n - i
  854.         end
  855.  
  856.         makeReflectionBeam = function(pos,look,isCrit)
  857.                 local ray = Ray.new(pos,look)
  858.                 local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  859.                 local e = Instance.new("Part",rayModel)
  860.                 e.Anchored = true
  861.                 e.CanCollide = false
  862.                 e.BrickColor = BrickColor.new("White")
  863.                 e.Material = "Neon"
  864.                 e.FormFactor = "Custom"
  865.                 e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  866.                 if isCrit == true then
  867.                         e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  868.                         e.Name = "Punch"
  869.                 end
  870.                 e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  871.                 local e = Instance.new("Sound",c)
  872.                 if isCrit == true then
  873.                         e.Volume = .5
  874.                 else
  875.                         e.Volume = .3
  876.                         e.Pitch = 1.5
  877.                 end
  878.                 e.SoundId = "rbxassetid://200632875"
  879.                 e:Play()
  880.                 spawn(function()
  881.                         wait(6)
  882.                         e:Destroy()
  883.                 end)
  884.                 wait(.05)
  885.                 if hit ~= nil then
  886.                         newDir = reflect(look.unit,norm,isCrit)
  887.                         makeReflectionBeam(hitpos,newDir * 999,isCrit)
  888.                 end
  889.         end
  890.  
  891.         uinps.InputBegan:connect(function(InputObject)
  892.                 if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  893.                         local isLooping = true
  894.                         uinps.InputEnded:connect(function(InputObject2)
  895.                                 if InputObject2.KeyCode == Enum.KeyCode.Q then
  896.                                         isLooping = false
  897.                                 end
  898.                         end)
  899.                         while true do
  900.                                 if isLooping == false then
  901.                                         break
  902.                                 end
  903.                                 Debounces.attackNumber = Debounces.attackNumber + 1
  904.                                 local aimPos = mouse.Hit.p
  905.                                 local head = Instance.new("Part",c)
  906.                                 head.Size = Vector3.new(12,.2,12)
  907.                                 head.CanCollide = false
  908.                                 head.Anchored = true
  909.                                 head.Transparency = 1
  910.                                 for i = 1,2 do
  911.                                         local decal = Instance.new("Decal",head)
  912.                                         decal.Texture = "rbxassetid://323497117"
  913.                                         if i == 1 then
  914.                                                 decal.Face = Enum.NormalId.Top
  915.                                         else
  916.                                                 decal.Face = Enum.NormalId.Bottom
  917.                                         end
  918.                                 end
  919.                                 if Debounces.attackNumber%2 == 1 then
  920.                                         head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  921.                                 else
  922.                                         head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  923.                                 end
  924.                                 spawn(function()
  925.                                         local timer = 0
  926.                                         while rs.RenderStepped:wait() do
  927.                                                 if timer >= 1.55 then
  928.                                                         break
  929.                                                 end
  930.                                                 head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  931.                                                 timer = timer + 1/30/(Debounces.FPS/60)
  932.                                         end
  933.                                         head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  934.                                         head:Destroy()
  935.                                         makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)        
  936.                                 end)
  937.                                
  938.                                 wait()
  939.                                 local s = Instance.new("Sound",head)
  940.                                 s.Volume = 1
  941.                                 s.SoundId = "rbxassetid://332223043"
  942.                                 s.Pitch = 1.02
  943.                                 s:Play()
  944.                                 wait(.2)
  945.                         end
  946.                 end
  947.         end)
  948.  
  949.         uinps.InputBegan:connect(function(InputObj)
  950.                 if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  951.                         Debounces.isAttacking = true
  952.                         local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  953.                         local head = Instance.new("Part",c)
  954.                         head.Size = Vector3.new(18,.2,18)
  955.                         head.CanCollide = false
  956.                         head.Anchored = true
  957.                         head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  958.                         head.Transparency = 1
  959.                         for i = 1,2 do
  960.                                 local decal = Instance.new("Decal",head)
  961.                                 decal.Texture = "rbxassetid://323497117"
  962.                                 if i == 1 then
  963.                                         decal.Face = Enum.NormalId.Top
  964.                                 else
  965.                                         decal.Face = Enum.NormalId.Bottom
  966.                                 end
  967.                         end
  968.                         setLerp(.1)
  969.                         setJointCFrames({
  970.                                 CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  971.                                 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  972.                                 CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  973.                                 CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  974.                                 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  975.                                 CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  976.                         })
  977.                         spawn(function()
  978.                                 local timer = 0
  979.                                 while rs.RenderStepped:wait() do
  980.                                         if timer >= 1.55/.8 then
  981.                                                 break
  982.                                         end
  983.                                         head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  984.                                         timer = timer + 1/30/(Debounces.FPS/60)
  985.                                 end
  986.                                 head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  987.                                 head:Destroy()
  988.                                 makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  989.                         end)
  990.                         wait()
  991.                         local s = Instance.new("Sound",head)
  992.                         s.Volume = 2
  993.                         s.SoundId = "rbxassetid://332223043"
  994.                         s.Pitch = .8
  995.                         s:Play()
  996.                         wait(.75)
  997.                         setLerp(.17)
  998.                         setJointCFrames({
  999.                                 CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1000.                                 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1001.                                 CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1002.                                 CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1003.                                 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1004.                                 CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1005.                         })
  1006.                         wait(.5)
  1007.                         Debounces.isAttacking = false
  1008.                 end
  1009.         end)
  1010.  
  1011.         uinps.InputBegan:connect(function(InputObj)
  1012.                 if InputObj.KeyCode == Enum.KeyCode.Slash then
  1013.                         local finishEvent = nil
  1014.                         Debounces.isTyping = true
  1015.                         finishEvent = uinps.InputBegan:connect(function(InputObj)
  1016.                                 if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1017.                                         Debounces.isTyping = false
  1018.                                         finishEvent:disconnect()
  1019.                                 end
  1020.                         end)
  1021.                 end
  1022.         end)
  1023.  
  1024.         uinps.InputBegan:connect(function(InputObj)
  1025.                 if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1026.                         Debounces.isSprinting = true
  1027.                 end
  1028.         end)
  1029.  
  1030.         uinps.InputEnded:connect(function(InputObj)
  1031.                 if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1032.                         Debounces.isSprinting = false
  1033.                 end
  1034.         end)
  1035.  
  1036.         rs.RenderStepped:connect(function()
  1037.                 Debounces.FPS = 1/rs.RenderStepped:wait()
  1038.                 local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1039.                 if Debounces.isPassive == false then
  1040.                         fight:Pause()
  1041.                         sans:Resume()
  1042.                         efxBlock.Transparency = 1
  1043.                 else
  1044.                         fight:Resume()
  1045.                         sans:Pause()
  1046.                         efxBlock.Transparency = 0
  1047.                 end
  1048.                 for i,v in pairs (rayModel:children()) do
  1049.                         if v.Transparency >= 1 then
  1050.                                 v:Destroy()
  1051.                         else
  1052.                                 v.CanCollide = true
  1053.                                 local parts = v:GetTouchingParts()
  1054.                                 v.CanCollide = false
  1055.                                 for i = 1,#parts do
  1056.                                         if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  1057.                                                 parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  1058.                                         elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  1059.                                                 parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  1060.                                         end
  1061.                                 end
  1062.                                 v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  1063.                                 v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1064.                         end
  1065.                 end
  1066.                 for i = 1,#Joints do
  1067.                         Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1068.                 end
  1069.                 light.Brightness = math.random(1,4)
  1070.         end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement