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