Someone help me with this

Someone help me on this issue. I don’t really understand about Scripting.

where I created a Pet Shop, which uses a daily time where if the time runs out and rewinds the time then the pet will automatically change

but i have a problem in this can you guys help me by opening my Roblox Studio File

and let me know if you can fix it, send me Studio File

File Studio
ShopPet.rbxl (161.2 KB)

You can see first where the error lies
Video

It works for me after I reset. Can you show me your full output?

please help me sorry tag you without permission @dduck5tar

1 Like

It works after a reset because a new set of LocalScripts will be copied into the player, i.e. making the out-of-scope code that fills the billboard to execute once more.

The OP wants the billboard to reset on the timer event which it simply cannot do using the code as it is, see line 70 in the LocalScript “HatchClient”.

1 Like

Here is a working place that fires the ShopRE event and resets the shop on the timer event, all that was required was to encapsulate the out-of-scope code that begins on line 70 in a function definiton, and then bind it to a RemoteEvent. I still don’t condone using the code, but here you go.

ShopPet_dduck5tar.rbxl (160.9 KB)

I removed the datastore stuff because I didn’t want to publish the place. There are still issues using the place I provided. If you monitor “EggBillboards” that is parented to “EggSystem” in the local copy of “PlayerGui” you will see that the Billboard is not emptied before it resets.

1 Like

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