#Data saving acting weird (tycoon)

1 messages · Page 1 of 1 (latest)

unkempt stratus
#

When I join the game for the first time, the building when buying a dropper or anything with a button works. But when I come back to the game a second time, I can’t see the objects spawn when I buy them but they still are there when I use the server view. It used to work well I'm not sure what caused that. Maybe I changed something on accident. I really can't tell. Here's the data saving script:

unkempt stratus
covert edge
#

ah wait i read that bad i didn't see tycoon in the parameters

unkempt stratus
#

I meant i destroy it when people leave

covert edge
#

is it possible for you to send a video?

unkempt stratus
#

also here's the button buy script:

unkempt stratus
unkempt stratus
#

they still get added to purchases

#

and I can see them from server view

covert edge
unkempt stratus
#

yes

unkempt stratus
covert edge
#

the building itself

unkempt stratus
#

and when I load back a third time, they are there. I mean when the data script load the tycoon they are there

unkempt stratus
#

the animation is on client

covert edge
#

i see

#

if your animation is in the same local script that is erroring in output

#

then that's why you aren't seeing anything, the script errored before the animation function ran

unkempt stratus
covert edge
unkempt stratus
#

oh

covert edge
#

yes the server places it, you take the building and animate it

#

but the local script is offline

#

so you see nothing

#

it errors at line 2 so your events hasn't established a connection

unkempt stratus
#

that's weird 🤔

unkempt stratus
#

One that is independant from the other things

covert edge
unkempt stratus
#

@covert edge wanna go in dm?

#

I can screenshare if you want

covert edge
#

nah keep it in the post for others to see

unkempt stratus
#

okok

covert edge
#

i'm just trying to help where i can, not the best sorry

unkempt stratus
#

it's all right you seem good

covert edge
#

my last guess is the server script that errors before you fire to client

unkempt stratus
#

hmmm I'm trying to see if anything is erroring

#

theres those

#

but I don't think they are the probleme since it was working before and still doing those errors

covert edge
# unkempt stratus

the function that is erroring for these buttons, is it there you're firing to client for animation?

covert edge
#

well i don't know what else

unkempt stratus
#

it's ok thanks for the help

covert edge
#

best thing i can tell you now is to just keep output clean, fix all your errors and add some prints in important places.

unkempt stratus
#

@covert edge the part's transparency are set to 1

#

that's why I can see them

#

but CanCollide = true and I can't touch them

#

that'ss weird

unkempt stratus
#

also when I enable the local scripts for the animation I can buy the thing and they are there it works without the animation

#

Fixed

#

finaly