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

Can't set camera seetings? if it's in scriptable mode

Asked by
tomekcz 174
5 years ago

this script is local script and its located in startergui



workspace.tomekczShop.Part.Touched:Connect(function(player) if player.Parent:FindFirstChild("Humanoid") ~= nil then workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable workspace.CurrentCamera.CameraSubject = workspace.Laptop2.CameraPart script.Parent.ScreenGui.Backround.Visible = true end end)

It set camera to scriptable but does not move into this part pos

0
Do you know how misleading `player` is User#24403 69 — 5y
0
you dont need to set the CameraType to scriptable to set the CameraSubject, just leave it as Custom User#23365 30 — 5y
0
also CameraSubject isnt CFrame User#23365 30 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

You should set the camera's CFrame to where you want it to go.

workspace.tomekczShop.Part.Touched:Connect(function(player)
    if player.Parent:FindFirstChild("Humanoid") ~= nil then
        workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable         
        workspace.CurrentCamera.CFrame = workspace.Laptop2.CameraPart.CFrame

        script.Parent.ScreenGui.Backround.Visible = true
    end
end)
Ad

Answer this question