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

Click Detector wont show up with "Scriptable" Camera?

Asked by 9 years ago

Im trying to make a ISOmetric game and everything is working perfectly EXCEPT that i cant use click detector or surface GUI's the hover icon does not show up.

Here is the camera code i found modified it a tiny bit. Original owner is DevelopmentStatus

local Target = script.Target.Value
local dir = CFrame.Angles(math.pi/4, math.pi/4, 0)
local shifte = CFrame.Angles(0, math.pi/2, 0)
local shiftq = CFrame.Angles(0, -math.pi/2, 0)

local localplayer = script.Parent.Parent
local angle = 0
local view = true

function center()
    return (Target) or Vector3.new()
end

workspace.CurrentCamera.FieldOfView = 4 --FieldOfView-->5
workspace.CurrentCamera.CameraType = 'Scriptable'
while wait(1/60) do
    workspace.CurrentCamera.CameraType = 'Scriptable'
    workspace.CurrentCamera:Interpolate(
        CFrame.new(center() + (CFrame.Angles(0, math.pi/4+math.pi/2*angle, 0).lookVector + Vector3.new(0, 1, 0))*1000, center()), --1000
        CFrame.new(center(), center()),
        0.01
    )
end

is there anyway to turn on clickable items with this type of camera?

0
I'm not sure. There might be a way to change the click max distance, but I have no clue to be honest.. TheHospitalDev 1134 — 9y

Answer this question