Everytime the textbox changes text you can check if the text from the textbox is a player in game.Players.
Example
local TextBox = --Your textbox
TextBox.Changed:Connect(function() -- fires when anything from the textbox changes
if game.Players:FindFirstChild(Textbox.Text) then -- makes sure it is a player
--fire server
end
end)
local debounce = false
local Admin = {"nehoray1200","NEDEv5","HackItsGood"}
game.ReplicatedStorage.PlayerFind.OnServerEvent:Connect(function(player, Parameter, PlayerSent)
print("Server")
for i, v in pairs(Admin) do
if player.Name == v then
if Parameter == "Kick" then
if game.Players:FindFirstChild(PlayerSent) then
game.Players:FindFirstChild(PlayerSent):Kick("You Got Kicked By Admin: ".. player.Name)
end
elseif Parameter == "Shutdown" then
for i, v in pairs(Admin) do
if player.Name == v then
for i, Player in pairs(game.Players:GetPlayers()) do
Player:Kick("This Server Got Shutdown By: ".. player.Name)
end
elseif Parameter == "kill" then
for i, k in pairs(Admin) do
if player.Name == k then
print("Admin")
if game.Players:FindFirstChild(PlayerSent) then
game.Workspace:FindFirstChild(PlayerSent):FindFirstChild("Humanoid").Health = 0
print("Killed!")
end
elseif Parameter == "Jump" then
for i, v in pairs(Admin) do
if player.Name == v then
if game.Workspace:FindFirstChild(PlayerSent) then
game.Workspace:FindFirstChild(PlayerSent):FindFirstChild("Humanoid").Jump = true
end
end
end
end
end
end
end
end
end
end
end)
You didn’t add an end to your shutdown loop correctly so it’s checking if the Parameter is “kill” every time it’s kicking a player. Move an end from the end of the script to after the shutdown loop ends.
Like this, you just have to move some of the ends from the end of the script to where they’re supposed to go.
local debounce = false
local Admin = {"nehoray1200","NEDEv5","HackItsGood"}
game.ReplicatedStorage.PlayerFind.OnServerEvent:Connect(function(player, Parameter, PlayerSent)
print("Server")
for i, v in pairs(Admin) do
if player.Name == v then
if Parameter == "Kick" then
if game.Players:FindFirstChild(PlayerSent) then
game.Players:FindFirstChild(PlayerSent):Kick("You Got Kicked By Admin: ".. player.Name)
end
elseif Parameter == "Shutdown" then
for i, v in pairs(Admin) do
if player.Name == v then
for i, Player in pairs(game.Players:GetPlayers()) do
Player:Kick("This Server Got Shutdown By: ".. player.Name)
end
end end
elseif Parameter == "kill" then
for i, k in pairs(Admin) do
if player.Name == k then
print("Admin")
if game.Players:FindFirstChild(PlayerSent) then
game.Workspace:FindFirstChild(PlayerSent):FindFirstChild("Humanoid").Health = 0
print("Killed!")
end
end end
elseif Parameter == "Jump" then
for i, v in pairs(Admin) do
if player.Name == v then
if game.Workspace:FindFirstChild(PlayerSent) then
game.Workspace:FindFirstChild(PlayerSent):FindFirstChild("Humanoid").Jump = true
end
end
end
end
end
end
end)