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

How to run a gui in this camera movement? SOLVED

Asked by 10 years ago
local target = workspace.BasePlate
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
--camera.Focus = CFrame.new(target.Position)
local angle = 0
local i = 0


while wait() do
    camera.CoordinateFrame = CFrame.new(target.Position)  --Start at the position of the part
                            * CFrame.Angles(0, angle, 0) --Rotate by the angle
                            * CFrame.new(0, 200, 500)       
    --camera.Focus = CFrame.new(target.Position)
    angle = angle + math.rad(1)

    i = i + 1
    if i > 1000 then break end
end

I've been getting help on Roblox wiki to perform this, but now I want to add a screenGui, so do I just do this

if camera > 450 then

And add a Instance.new screengui and text box or is there any other way? Thank you for your help!

Answer this question