Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.") ;print("FE Compatibility: by WaverlyCole");InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false
- return Fake[Index]
- ;
- __tostring = function() return "Connection" ;
- })
- }
- Fake.connect = Fake.Connect;return Fake;
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),Input ed=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- };ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...)
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input)
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "Input ed",Input,false)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- UserInputService.InputBegan:Connect(Input);UserInputService.Input ed:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- ]],owner.Character)
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"]
- return function (self,...)return RealPlayer[Index](RealPlayer,...)
- return RealPlayer[Index]
- ;
- __tostring = function(self) return RealPlayer.Name
- })
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner)
- return RealService[Index2]
- ;
- __tostring = function(self) return RealGame:GetService(Service).Name
- })
- ;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] ;
- ["userinputservice"] = function() return InternalData["UserInputService"] ;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)
- else
- local RunServices = {
- ["bindtor erstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) ;
- ["r erstepped"] = function() return RealService["Stepped"]
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]()
- return RealService[Index2]
- })
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]()
- return RealGame:GetService(Service)
- return function (self,...) return RealGame[Index](RealGame,...)
- else
- if game:GetService(Index) then return game:GetService(Index)
- return RealGame[Index]
- return nil
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- -- BurnLegion strikes again!
- -- wongxd, this is why you DON'T goto Voidacity's
- -- SLPM has been absent, so I've taken it upon myself to make something
- --------------------------------------------------------
- pls = game:GetService'Players'
- rs = game:GetService'RunService'
- uinps = game:GetService'UserInputService'
- lp = pls.LocalPlayer
- mouse = lp:GetMouse()
- c = lp.Character
- human = c.Humanoid
- human.MaxHealth = 50
- wait()
- human.Health = 50
- --------------------------------------------------------
- Debounces = {
- AnimationCycles = 0;
- FPS = 0;
- scalingDamage = false;
- damageLevel = 0;
- attackNumber = 0;
- isAttacking = false;
- isMoving = false;
- isSprinting = false;
- isBoosting = false;
- isPassive = false;
- isTyping = false;
- }
- --------------------------------------------------------
- numLerp = function(start, goal, alpha)
- return(((goal - start) * alpha) + start)
- CFrameZero = function()
- return CFrame.new(Vector3.new())
- rad = function(value)
- return math.rad(value)
- CFAngles = function(Vector)
- return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
- --------------------------------------------------------
- AnimStat = {
- lerpSpeed = .2;
- lerpSpeed2 = .35;
- lerpTween = 0;
- }
- --------------------------------------------------------
- BodyColors = {
- HeadColor = BrickColor.new("Institutional white");
- LeftArmColor = BrickColor.new("Institutional white");
- RightArmColor = BrickColor.new("Institutional white");
- LeftLegColor = BrickColor.new("Institutional white");
- RightLegColor = BrickColor.new("Institutional white");
- TorsoColor = BrickColor.new("Mid gray");
- }
- Customs = {
- Face = "http://www.roblox.com/asset/?id=8560915";
- Shirt = "http://www.roblox.com/asset/?id=334781688";
- Pants = "http://www.roblox.com/asset/?id=335237283";
- }
- --------------------------------------------------------
- prepareCharacter = function()
- local transPoints = {
- NumberSequenceKeypoint.new(0,.819,.0375),
- NumberSequenceKeypoint.new(.207,.594,.0187),
- NumberSequenceKeypoint.new(.4,.55,.031),
- NumberSequenceKeypoint.new(.57,.619,.05),
- NumberSequenceKeypoint.new(.76,.8,.0375),
- NumberSequenceKeypoint.new(1,1,0),
- }
- local sizePoints = {
- NumberSequenceKeypoint.new(0,.687,0),
- NumberSequenceKeypoint.new(.111,.875,0),
- NumberSequenceKeypoint.new(.327,1.19,0),
- NumberSequenceKeypoint.new(.646,1.56,0),
- NumberSequenceKeypoint.new(.805,1.37,0),
- NumberSequenceKeypoint.new(.905,1.06,0),
- NumberSequenceKeypoint.new(.968,.938,0),
- NumberSequenceKeypoint.new(.984,1.13,0),
- NumberSequenceKeypoint.new(1,1.62,0),
- }
- local Size = NumberSequence.new(sizePoints)
- local Transparency = NumberSequence.new(transPoints)
- rayModel = Instance.new("Model",c)
- efxBlock = Instance.new("Part",c)
- efxBlock.BrickColor = BrickColor.new("Cyan")
- efxBlock.Material = "Neon"
- efxBlock.FormFactor = "Custom"
- efxBlock.Transparency = .3
- efxBlock.Size = Vector3.new(.3,.3,.3)
- local mesh = Instance.new("SpecialMesh",efxBlock)
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Scale = Vector3.new(1,1,1)
- light = Instance.new("PointLight",c.Head)
- light.Range = 10
- light.Color = Color3.new(0,200/255,1)
- light.Shadows = false
- local particles = Instance.new("ParticleEmitter",efxBlock)
- particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
- particles.LightEmission = .95
- particles.Size = Size
- particles.Name = "Fire"
- particles.Transparency = Transparency
- particles.LockedToPart = true
- particles.VelocityInheritance = .5
- particles.LockedToPart = true
- particles.Rate = 70
- particles.Texture = "rbxassetid://56561915"
- particles.Lifetime = NumberRange.new(2,2)
- particles.RotSpeed = NumberRange.new(100,100)
- particles.Speed = NumberRange.new(7,7)
- script.Parent = efxBlock
- fire = particles
- local offset = Vector3.new(-0.11, .23, -0.5)
- local weld = Instance.new("Weld",c.Head)
- weld.Part0 = c.Head
- weld.Part1 = efxBlock
- weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
- efxBlock.Parent = c
- local music = Instance.new("Sound",c)
- music.SoundId = "rbxassetid://561833161"
- music.Looped = true
- music.Volume = 1.5
- fight = music
- local music2 = Instance.new("Sound",c)
- music2.SoundId = "rbxassetid://561833161"
- music2.Looped = true
- music2.Volume = 0
- sans = music2
- for i,v in pairs (c.Head:children()) do
- if v.ClassName == "Sound" then
- v:Destroy()
- for i = 1,#Joints do
- Joints[i].C1 = CFrame.new(Vector3.new())
- human.WalkSpeed = 0
- human.JumpPower = 0
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
- Debounces.isPassive = not Debounces.isPassive
- setJointCFrames = function(table)
- for i = 1,#table do
- JointTargets[i] = table[i]
- AnimationCycles = 0
- setLerp = function(speed)
- AnimStat.lerpSpeed = speed
- setTween = function(tween)
- AnimStat.lerpTween = tween
- takeDamage = function(position,damage,distance,platformStand)
- for i,v in pairs (pls:children()) do
- if v.ClassName == "Player" and v:FindFirstChild("Character") then
- local torso = v.Character:FindFirstChild("Torso")
- if torso and (torso.Position - position).magnitude < distance then
- v.Character.Humanoid:TakeDamage(damage)
- if platformStand == true then
- v.Character.PlatformStand = platformStand
- --------------------------------------------------------
- prepareCharacter()
- --------------------------------------------------------
- setLerp(.1)
- if Debounces.isPassive == true then
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
- CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
- CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
- CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
- CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
- })
- else
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
- 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));
- CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
- 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));
- CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
- CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
- })
- human.Changed:connect(function(prop)
- if prop == "MoveDirection" then
- if human.MoveDirection.magnitude > .02 then
- Debounces.isMoving = true
- else
- Debounces.isMoving = false
- uinps.InputBegan:connect(function(InputObject)
- 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
- Debounces.isBoosting = true
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
- CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
- CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
- CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
- CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
- })
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
- CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
- CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
- CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
- })
- wait(.2)
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- uinps.InputBegan:connect(function(InputObject)
- 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
- Debounces.isBoosting = true
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
- CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
- CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
- CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
- CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
- })
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
- CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
- CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
- CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
- })
- wait(.2)
- uinps.InputBegan:connect(function(InputObject)
- 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
- Debounces.isBoosting = true
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
- CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
- CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
- CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
- CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
- CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
- })
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
- CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
- CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
- CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
- })
- wait(.2)
- uinps.InputBegan:connect(function(InputObject)
- 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
- Debounces.isBoosting = true
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
- CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
- CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
- CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
- CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
- CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
- })
- local boostSpeed = 150
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
- CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
- CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
- CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
- CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
- CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
- })
- wait(.2)
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- local isLooping = true
- uinps.Input ed:connect(function(InputObject2)
- if InputObject2.KeyCode == Enum.KeyCode.Q then
- isLooping = false
- while true do
- if isLooping == false then
- break
- Debounces.attackNumber = Debounces.attackNumber + 1
- local aimPos = mouse.Hit.p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(12,.2,12)
- head.CanCollide = false
- head.Anchored = true
- head.Transparency = 1
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- if Debounces.attackNumber%2 == 1 then
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
- else
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
- spawn(function()
- local timer = 0
- while rs.R erStepped:wait() do
- if timer >= 1.55 then
- break
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
- local hit, pos = workspace:FindPartOnRay(ray,c)
- local dis = (head.CFrame.p - pos).magnitude
- local rayPart = Instance.new("Part",rayModel)
- rayPart.Material = "Neon"
- rayPart.FormFactor = "Custom"
- rayPart.BrickColor = BrickColor.new(1,1,1)
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.Size = Vector3.new(7,7,dis + 400)
- 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)
- rayPart.CFrame = rayCFrame
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s:Play()
- wait(.04)
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isAttacking = true
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- setLerp(.1)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
- CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
- })
- spawn(function()
- local timer = 0
- while rs.R erStepped:wait() do
- if timer >= 1.55/.8 then
- break
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
- local hit, pos = workspace:FindPartOnRay(ray,c)
- local dis = (head.CFrame.p - pos).magnitude
- local rayPart = Instance.new("Part",rayModel)
- rayPart.Material = "Neon"
- rayPart.FormFactor = "Custom"
- rayPart.Name = "Punch"
- rayPart.BrickColor = BrickColor.new(1,1,1)
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.Size = Vector3.new(28,28,dis + 400)
- 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)
- rayPart.CFrame = rayCFrame
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s.Pitch = .8
- s:Play()
- wait(.75)
- setLerp(.17)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
- CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
- })
- wait(.5)
- Debounces.isAttacking = false
- reflect = function(d,n)
- local i, n = -1 * d.unit, n.unit
- local dot = n:Dot(i)
- return 2*dot*n - i
- makeReflectionBeam = function(pos,look,isCrit)
- local ray = Ray.new(pos,look)
- local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
- local e = Instance.new("Part",rayModel)
- e.Anchored = true
- e.CanCollide = false
- e.BrickColor = BrickColor.new("White")
- e.Material = "Neon"
- e.FormFactor = "Custom"
- e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
- if isCrit == true then
- e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
- e.Name = "Punch"
- e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
- local e = Instance.new("Sound",c)
- if isCrit == true then
- e.Volume = .5
- else
- e.Volume = .3
- e.Pitch = 1.5
- e.SoundId = "rbxassetid://200632875"
- e:Play()
- spawn(function()
- wait(6)
- e:Destroy()
- wait(.05)
- if hit ~= nil then
- newDir = reflect(look.unit,norm,isCrit)
- makeReflectionBeam(hitpos,newDir * 999,isCrit)
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
- local isLooping = true
- uinps.Input ed:connect(function(InputObject2)
- if InputObject2.KeyCode == Enum.KeyCode.Q then
- isLooping = false
- while true do
- if isLooping == false then
- break
- Debounces.attackNumber = Debounces.attackNumber + 1
- local aimPos = mouse.Hit.p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(12,.2,12)
- head.CanCollide = false
- head.Anchored = true
- head.Transparency = 1
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- if Debounces.attackNumber%2 == 1 then
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
- else
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
- spawn(function()
- local timer = 0
- while rs.R erStepped:wait() do
- if timer >= 1.55 then
- break
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s.Pitch = 1.02
- s:Play()
- wait(.2)
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isAttacking = true
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- setLerp(.1)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
- CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
- })
- spawn(function()
- local timer = 0
- while rs.R erStepped:wait() do
- if timer >= 1.55/.8 then
- break
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 2
- s.SoundId = "rbxassetid://332223043"
- s.Pitch = .8
- s:Play()
- wait(.75)
- setLerp(.17)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
- CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
- })
- wait(.5)
- Debounces.isAttacking = false
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.Slash then
- local finishEvent = nil
- Debounces.isTyping = true
- finishEvent = uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
- Debounces.isTyping = false
- finishEvent:disconnect()
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.LeftShift then
- Debounces.isSprinting = true
- uinps.Input ed:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.LeftShift then
- Debounces.isSprinting = false
- rs.R erStepped:connect(function()
- Debounces.FPS = 1/rs.R erStepped:wait()
- local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
- if Debounces.isPassive == false then
- fire.Enabled = false
- light.Range = 0
- fight:Pause()
- sans:Resume()
- efxBlock.Transparency = 1
- else
- fire.Enabled = true
- light.Range = 10
- fight:Resume()
- sans:Pause()
- efxBlock.Transparency = 0
- for i,v in pairs (rayModel:children()) do
- if v.Transparency >= 1 then
- v:Destroy()
- else
- v.CanCollide = true
- local parts = v:GetTouchingParts()
- v.CanCollide = false
- for i = 1,#parts do
- if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
- parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
- v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
- v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
- for i = 1,#Joints do
- Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
- local sineval = math.sin(tick() * 2) * 3
- fire.Acceleration = Vector3.new(sineval,1,sineval)
- light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement