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

attempt to call a number value????

script.Parent.Text = "You have " - script.Parent.kills.Value "Kills!"

This Script inside TextLabel "Value" in ScreenGui "kills" attempts to call a number value called "kills" and its Value, while making "Value"'s Text to "You Have x Kills!" x as the number value.

Also, the error i get is the title of this question.

1 answer

✓ Accepted answer

Remember that you cant join numbers with strings,so first you will need to convert your value into a string value

local Kills = tostring(script.Parent.kills.Value)
script.Parent.Text = "You have "..Kills.." Kills!"

Hope it helps

1 comment

0

cool it now says "You have 0 Kills!"

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