Edit: I Fixed it, but here’s my code if you want it.
kickPlayer2 = false
if input.KeyCode == Enum.KeyCode.R then
kickPlayer2 = not kickPlayer2
if kickPlayer2 == true then
followPlayer2 = "Kick"
game.Workspace:WaitForChild(game.Players.LocalPlayer.Name.."2").KickAnimation:FireServer("Play")
kickPlayer2 = false
wait(1)
followPlayer2 = true
end
if kickPlayer2 == false then
wait(5)
kickPlayer2 = true
end
end
local kickPlayer2 = true
if input.KeyCode == Enum.KeyCode.R then
kickPlayer2 = false
if kickPlayer2 == true then
followPlayer2 = "Kick"
game.Workspace:WaitForChild(game.Players.LocalPlayer.Name.."2").KickAnimation:FireServer("Play")
kickPlayer2 = false
wait(1)
followPlayer2 = true
end
if kickPlayer2 == false then
wait(5)
kickPlayer2 = true
end
end
local kickPlayer2 = false
if input.KeyCode == Enum.KeyCode.R then
if not kickPlayer2 then
kickPlayer = true
followPlayer2 = "Kick"
game.Workspace:WaitForChild(game.Players.LocalPlayer.Name.."2").KickAnimation:FireServer("Play")
kickPlayer2 = false
wait(1)
followPlayer2 = true
wait(4)
kickPlayer2 = false
end
end
end
try that
EDIT: did an edit so retry, forgot to add the local@Q4_42
local kickPlayer2 = true
if input.KeyCode == Enum.KeyCode.R then
if kickPlayer2 == true then
kickPlayer2 = false
followPlayer2 = "Kick"
game.Workspace:WaitForChild(game.Players.LocalPlayer.Name.."2").KickAnimation:FireServer("Play")
wait(1)
followPlayer2 = true
wait(4)
kickPlayer2 = true
end
end