Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Error About Imageoffest and emojis not showing?

Heres the script :

script.Parent.Text = game.Players.LocalPlayer.leaderstats.Cash.Value

game.Players.LocalPlayer.leaderstats.Cash.Value.Changed:Connect(function()
	script.Parent.Text = "*emoji*"..game.Players.LocalPlayer.leaderstats.Cash.Value.."*emoji*"
end)

1 answer

If Cash is a NumberValue or an IntValue, you need to convert it into a string in order to concatenate other strings with it:

script.Parent.Text = game.Players.LocalPlayer.leaderstats.Cash.Value

game.Players.LocalPlayer.leaderstats.Cash.Value.Changed:Connect(function()
    script.Parent.Text = "*emoji*".. tostring(game.Players.LocalPlayer.leaderstats.Cash.Value).."*emoji*"
end)

1 comment

0

Doesn't Lua automatically do this?

This discussion is preserved as it was. New answers, comments, and votes are closed.