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

Help with cframing parts with lookvector of the camera?

Asked by
Nickoakz 231 Moderation Voter
9 years ago

I'm trying to make cartoon effects to this tiny map, where the border of the block is black. You should never see a black part in front of any part. How do you do this to the camera?

So far, this is what I managed. Yet, the parts stay and don't move away from the cam.

local plr=game.Players.LocalPlayer.Character
local cam=Workspace.CurrentCamera
game:GetService('RunService').Stepped:connect(function()
    if cam:findFirstChild("Carto")~=nil then
        cam.Carto:Destroy()
    end
    n=Instance.new("Model",cam) n.Name="Carto"
    local all=Workspace.Model:getChildren()
    for a=1,#all do
        local p=all[a]:Clone()
        p.CFrame=all[a].CFrame+Vector3.new(cam.CoordinateFrame)
        p.Parent=cam.Carto
    end
end)
0
Can you try rephrasing your words so that I may try to help? HexC3D 830 — 9y

1 answer

Log in to vote
0
Answered by
wetrel 15
9 years ago

Study this! http://www.roblox.com/DeadzoneZackZaks-Cartoon-Shader-Remake-Open-So-place?id=25821538

Ad

Answer this question