Hello, as you see I’m trying to make an admin script.
So, basically when you enter a player’s name, then it finds the player and immediately kills him.
I’ve used a textbox specifically for it.
Sadly no solution.
You can check at the bottom of the page how much I’ve worked.
[local script]
local Box = script.Parent
local ok = game.Players:FindFirstChildWhichIsA(“Player”)
Box.Changed:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer()
end)
script{}
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr)
local plrGui = plr:WaitForChild(“PlayerGui”)
local ScreenGui = plrGui:WaitForChild(“ScreenGui”)
local Box = ScreenGui.TextBox
Box.Changed:Connect(function()
if Box.Text == plr.Name then
plr:Destroy()
end
end)
end)
I have looked everywhere, even youtube devforums, etc.
I have tried everything thinking looking through forums and trying to find a solution.
It took a lot of time.
If anyone could help me with this script then I will be saved from this headache.
All I’m asking is a solution, that’s it and thank you!