Hello, Im making a potion that will show the players in the map, but the script is not working, No error in console.
Script:
for i, v in pairs(plr.Character:GetChildren()) do
print(i)
local SurfaceUI = Instance.new("SurfaceGui", v)
SurfaceUI.Face = "Front"
SurfaceUI.Adornee = v
SurfaceUI.AlwaysOnTop = true
SurfaceUI.ResetOnSpawn = false
SurfaceUI.Adornee = v
----------- Frame ----------------------
local Frame = Instance.new("Frame", SurfaceUI)
Frame.Visible = true
end