Getting error “attempt to concatenate Instance with string”, little of context on matter of local unitDownText:
…rank… and …zone… are connected to it via a function above.
I’ve not come to any solution yet and after checking some sources still didn’t find a way out of that trap.
It is a local script.
local unitDownMain = templatesText[2]:Clone()
unitDownMain.Parent = player.PlayerGui.MaskGUI.Notifications
local unitDownText = "< :: [ALERT] Biosignal lost for stabilization team unit "..rank.." at "..zone.." :: >"
for i = 1, #unitDownText do
unitDown.Text = string.sub(#unitDownText, 1, i)
wait(0.002)
end
local zone = plr.LocalRegion.Value
event:FireAllClients(plr, zone, rank)
``
Rank is a local inside of script set based on isingroup and rank inside of it.