Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a working material ESP for admins?

I'm making a game and I'd like to give my admins ESP for other players and ores around them. I've tried to make an iron ESP but it doesn't seem to work. There are no errors when the script is ran, but the ESP does not come up. Please help.

local ESP = Instance.new('BillboardGui');
ESP.Parent = game:GetService("ReplicatedStorage");
ESP.Name = "ESP";

local textLabel = Instance.new('TextLabel');
textLabel.Parent = ESP;
textLabel.Text = "Iron";
textLabel.Font = Enum.Font.ArialBold;
textLabel.Size = UDim2.new(1, 0, 1, 0);
textLabel.TextSize = 24;
textLabel.TextColor3 = Color3.fromRGB();
textLabel.TextStrokeTransparency = 0.25;

local ores = game.Workspace.OreZones:GetDescendants()
local doors = game.Workspace.Doors
local trees = game.Workspace.Trees

for i,v in pairs(ores) do
   if v.Name == "IronNode" then
       game:GetService('CoreGui').ESP:Clone()
       game:GetService('CoreGui').ESP.Parent = game.Players.LocalPlayer.PlayerGui
       game:GetService('CoreGui').ESP.Adornee = v.RockPrim
   end
end

1 answer

You are not allowed to add items to the CoreGUI. Use the player his PlayerGui. Keep an instance you want to clone in ReplicatedStorage as a template.

1 comment

0

Still doesn't work?

This discussion is preserved as it was. New answers, comments, and votes are closed.