Recently, I’ve been working on a script that displays a plane in the sky for an event that happens. The plane has a part with two SurfaceGuis on it that have a player’s profile icon and a Textlabel which is where I want the Robux icon.
There is a back and a front SurfaceGui for each side.
However, In my code when I attempt to change the text of the TextLabel, to:
Text = "\u{E002} " .. amount
It changes, but it adds an extra character to look like this:
How could I fix this issue?
Full Code for Plane Script:
local plane = game:GetService("ReplicatedStorage"):WaitForChild("Plane"):Clone()
plane.Parent = workspace
local color = Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
pcall(function()
for i, v in pairs(plane.Earth.Color:GetChildren()) do
v.Color = color
end
end)
pcall(function()
local image = game:GetService('Players'):GetUserThumbnailAsync(userid, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
plane.Earth.MONEY.front.a.Image = image
plane.Earth.MONEY.front.b.Text = "\u{E002} " .. amount
plane.Earth.MONEY.back.b.Image = image
plane.Earth.MONEY.back.a.Text = "\u{E002} " .. amount
end)
debris:AddItem(plane, 300)
Quick note, this is a function that is called within a MessagingService:SubscribeAsync Event.