Grumbe Chaser - Lua
Grumbe Chaser - Lua
local Speed = 12
Cache:Destroy()
Cache2:Destroy()
Sword.Parent = Player.Backpack
task.spawn(function()
local Tool = Sword
local Handle = Tool:WaitForChild("Handle")
local Humanoid = Character.Humanoid
local Torso = Character:FindFirstChild("Torso") or
Character:FindFirstChild("HumanoidRootPart")
local DamageValues = {
BaseDamage = 5,
SlashDamage = 10,
LungeDamage = 30
}
local Animations = {
R15Slash = 522635514,
R15Lunge = 522638767
}
local Grips = {
Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
}
local Sounds = {
Slash = Handle:WaitForChild("SwordSlash"),
Lunge = Handle:WaitForChild("SwordLunge"),
Unsheath = Handle:WaitForChild("Unsheath")
}
Tool.Grip = Grips.Up
Tool.Enabled = true
if Humanoid then
if Humanoid.RigType == Enum.HumanoidRigType.R6 then
local Anim = Instance.new("StringValue")
Anim.Name = "toolanim"
Anim.Value = "Slash"
Anim.Parent = Tool
elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
local Anim = Tool:FindFirstChild("R15Slash")
if Anim then
local Track = Humanoid:LoadAnimation(Anim)
Track:Play(0)
end
end
end
end
Sounds.Lunge:Play()
if Humanoid then
if Humanoid.RigType == Enum.HumanoidRigType.R6 then
local Anim = Instance.new("StringValue")
Anim.Name = "toolanim"
Anim.Value = "Lunge"
Anim.Parent = Tool
elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
local Anim = Tool:FindFirstChild("R15Lunge")
if Anim then
local Track = Humanoid:LoadAnimation(Anim)
Track:Play(0)
end
end
end
wait(0.2)
Tool.Grip = Grips.Out
wait(0.6)
Tool.Grip = Grips.Up
Damage = DamageValues.SlashDamage
end
Tool.Enabled = true
local LastAttack = 0
Tool.Activated:Connect(Activated)
Tool.Equipped:Connect(Equipped)
Tool.Unequipped:Connect(Unequipped)
Handle.Touched:Connect(Blow)
end)
UserInputService.InputBegan:Connect(function(input, gP)
if input.KeyCode == Enum.KeyCode.Q and not gP then
local Dummy = game:GetObjects("rbxassetid://96223289630255")[1]
local Grumbo = game:GetObjects("rbxassetid://103869039972033")[1]
Dummy.Parent = workspace
Grumbo.Parent = workspace
Dummy.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame +
Vector3.new(math.random(-15, 15), 0, math.random(-15, 15))
task.wait()
local Idle =
Grumbo.GrumbleRig.AnimationController.Animator:LoadAnimation(Grumbo.GrumbleRig.Idle
)
Idle.Looped = true
Idle:Play()
local Blink =
Grumbo.GrumbleRig.AnimationController.Animator:LoadAnimation(Grumbo.GrumbleRig.Blin
k)
local Stun =
Grumbo.GrumbleRig.AnimationController.Animator:LoadAnimation(Grumbo.GrumbleRig.Stun
)
task.spawn(function()
while Grumbo:IsDescendantOf(workspace) do
task.wait(math.random(2, 5))
Blink:Play()
end
end)
Dummy.Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
if Dummy.Humanoid.Health <= 0 then
Stun:Play()
task.wait(1)
Dummy:Destroy()
Grumbo:Destroy()
end
end)
RunService.RenderStepped:Connect(function()
if Grumbo:IsDescendantOf(workspace) and
Dummy:IsDescendantOf(workspace) and Dummy:FindFirstChild("HumanoidRootPart") and
Dummy:FindFirstChild("Humanoid").Health > 0 then
local Distance = (Character.HumanoidRootPart.Position -
Dummy.HumanoidRootPart.Position).magnitude