Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

models cloned from ReplicatedStorage missing values?

Asked by 9 years ago

It's an odd problem, I'm making these deployable objects like MediPacks and Pulse-Mines, which have a model stored in ReplicatedStorage that gets cloned and plopped where you use the tool at, and whenever I use them in game, the output says that any value, say a boolvalue, inside the model that it needs to refer to no longer exists? When trying them in-studio they work fine, doing their job of healing/damaging, respectively. But as soon as I try to use then outside of studio's testing mode, apparently the values vanished. They are indeed archiveable, as well.

Is there some bug with replicatedStorage not saving values properly? Give me a minute and I'll add the model in question to this post, if need be.

Edit: This is the model. Place the one with green lines on it into ReplicatedStorage.

http://www.roblox.com/broken-item?id=237424214

0
Ah bugger, now I've realized that RCL team-damage-off guns don't even damage humanoids for NPCs so my destroyable mine concept is ruined anyways. Maxwell_Edison 105 — 9y

1 answer

Log in to vote
2
Answered by 9 years ago

A common problem in online mode is that parts don't always load immediately. Try using "WaitForChild" instead of trying to access the BoolValue directly.

0
Thanks. Seems values don't load very fast. Works now. Maxwell_Edison 105 — 9y
Ad

Answer this question