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

Attaching model to camera help?

Asked by
NotSoNorm 777 Moderation Voter
8 years ago

I'm trying to attach a model to the camera so when the camera moves, the the model moves with it (two studs from camera)

No errors but of course, nothing happening.

It's a LocalScript in StartPack:

local camera = workspace.CurrentCamera
local blurmodel = game.ReplicatedStorage.Inserter:Clone()
blurmodel.Parent = camera --Make it a local part


camera.Changed:connect(function()
    blurmodel:SetPrimaryPartCFrame(camera.CoordinateFrame*CFrame.new(0,0,2))
end)

Answer this question