first you type in player username and then reason it kicks
local Frame = script.Parent
local Enter = Frame.Enter
local UH = Frame.UsernameHandler
local RH = Frame.ReasonHandler
local function getPlayer(String)
for i, Player in pairs(game.Players:GetPlayers()) do
if string.sub(string.lower(Player.Name), 2, string.len(String)) == string.lower(String) then
return Player
end
end
end
Enter.MouseButton1Click:Connect(function()
local Player = getPlayer(UH.Text)
if Player then
print("yo")
end
Player:Kick("Kick for: "..RH.Text)
end)
Error: 19:38:29.578 - Players.raid6n.PlayerGui.ScreenGui.Frame.LocalScript:23: attempt to index local 'Player' (a nil value)
something looks wrong at line 9 though

12 comments
I work love for an answer, if you have any questions, you may ask me.
I work love for an answer, if you have any questions, you may ask me.
I work love for an answer, if you have any questions, you may ask me.
I work love for an answer, if you have any questions, you may ask me.
sad lag
sad lag
sad lag
sad lag
lol
lol
Second argument of line 8 should be 1 -_-
oh