Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

3 comments

0

Do you know how misleading player is

0

you dont need to set the CameraType to scriptable to set the CameraSubject, just leave it as Custom

0

also CameraSubject isnt CFrame

1 answer

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.