Professional Documents
Culture Documents
Map;
local Players = game:GetService("Players");
for _, v in Players:GetPlayers() do
local RootPart = v.Character and
v.Character:FindFirstChild("HumanoidRootPart");
if not RootPart then
continue;
end;
return Closest;
end;
for _, v in Map:GetChildren() do
if v.Name == "Id" then
local Position = v.Position;
SurfaceGui:GetPropertyChangedSignal("Enabled"):Connect(function()
local Kira = closestPlayerAtPos(Position);
if Kira then
print("Kira is " .. Kira.Name);
end;
end);
end;
end;