Property is undefined

i was trying to make an overlay show the value of a counter but it did not work.

so I was debugging and set a text device and set text to → create text with {Time: } {property → 123}

counter sets property to 123

but i see Time: undefined when i play the game

is this fixable?


this isnt really a bug this could just be your system being made wrong. And there are guides on how to maker timers

1 Like

Hm… Did you put the overlay to the “Text?”

1 Like

Is your property a number type? If it’s text that might be the reason it’s saying undefined, since the code starts whining if you mix two values.

1 Like

so i posted the pictures im confused can you first look at the pictures and then tell me whats wrong?

im trying to set a text device to Time: <proerty of 123>

What was your desired output?

Time: 68
or
Time: 1:08

If it was 68, then either first check if your property is a number type, I’m not sure if counters can update text, and also, in the block code you posted, make sure to use the Convert Numbers To Text With Commas like this

[convert numbers to text with commas] get property: 123.

This should convert your number back to text so you can place splice it with the text string.

do you have a property named 123?

@Toothless Time: 68
@Colton yes? i don’t think its the name because if i rename it to test it still doesn’t work

Try taking a look at a guide i made and maybe you can spot flaws in your system you may have missed.

also do you mind showing an image of your property
(offline)

@colton wdym by image of property? also since im in class i might not be able to respond quickly until 2 pm eastern time but ill try my best

Show me your settings of the property.

this and the block is the only thing that has the property?

I think its because of your property. If the property is a number, you must use set number to text (with commas).

not that i mean the PROPERTY device


This device
this is what you might be missing. if you dont have this none of the other stuff will function

4 Likes

Yeah you need one of these devices, or the property has no value, and is essentially a name with no meaning.

3 Likes

OH i need that for it to function! ok then! i’ll try that

1 Like

Yes make sure you name it “123” also it must be a number type property

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.