Repro:
- In an empty baseplate, create a server script with the code listed below and publish the game.
- Join the server with two different accounts. One account should join on mobile, and should join the server first. The other account should be on PC and should join the same server after the first account joins.
- Observe that on the mobile account, the highlight shows, and on the PC account the highlight does not show.
- Try the process again with a fresh server, joining in reverse order (so PC first, mobile second) and observe that both accounts show the highlight correctly.
It seems that if the PC player joins after the server has started or if they are not the first player to receive highlight instances, those highlights will not work. This bug even appears to happen if the highlights are created client-side within the first few frames (in the interest of time I have not tried to reproduce this in isolation, but it is the issue which initially caused me to investigate this bug). It can be fixed by waiting a longer time and then destroying the old highlights and creating new ones, or something like that.
Server code:
local Model = Instance.new("Model")
Model.Parent = workspace
local Highlight = Instance.new("Highlight")
Highlight.Parent = Model
Highlight.Adornee = Model
Highlight.DepthMode = Enum.HighlightDepthMode.Occluded
Highlight.FillColor = Color3.fromRGB(255, 255, 255)
Highlight.FillTransparency = 0.3
Highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
Highlight.OutlineTransparency = 0
for Index = 1, 40 do
local Part = Instance.new("Part")
Part.Parent = Model
Part.CFrame = CFrame.new(0, 20, 0)
end
Client version on PC: