How to make a play button GUI, with a special camera to view a certain area

Did you remove the code i just send from the original script?

I think I do…
I have this in a LocalScript:
Camera.CameraType = Enum.CameraType.Custom

script.Parent.MouseButton1Click:Connect(function()

end)

Same with this:
local CameraPart = workspace.CameraPart

local Camera = workspace.CurrentCamera

repeat Camera.CameraType = Enum.CameraType.Scriptable

until Camera.CameraType == Enum.CameraType.Scriptable

Camera.CFrame = CameraPart.CFrame

script.Parent.MouseButton1Click:Connect(function()
    Camera.CameraType = Enum.CameraType.Custom
end)

The original script should look like this.

Camera.CameraType = Enum.CameraType.Custom

script.Parent.MouseButton1Click:Connect(function()

end)

That’s what I have, I really don’t know what’s going on…

As I said, API is open so anyone can edit.

Change it to what i said and test it.

No, It’s still not working.

Output:
15:15:02.537 - Players.Disparrel.PlayerGui.ScreenGui.LocalScript:4: Expected ‘=’ when parsing assignment, got ‘original’

First of all. Put the long script directly in starterGui, not in the screenGui. And can you sen a picture of the script.

Here’s pictures of both scripts:


The last line in the first script should be removed and the script should be moved to the button.

Edit: Nvm, don’t move it.

Still not working, and I did everything needed that was needed to be changed…

Can you send new pictures and mark the script that you are showing?

Highlighted blue is the script I’m showing in this image:

And the other picture?..

(303030303303030chars)

Oh right, Copy the variables from the long script in to the short script. But don’t remove them from the long one.

Which ones are the variables? I don’t know how to script, just needed to do this small thing really fast, so I’m truly confused.

local CameraPart = workspace.CameraPart
local Camera = workspace.CurrentCamera

Done, and tested. Still not working.

Can you show me the output? (303033030303033)

Loading Tree Gen…

Finished Loading Tree Gen

Loading Tree Gen…

Finished Loading Tree Gen

15:28:17.092 - Touched is not a valid member of ServerScriptService

15:28:17.093 - Stack Begin

15:28:17.096 - Script ‘ServerScriptService.Script’, Line 36

15:28:17.096 - Stack End

15:28:22.589 - Cannot Teleport in the Roblox Studio.

15:28:22.590 - Stack Begin

15:28:22.590 - Script ‘Players.Disparrel.PlayerGui.ScreenGui.ImageButton.TextButton.LocalScript’, Line 3

15:28:22.591 - Stack End