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

Why can I not make something clone and go into currentcamera and not access it?

Asked by 10 years ago

Here is the script:

if game.Lighting:FindFirstChild("Map") then
    local map = game.Lighting.Map:Clone()
    map.Parent = Workspace.CurrentCamera
    map.Name = plr.Name .. "map"

and the part where I access it:

if game.Workspace.CurrentCamera:FindFirstChild(game.Players.LocalPlayer.Name .. "map") then
local ww  = game.Workspace.CurrentCamera:FindFirstChild(game.Players.LocalPlayer.Name .. "map")

1 answer

Log in to vote
0
Answered by
RedCombee 585 Moderation Voter
10 years ago

What kind of instance is your map? The first thing you would want to do here is make sure that your map is actually creating itself.

0
The instance is a model and its in current camera. x.x BUT IT ISN'T ACCESSIBLE. deputychicken 226 — 10y
Ad

Answer this question