Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Works in studio not Ingame?

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

2 comments

1

ServerStorage cannot be accessed by local scripts

1

If you're trying to make a local part, just make your game FE then create a part in a local script.

1 answer

✓ Accepted answer

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

2 comments

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!

0

Glad I could help!

This discussion is preserved as it was. New answers, comments, and votes are closed.