wait(1)
local event = nil;
local name = nil;
event.OnServerEvent:Connect(function()
for _,plr in pairs(game.Players:GetPlayers()) do
delay(1, function()
print("Running Sources")
event = plr:WaitForChild("PlayerGui").CoreGui.KickPlayer:WaitForChild("Remote Kick")
repeat
wait()
until
event
name = event.Parent:WaitForChild("PlayerName")
print("a")
if game:FindFirstChild(name.Text) then
print("b")
game.Players[name.Text].Character:Remove()
print("c")
wait()
print("d")
game.Players[name.Text].PlayerGui.CoreLoadingGui.Error.Visible = true
print("e")
game.Players[name.Text].PlayerGui.CoreLoadingGui.Error.ErrorText.Text = "[ CLIENT DISCONNECTED ]: You have been kicked from this game."
print("f")
end
end)
end
end)
COMMUNITY QUESTION
event is a nil value?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
