So I tried making this to check if there is a boolean called "AFK" in the player so they don't get the bool value in their player twice. but, this doesn't work.
game.Players.PlayerAdded:connect(function(player)
FindBool = player:FindFirstChild("AFK")
player.CharacterAdded:connect(function(character)
if FindBool == false then
Instance.new("BoolValue",player)
player.Value.Name = "AFK"
character.Humanoid.WalkSpeed = 0
else
end
end)
end)

2 comments
Terrible answer... https://scriptinghelpers.org/help/how-post-good-questions-answers
Sorry but I know the asker personally and he asked me to only give him the code