#Attempt to index string with Value. Who help me to fix this?

35 messages · Page 1 of 1 (latest)

scenic marlin
#

you cut off the console output before it said where the error is

#

nvm i cant read

#

ok, what is Status

#

@half flume

half flume
#

It is a value string that is inside replicated storage

scenic marlin
#

ok a StringValue

#

can you show me lines 1-3 just so i know how you defined it

#

it looks like you set the .Value correctly, my only guess is that you might have defined the actual Status object reference incorrectly

#

@half flume give lines 1-3 pretty pls

half flume
#

A

#

i found the error

scenic marlin
#

oh what was it

half flume
#

Is here

scenic marlin
#

ahhh

half flume
#

Status = "game over"

scenic marlin
#

soft typecasting can mess you up

half flume
#

The correct one would be status.Value = "gamer over"

scenic marlin
#

you unintentionally changed it from an object reference to a string, yeah

half flume
#

thank you so much man

#

for the attention

#

❤️

native coral
#

“Countdown = Countdown -1” 💀

half flume
#

👍

vapid stone
#

studio** You are now Level 1! **studio

native coral
#

Why not use -= 💀

scenic marlin
#

yeah for future reference if youre doing something like that you can just use Countdown -= 1

half flume
#

Oh ok

#

I'm new to roblox studio, I don't understand much

scenic marlin
#

it just takes the value and adds or subtracts the stuff on the right of the equals sign

#

most languages have some version of it

half flume
#

Ooh

#

Ty bro

#

I will use this