Hello community
I’m having a bug with the highlights in the game I’m working on. These are not shown, they are well configured but neither in roblox nor in roblox studio you can see anything (and it is not a problem of the model because in the main models with highlight is activated with the script below, they do work.)
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local stands = workspace.MAP.Stands:GetChildren()
local player = Players.LocalPlayer
local char = player.Character
local userId = player.UserId
RunService.Heartbeat:Connect(function()
for _, stand in stands do
if stand.Proximity.Owner.Value == tostring(userId) then
local distanceOfBooth = (char.PrimaryPart.Position - stand.Proximity.Position).Magnitude
if distanceOfBooth < 10 then
stand.Highlight.Enabled = true
else
stand.Highlight.Enabled = false
end
else
stand.Highlight.Enabled = false
end
end
end)
I hope you can help me