local char = game.Workspace:FindFirstChild("Humanoid")
if char.walkspeed>16 then
print("you hacker")
end
Workspace.Script:1: attempt to index a nil value is the error.
My intentions are to make sure no one is speed hacking in my game, sense filteredenabled doesn't cover that. I want to eventually ban the player for the game in the if statement, but I used print to make sure it works, which it doesn't.

2 comments
You gotta find the player first. local char = game.Workspace:FindFirstChild("Humanoid") doesn't make much sense to me.
Run a loop that checks like every four second if the player has the speed above 16.