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

ServerStorage is not a valid member of data model?

Asked by
lucas4114 607 Moderation Voter
8 years ago

So, I have this for my gun:

Bullet = game.ServerStorage.RocketBullet1:Clone() 

It WORKS when I play in studio, but in game it doesn't work... :/ Output says this: 13:17:32 -- ServerStorage is not a valid member of DataModel This is in a local script.

1 answer

Log in to vote
1
Answered by
NotSoNorm 777 Moderation Voter
8 years ago

[EDIT]

I forgot! You can't access ServerStorage from a localscript hence the name ServerStorage What you should do is use ReplicatedStorage

0
ReplicatedStorage Acts the same way as ServerStorage, Right?... lucas4114 607 — 8y
0
Yes I belive NotSoNorm 777 — 8y
Ad

Answer this question