|
| 21 Feb 2015 05:16 PM |
1|wait(1) 2| 3|local player = game.Players.LocalPlayer 4|--local gui = player.PlayerGui.Gui 5|local c = game.Workspace.CurrentCamera 6|local items = c:FindFirstChild("_Localize") 7|if (not items) then 8| items = game.ServerStorage._Localize:Clone() 9| for _,v in pairs(items:GetChildren()) do 10| for _,v2 in pairs(player.DoNotLocalize:GetChildren()) do 11| if (v.Name == v2.Value) then 12| v:Remove() 13| end 14| end 15| end 16| items.Parent = c 17| items:MakeJoints() 18|end
18:15:06.258 - _Localize is not a valid member of ServerStorage 18:15:06.259 - Script 'Players.Player1.PlayerGui.Gui.Intro.LocalObjects', Line 8 18:15:06.260 - Stack End
|
|
|
| Report Abuse |
|
|
|
| 21 Feb 2015 05:22 PM |
Sorry, posted the wrong error:
18:20:35 -- ServerStorage is not a valid member of DataModel 18:20:35 -- Script 'Players.Rocky28447.PlayerGui.Gui.Intro.LocalObjects', Line 8 18:20:35 -- Stack End |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2015 05:27 PM |
| LocalScripts can't access ServerStorage. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 21 Feb 2015 05:28 PM |
| If you want local scripts to be able to access something, put it in ReplicatedStorage. |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2015 05:29 PM |
Ohhh. Then what should I use instead?
People screamed at me for using Lighting so I used ServerStorage. |
|
|
| Report Abuse |
|
|
| |
|