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.
First of all. Put the long script directly in starterGui, not in the screenGui. And can you sen a picture of the script.
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?
And the other picture?..
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)
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.591 - Stack End