i hcanged the line thickness
and the colour but its not letting me see it through walls
second part to it? not sure why
Instead of selection boxes, try using highlights. This way, you can see it through walls.
local function highlightNPCs()
local npcsFolder = game.Workspace:FindFirstChild("NPCs")
if npcsFolder then
for _, npc in pairs(npcsFolder:GetChildren()) do
if npc:IsA("Model") then
local highlight = Instance.new("Highlight")
highlight.Parent = npc
highlight.FillColor = Color3.fromRGB(255, 0, 0)
highlight.OutlineColor = Color3.fromRGB(255, 0, 0)
highlight.FillTransparency = 0.5
highlight.OutlineTransparency = 0
end
end
else
warn("No NPCs folder found in Workspace")
end
end
it works!! thank you so much for your help you have been brilliant!
i have made sure it works only with the gamepass and it works
thank you!
You’re welcome! Glad I could help, good luck on your project !
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.