Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Original script made by someone else, i just edited it with actual Sonic sounds. -- Velo")
- wait()
- thing = 0
- LoudVolume = false
- Submerged = false
- Music = true
- script.Name = "SANIIIIC"
- Player = game.Players.LocalPlayer
- c = game.Players.LocalPlayer.Character
- Head = c.Head
- Humanoid = c.Humanoid
- anim = c.Humanoid.Animator
- rage = false
- p = game.Players.LocalPlayer
- Music = false
- anim = Humanoid.Animator
- local Effects = {}
- attack = false
- local attacking = false
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- matr = math.random
- mouse = Player:GetMouse()
- RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RS = c.Torso:FindFirstChild("Right Shoulder")
- LS = c.Torso:FindFirstChild("Left Shoulder")
- RH = c.Torso:FindFirstChild("Right Hip")
- LH = c.Torso:FindFirstChild("Left Hip")
- RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
- N = c.Torso:FindFirstChild("Neck")
- cf = CFrame.new
- ang = CFrame.Angles
- rd = math.rad
- rd2 = math.random
- --[[mainShirt = c.Shirt
- mainPants = c.Pants
- mainBColors = c["Body Colors"]
- mainShirt.ShirtTemplate = "rbxassetid://769869277"
- mainPants.PantsTemplate = "rbxassetid://805486769"
- mainBColors.HeadColor = BrickColor.new("Pastel brown")
- mainBColors.LeftArmColor = BrickColor.new("Pastel brown")
- mainBColors.LeftLegColor = BrickColor.new("Pastel brown")
- mainBColors.RightArmColor = BrickColor.new("Pastel brown")
- mainBColors.RightLegColor = BrickColor.new("Pastel brown")
- mainBColors.TorsoColor = BrickColor.new("Pastel brown")]]
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Heartbeat:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Heartbeat:wait(0)
- end
- end
- end
- function lerpz(joint, prop, cfrmz, alp)
- joint[prop] = joint[prop]:lerp(cfrmz, alp)
- end
- function resetlerp()
- RJ.C0 = RJC0
- RJ.C1 = RJC1
- N.C0 = NC0
- N.C1 = NC1
- RS.C0 = RSC0
- RS.C1 = RSC1
- LS.C0 = LSC0
- LS.C1 = LSC1
- RH.C0 = RHC0
- RH.C1 = RHC1
- LH.C0 = LHC0
- LH.C1 = LHC1
- end
- local S2 = Instance.new("Sound",c.HumanoidRootPart)S2.SoundId = "rbxassetid://" S2.Volume = 0 S2.PlaybackSpeed = 0 S2.Looped = true S2:Play()
- c.Head.face:remove()
- local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
- local att1 = Instance.new("Attachment", c["Right Leg"])
- att1.Name = "att1"
- att1.Position = Vector3.new(0.5, 1, 0.5)
- local att2 = Instance.new("Attachment", c["Right Leg"])
- att2.Name = "att2"
- att2.Position = Vector3.new(-0.5, 1, 0.5)
- local att3 = Instance.new("Attachment", c["Right Leg"])
- att3.Name = "att3"
- att3.Position = Vector3.new(0.5, -1, 0.5)
- local att4 = Instance.new("Attachment", c["Right Leg"])
- att4.Name = "att4"
- att4.Position = Vector3.new(-0.5, -1, 0.5)
- local attt1 = Instance.new("Attachment", c["Left Leg"])
- attt1.Name = "att1"
- attt1.Position = Vector3.new(0.5, 1, 0.5)
- local attt2 = Instance.new("Attachment", c["Left Leg"])
- attt2.Name = "att2"
- attt2.Position = Vector3.new(-0.5, 1, 0.5)
- local attt3 = Instance.new("Attachment", c["Left Leg"])
- attt3.Name = "att3"
- attt3.Position = Vector3.new(0.5, -1, 0.5)
- local attt4 = Instance.new("Attachment", c["Left Leg"])
- attt4.Name = "att4"
- attt4.Position = Vector3.new(-0.5, -1, 0.5)
- local trailtop1 = Instance.new("Trail", c["Right Leg"])
- trailtop1.Enabled = true
- trailtop1.Texture = "rbxassetid://16607923"
- trailtop1.Name = "toptrail"
- trailtop1.MinLength = 0
- trailtop1.Lifetime = 0.1
- trailtop1.Color = ColorSequence.new(ColorArray)
- trailtop1.Attachment0 = att1
- trailtop1.Attachment1 = att2
- trailtop1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailbot1 = Instance.new("Trail", c["Right Leg"])
- trailbot1.Enabled = true
- trailbot1.Texture = "rbxassetid://16607923"
- trailbot1.Name = "bottrail"
- trailbot1.MinLength = 0
- trailbot1.Lifetime = 0.1
- trailbot1.Color = ColorSequence.new(ColorArray)
- trailbot1.Attachment0 = att3
- trailbot1.Attachment1 = att4
- trailbot1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside1 = Instance.new("Trail", c["Right Leg"])
- trailside1.Enabled = true
- trailside1.Texture = "rbxassetid://16607923"
- trailside1.Name = "sidetrail1"
- trailside1.MinLength = 0
- trailside1.Lifetime = 0.1
- trailside1.Color = ColorSequence.new(ColorArray)
- trailside1.Attachment0 = att1
- trailside1.Attachment1 = att3
- trailside1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside2 = Instance.new("Trail", c["Right Leg"])
- trailside2.Enabled = true
- trailside2.Texture = "rbxassetid://16607923"
- trailside2.Name = "sidetrail2"
- trailside2.MinLength = 0
- trailside2.Lifetime = 0.1
- spawn(function()
- while true do wait()
- trailside2.Color = ColorSequence.new(ColorArray)
- end
- end)
- trailside2.Attachment0 = att2
- trailside2.Attachment1 = att4
- trailside2.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailtop12 = Instance.new("Trail", c["Left Leg"])
- trailtop12.Enabled = true
- trailtop12.Texture = "rbxassetid://16607923"
- trailtop12.Name = "toptrail"
- trailtop12.MinLength = 0
- trailtop12.Lifetime = 0.1
- spawn(function()
- while true do wait()
- trailtop12.Color = ColorSequence.new(ColorArray)
- end
- end)
- trailtop12.Attachment0 = attt1
- trailtop12.Attachment1 = attt2
- trailtop12.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailbot2 = Instance.new("Trail", c["Left Leg"])
- trailbot2.Enabled = true
- trailbot2.Texture = "rbxassetid://16607923"
- trailbot2.Name = "bottrail"
- trailbot2.MinLength = 0
- trailbot2.Lifetime = 0.1
- trailbot2.Color = ColorSequence.new(ColorArray)
- trailbot2.Attachment0 = attt3
- trailbot2.Attachment1 = attt4
- trailbot2.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside12 = Instance.new("Trail", c["Left Leg"])
- trailside12.Enabled = true
- trailside12.Texture = "rbxassetid://16607923"
- trailside12.Name = "sidetrail1"
- trailside12.MinLength = 0
- trailside12.Lifetime = 0.1
- trailside12.Color = ColorSequence.new(ColorArray)
- trailside12.Attachment0 = attt1
- trailside12.Attachment1 = attt3
- trailside12.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside22 = Instance.new("Trail", c["Left Leg"])
- trailside22.Enabled = true
- trailside22.Texture = "rbxassetid://16607923"
- trailside22.Name = "sidetrail2"
- trailside22.MinLength = 0
- trailside22.Lifetime = 0.1
- trailside22.Color = ColorSequence.new(ColorArray)
- trailside22.Attachment0 = attt2
- trailside22.Attachment1 = attt4
- trailside22.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local att1 = Instance.new("Attachment", c["Right Arm"])
- att1.Name = "att1"
- att1.Position = Vector3.new(0.5, 1, 0.5)
- local att2 = Instance.new("Attachment", c["Right Arm"])
- att2.Name = "att2"
- att2.Position = Vector3.new(-0.5, 1, 0.5)
- local att3 = Instance.new("Attachment", c["Right Arm"])
- att3.Name = "att3"
- att3.Position = Vector3.new(0.5, -1, 0.5)
- local att4 = Instance.new("Attachment", c["Right Arm"])
- att4.Name = "att4"
- att4.Position = Vector3.new(-0.5, -1, 0.5)
- local attt1 = Instance.new("Attachment", c["Left Arm"])
- attt1.Name = "att1"
- attt1.Position = Vector3.new(0.5, 1, 0.5)
- local attt2 = Instance.new("Attachment", c["Left Arm"])
- attt2.Name = "att2"
- attt2.Position = Vector3.new(-0.5, 1, 0.5)
- local attt3 = Instance.new("Attachment", c["Left Arm"])
- attt3.Name = "att3"
- attt3.Position = Vector3.new(0.5, -1, 0.5)
- local attt4 = Instance.new("Attachment", c["Left Arm"])
- attt4.Name = "att4"
- attt4.Position = Vector3.new(-0.5, -1, 0.5)
- local trailtop1 = Instance.new("Trail", c["Right Arm"])
- trailtop1.Enabled = true
- trailtop1.Texture = "rbxassetid://16607923"
- trailtop1.Name = "toptrail"
- trailtop1.MinLength = 0
- trailtop1.Lifetime = 0.1
- trailtop1.Color = ColorSequence.new(ColorArray)
- trailtop1.Attachment0 = att1
- trailtop1.Attachment1 = att2
- trailtop1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailbot1 = Instance.new("Trail", c["Right Arm"])
- trailbot1.Enabled = true
- trailbot1.Texture = "rbxassetid://16607923"
- trailbot1.Name = "bottrail"
- trailbot1.MinLength = 0
- trailbot1.Lifetime = 0.1
- spawn(function()
- while true do wait()
- trailbot1.Color = ColorSequence.new(ColorArray)
- end
- end)
- trailbot1.Attachment0 = att3
- trailbot1.Attachment1 = att4
- trailbot1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside1 = Instance.new("Trail", c["Right Arm"])
- trailside1.Enabled = true
- trailside1.Texture = "rbxassetid://16607923"
- trailside1.Name = "sidetrail1"
- trailside1.MinLength = 0
- trailside1.Lifetime = 0.1
- trailside1.Color = ColorSequence.new(ColorArray)
- trailside1.Attachment0 = att1
- trailside1.Attachment1 = att3
- trailside1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside2 = Instance.new("Trail", c["Right Arm"])
- trailside2.Enabled = true
- trailside2.Texture = "rbxassetid://16607923"
- trailside2.Name = "sidetrail2"
- trailside2.MinLength = 0
- trailside2.Lifetime = 0.1
- trailside2.Color = ColorSequence.new(ColorArray)
- trailside2.Attachment0 = att2
- trailside2.Attachment1 = att4
- trailside2.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailtop12 = Instance.new("Trail", c["Left Arm"])
- trailtop12.Enabled = true
- trailtop12.Texture = "rbxassetid://16607923"
- trailtop12.Name = "toptrail"
- trailtop12.MinLength = 0
- trailtop12.Lifetime = 0.1
- trailtop12.Color = ColorSequence.new(ColorArray)
- trailtop12.Attachment0 = attt1
- trailtop12.Attachment1 = attt2
- trailtop12.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailbot2 = Instance.new("Trail", c["Left Arm"])
- trailbot2.Enabled = true
- trailbot2.Texture = "rbxassetid://16607923"
- trailbot2.Name = "bottrail"
- trailbot2.MinLength = 0
- trailbot2.Lifetime = 0.1
- trailbot2.Color = ColorSequence.new(ColorArray)
- trailbot2.Attachment0 = attt3
- trailbot2.Attachment1 = attt4
- trailbot2.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside12 = Instance.new("Trail", c["Left Arm"])
- trailside12.Enabled = true
- trailside12.Texture = "rbxassetid://16607923"
- trailside12.Name = "sidetrail1"
- trailside12.MinLength = 0
- trailside12.Lifetime = 0.1
- trailside12.Color = ColorSequence.new(ColorArray)
- trailside12.Attachment0 = attt1
- trailside12.Attachment1 = attt3
- trailside12.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside22 = Instance.new("Trail", c["Left Arm"])
- trailside22.Enabled = true
- trailside22.Texture = "rbxassetid://16607923"
- trailside22.Name = "sidetrail2"
- trailside22.MinLength = 0
- trailside22.Lifetime = 0.1
- trailside22.Color = ColorSequence.new(ColorArray)
- trailside22.Attachment0 = attt2
- trailside22.Attachment1 = attt4
- trailside22.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local att1 = Instance.new("Attachment", c["Torso"])
- att1.Name = "att1"
- att1.Position = Vector3.new(1, 1, 0.5)
- local att2 = Instance.new("Attachment", c["Torso"])
- att2.Name = "att2"
- att2.Position = Vector3.new(-1, 1, 0.5)
- local att3 = Instance.new("Attachment", c["Torso"])
- att3.Name = "att3"
- att3.Position = Vector3.new(1, -1, 0.5)
- local att4 = Instance.new("Attachment", c["Torso"])
- att4.Name = "att4"
- att4.Position = Vector3.new(-1, -1, 0.5)
- local attt1 = Instance.new("Attachment", c["Head"])
- attt1.Name = "att1"
- attt1.Position = Vector3.new(.55, .55, 0.025)
- local attt2 = Instance.new("Attachment", c["Head"])
- attt2.Name = "att2"
- attt2.Position = Vector3.new(-.55, .55, 0.025)
- local attt3 = Instance.new("Attachment", c["Head"])
- attt3.Name = "att3"
- attt3.Position = Vector3.new(.55, -.5, 0.025)
- local attt4 = Instance.new("Attachment", c["Head"])
- attt4.Name = "att4"
- attt4.Position = Vector3.new(-.55, -.5, 0.025)
- local trailtop1 = Instance.new("Trail", c["Torso"])
- trailtop1.Enabled = true
- trailtop1.Texture = "rbxassetid://16607923"
- trailtop1.Name = "toptrail"
- trailtop1.MinLength = 0
- trailtop1.Lifetime = 0.1
- trailtop1.Color = ColorSequence.new(ColorArray)
- trailtop1.Attachment0 = att1
- trailtop1.Attachment1 = att2
- trailtop1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailbot1 = Instance.new("Trail", c["Torso"])
- trailbot1.Enabled = true
- trailbot1.Texture = "rbxassetid://16607923"
- trailbot1.Name = "bottrail"
- trailbot1.MinLength = 0
- trailbot1.Lifetime = 0.1
- trailbot1.Color = ColorSequence.new(ColorArray)
- trailbot1.Attachment0 = att3
- trailbot1.Attachment1 = att4
- trailbot1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside1 = Instance.new("Trail", c["Torso"])
- trailside1.Enabled = true
- trailside1.Texture = "rbxassetid://16607923"
- trailside1.Name = "sidetrail1"
- trailside1.MinLength = 0
- trailside1.Lifetime = 0.1
- trailside1.Color = ColorSequence.new(ColorArray)
- trailside1.Attachment0 = att1
- trailside1.Attachment1 = att3
- trailside1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside2 = Instance.new("Trail", c["Torso"])
- trailside2.Enabled = true
- trailside2.Texture = "rbxassetid://16607923"
- trailside2.Name = "sidetrail2"
- trailside2.MinLength = 0
- trailside2.Lifetime = 0.1
- trailside2.Color = ColorSequence.new(ColorArray)
- trailside2.Attachment0 = att2
- trailside2.Attachment1 = att4
- trailside2.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailtop12 = Instance.new("Trail", c["Head"])
- trailtop12.Enabled = true
- trailtop12.Texture = "rbxassetid://16607923"
- trailtop12.Name = "toptrail"
- trailtop12.MinLength = 0
- trailtop12.Lifetime = 0.1
- trailtop12.Color = ColorSequence.new(ColorArray)
- trailtop12.Attachment0 = attt1
- trailtop12.Attachment1 = attt2
- trailtop12.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailbot2 = Instance.new("Trail", c["Head"])
- trailbot2.Enabled = true
- trailbot2.Texture = "rbxassetid://16607923"
- trailbot2.Name = "bottrail"
- trailbot2.MinLength = 0
- trailbot2.Lifetime = 0.1
- trailbot2.Color = ColorSequence.new(ColorArray)
- trailbot2.Attachment0 = attt3
- trailbot2.Attachment1 = attt4
- trailbot2.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside12 = Instance.new("Trail", c["Head"])
- trailside12.Enabled = true
- trailside12.Texture = "rbxassetid://16607923"
- trailside12.Name = "sidetrail1"
- trailside12.MinLength = 0
- trailside12.Lifetime = 0.1
- trailside12.Color = ColorSequence.new(ColorArray)
- trailside12.Attachment0 = attt1
- trailside12.Attachment1 = attt3
- trailside12.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailside22 = Instance.new("Trail", c["Head"])
- trailside22.Enabled = true
- trailside22.Texture = "rbxassetid://16607923"
- trailside22.Name = "sidetrail2"
- trailside22.MinLength = 0
- trailside22.Lifetime = 0.1
- trailside22.Color = ColorSequence.new(ColorArray)
- trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4
- trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
- Sped = 0
- function ragplayer(cactus)
- local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://131026421" S.Volume = 2 S:Play()
- cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01
- if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
- cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
- makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder")
- maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0))
- end
- if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
- cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
- makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
- maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
- end
- if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
- cactus.Torso:FindFirstChild("Right Hip"):Destroy()
- makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
- maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
- end
- if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
- cactus.Torso:FindFirstChild("Left Hip"):Destroy()
- makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
- maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
- end
- cactus.Parent = game.Workspace game.Debris:AddItem(cactus,15)
- end
- function makegloo(paren, co, ci, parto, parti, nam) local gloo = Instance.new("Glue") gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
- function maketouchy(parent, limb, cframe) local pr = Instance.new("Part") pr.Name = "touchy" pr.Size = Vector3.new(1, 1, 1) pr.Transparency = 1 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) pr.CanCollide = true pr.Anchored = false pr.Parent = parent local w = Instance.new("Weld") w.Part0 = pr w.Part1 = limb w.C0 = cframe w.Parent = pr end
- local hitz = false
- c.HumanoidRootPart.Touched:connect(function(Hit)
- if thing >= 100 then
- if hitz == false then hitz = true
- ragplayer(c) local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://386946017" S.Volume = 6 S:Play()
- wait(15)
- end
- end
- end)
- function Spin()
- attack = true
- while attack == true do Sped = Sped + 0.25
- lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(Sped*Sped*5), rd(0), rd(0)), 1)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- swait()
- end
- end
- SanicScreams = {498608864,156820723}
- mouse.KeyDown:connect(function(key)
- if attack == true then return end
- if key == "q" then
- Spin()
- end
- if key == "e" then
- local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://1034903243" S.Volume = 10 S:Play()
- wait(1.25)
- local Sanic = SanicScreams[math.random(1,#SanicScreams)]
- local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://"..Sanic S.Volume = 10 S:Play()
- spawn(function()
- local Sp = Instance.new("Part",game.Workspace)Sp.BrickColor = BrickColor.new("Cyan")Sp.Material = "Neon" Sp.Size = Vector3.new(1,1,1) Sp.Anchored = true Sp.CanCollide = false
- local SPM = Instance.new("SpecialMesh",Sp)SPM.MeshType = "Sphere" Sp.CFrame = c.HumanoidRootPart.CFrame
- for i = 1,25 do
- SPM.Scale = SPM.Scale + Vector3.new(4,4,4)
- Sp.Transparency = Sp.Transparency + 1/25
- swait()
- end
- end)
- local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://214444596" S.Volume = 10 S:Play()
- Sped = 10000000000
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "q" then
- attack = false
- end
- end)
- local P = Instance.new("Part",game.Workspace.CurrentCamera)P.CanCollide = true P.Anchored = true P.Size = Vector3.new(15,1,15)
- P.CFrame = CFrame.new(c.HumanoidRootPart.Position)*CFrame.new(0,-3.5,0)P.Transparency = 0 P.Name = "FlightPart"
- P.BrickColor = BrickColor.new("Dark green") P.TopSurface = "Smooth" P.Material = "Grass"
- spawn(function()
- while true do
- P.CFrame = CFrame.new(c.HumanoidRootPart.Position.X,-0.6,c.HumanoidRootPart.Position.Z)
- swait()
- end
- end)
- anim.Parent = nil
- sine = 0
- game:GetService("RunService").RenderStepped:connect(function()
- if attack == false then
- thing = (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- game.Workspace.CurrentCamera.FieldOfView = 70+thing/100
- if c.HumanoidRootPart.Velocity.Y > 1 then sine = sine + 1
- lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(sine*thing*0.75), rd(0), rd(0)), 1)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- elseif (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 then
- sine = sine + 1 Sped = Sped + 0.1
- if thing <= 200 then
- if S2.PlaybackSpeed >= 1 then
- S2.PlaybackSpeed = 1
- else
- S2.PlaybackSpeed = thing/80
- end
- c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
- S2.Volume = thing/20
- end
- if thing <= 200 then
- c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
- S2.Volume = thing/20
- else
- c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
- end
- if thing <= 100 then
- for i,v in pairs(c:children()) do
- if v.ClassName == "Part" then
- for i,v2 in pairs(v:children()) do
- if v2.ClassName == "Trail" then
- v2.Enabled = false
- v2.LightEmission = 1
- end
- end
- end
- end
- else
- for i,v in pairs(c:children()) do
- if v.ClassName == "Part" then
- for i,v2 in pairs(v:children()) do
- if v2.ClassName == "Trail" then
- v2.Lifetime = 2
- v2.Enabled = true
- end
- end
- end
- end
- end
- lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(thing/7), rd(0), rd(0)), 1)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-thing/1.5)), 1)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(thing/1.5)), 1)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
- else c.Humanoid.WalkSpeed = 16 Sped = 0 sine = sine + 1 S2.Volume = 0 S2.PlaybackSpeed = 0
- lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
- end
- for i,v in pairs (c:children()) do
- if v.ClassName == "Accessory" then
- for i,v2 in pairs (v:children()) do
- if v2.ClassName == "Part" then
- v2.Anchored = false
- end
- end
- end
- for i,v in pairs (c:children()) do
- if v.ClassName == "Part" then
- v.Anchored = false
- end
- end
- end
- end
- end)
- -- 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
- c.Health:Destroy()
- --------------------------------------------------------
- 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)
- end
- CFrameZero = function()
- return CFrame.new(Vector3.new())
- end
- rad = function(value)
- return math.rad(value)
- end
- CFAngles = function(Vector)
- return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
- end
- --------------------------------------------------------
- AnimStat = {
- lerpSpeed = .2;
- lerpSpeed2 = .35;
- lerpTween = 0;
- }
- Joints = {
- c.HumanoidRootPart.RootJoint;
- c.Torso.Neck;
- c.Torso['Left Shoulder'];
- c.Torso['Right Shoulder'];
- c.Torso['Left Hip'];
- c.Torso['Right Hip'];
- }
- JointTargets = {
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- }
- --------------------------------------------------------
- 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://316012176"
- music.Looped = true
- music.Volume = 0
- fight = music
- local music2 = Instance.new("Sound",c)
- music2.SoundId = "rbxassetid://316014309"
- music2.Looped = true
- music2.Volume = 0
- sans = music2
- pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
- pointGyro.P = 1e7
- pointGyro.D = 1e3
- pointGyro.MaxTorque = Vector3.new(0,1e7,0)
- animator = c.Humanoid:FindFirstChild("Animator")
- if animator then
- animator:Destroy()
- end
- c.Torso.roblox:Destroy()
- for i,v in pairs (c.Head:children()) do
- if v.ClassName == "Sound" then
- v:Destroy()
- end
- end
- for i = 1,#Joints do
- Joints[i].C1 = CFrame.new(Vector3.new())
- end
- human.WalkSpeed = 0
- human.JumpPower = 0
- end
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
- Debounces.isPassive = not Debounces.isPassive
- end
- end)
- setJointCFrames = function(table)
- for i = 1,#table do
- JointTargets[i] = table[i]
- end
- AnimationCycles = 0
- end
- setLerp = function(speed)
- AnimStat.lerpSpeed = speed
- end
- setTween = function(tween)
- AnimStat.lerpTween = tween
- end
- 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
- end
- end
- end
- end
- end
- --------------------------------------------------------
- prepareCharacter()
- --------------------------------------------------------
- spawn(function()
- local sine = 0
- while wait() do
- pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
- if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
- 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));
- })
- end
- elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
- sine = sine + math.rad(12)
- human.WalkSpeed = 15
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
- 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));
- 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));
- 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));
- 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));
- })
- end
- if Debounces.scalingDamage == true then
- takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
- end
- end
- end)
- human.Changed:connect(function(prop)
- if prop == "MoveDirection" then
- if human.MoveDirection.magnitude > .02 then
- Debounces.isMoving = true
- else
- Debounces.isMoving = false
- end
- end
- end)
- 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
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- 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()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- 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(-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)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- 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
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- setLerp(.15)
- 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()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- 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)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- 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
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- 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()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- 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)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- 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
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- 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()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- 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)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- 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.InputEnded:connect(function(InputObject2)
- if InputObject2.KeyCode == Enum.KeyCode.Q then
- isLooping = false
- end
- end)
- while true do
- if isLooping == false then
- break
- end
- 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
- end
- end
- 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)
- end
- spawn(function()
- local timer = 0
- while rs.RenderStepped:wait() do
- if timer >= 1.55 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- 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
- head:Destroy()
- end)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s:Play()
- wait(.04)
- end
- end
- end)
- 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
- local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(18,.2,18)
- head.CanCollide = false
- head.Anchored = true
- head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
- 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
- end
- end
- 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.RenderStepped:wait() do
- if timer >= 1.55/.8 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- 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
- head:Destroy()
- end)
- 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
- end
- end)
- reflect = function(d,n)
- local i, n = -1 * d.unit, n.unit
- local dot = n:Dot(i)
- return 2*dot*n - i
- end
- 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"
- end
- 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
- end
- e.SoundId = "rbxassetid://200632875"
- e:Play()
- spawn(function()
- wait(6)
- e:Destroy()
- end)
- wait(.05)
- if hit ~= nil then
- newDir = reflect(look.unit,norm,isCrit)
- makeReflectionBeam(hitpos,newDir * 999,isCrit)
- end
- end
- 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.InputEnded:connect(function(InputObject2)
- if InputObject2.KeyCode == Enum.KeyCode.Q then
- isLooping = false
- end
- end)
- while true do
- if isLooping == false then
- break
- end
- 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
- end
- end
- 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)
- end
- spawn(function()
- local timer = 0
- while rs.RenderStepped:wait() do
- if timer >= 1.55 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- head:Destroy()
- makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
- end)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s.Pitch = 1.02
- s:Play()
- wait(.2)
- end
- end
- end)
- 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
- local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(18,.2,18)
- head.CanCollide = false
- head.Anchored = true
- head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
- 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
- end
- end
- 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.RenderStepped:wait() do
- if timer >= 1.55/.8 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- head:Destroy()
- makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
- end)
- 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
- end
- end)
- 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()
- end
- end)
- end
- end)
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.LeftShift then
- Debounces.isSprinting = true
- end
- end)
- uinps.InputEnded:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.LeftShift then
- Debounces.isSprinting = false
- end
- end)
- rs.RenderStepped:connect(function()
- Debounces.FPS = 1/rs.RenderStepped: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
- end
- 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))
- elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
- parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
- end
- end
- v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
- v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
- end
- end
- for i = 1,#Joints do
- Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
- end
- local sineval = math.sin(tick() * 2) * 3
- fire.Acceleration = Vector3.new(sineval,1,sineval)
- light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement