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

Works in studio not Ingame?

Asked by
NexeusX 137
8 years ago

This works in studio fine, but ingame it does not wan't to work, and yes i have tried using a local script, but the local script does not work in studio or ingame?

wait(1)
Zone1 = game.ServerStorage.Zone_1:Clone()
wait(.1)
Zone1.Parent = game.Workspace.Camera

1
ServerStorage cannot be accessed by local scripts User#5423 17 — 8y
1
If you're trying to make a local part, just make your game FE then create a part in a local script. Perci1 4988 — 8y

1 answer

Log in to vote
1
Answered by
NRCme 0
8 years ago

try this:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
wait(1)
local Zone1 = ReplicatedStorage.Zone_1:Clone()
wait(.1)
Zone1.Parent = workspace.CurrentCamera

although this is based on the fact that you want to add it to the local players camera

Put this in a LocalScript

0
Ok i see what i did wrong, couldn't use serverstorage and i didn't use "local" when i made the script thanks a lot! NexeusX 137 — 8y
0
Glad I could help! NRCme 0 — 8y
Ad

Answer this question