Basically, I am trying to create a whitelist system for which when the script detects that there is a whitelisted user the user is able to use the speed agility,
if game.Players.LocalPlayer.Name == {"MyBestFriend","mony111133333"}
then
game:GetService("UserInputService").InputBegan:connect(function(inputObject,gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.W then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 60
end
end)
else
game.Players.LocalPlayer:Kick ("You are NOT whitelisted, Join the Discod Server. Sorry!")
end

2 comments
:Kick()can only be run on the serverwhitelist = {[123456789] = true, etc etc}