this script is local script and its located in startergui
1 | workspace.tomekczShop.Part.Touched:Connect( function (player) |
2 | if player.Parent:FindFirstChild( "Humanoid" ) ~ = nil then |
3 | workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable |
4 | workspace.CurrentCamera.CameraSubject = workspace.Laptop 2. CameraPart |
5 |
6 | script.Parent.ScreenGui.Backround.Visible = true |
7 | end |
8 | end ) |
It set camera to scriptable but does not move into this part pos
You should set the camera's CFrame to where you want it to go.
1 | workspace.tomekczShop.Part.Touched:Connect( function (player) |
2 | if player.Parent:FindFirstChild( "Humanoid" ) ~ = nil then |
3 | workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable |
4 | workspace.CurrentCamera.CFrame = workspace.Laptop 2. CameraPart.CFrame |
5 |
6 | script.Parent.ScreenGui.Backround.Visible = true |
7 | end |
8 | end ) |