im new on making scripts and i try my best to do it on my own, but i can't understand anything the output is telling me, here's the script i made (there's only one dummy in the workspace and a screengui with a button):
`local Dummy1 = workspace.Dummy1 local camera = workspace.CurrentCamera local player = game:GetService("Players") local Spectate = script.Parent local ScreenGui = game.StarterGui.ScreenGui local ExitSpect = ScreenGui.ExitSpect local ChangeButton = ScreenGui.ChangeButton local ChangeButtonLeft = ScreenGui.ChangeButton.ChangeButtonLeft local ChangeButtonRight = ScreenGui.ChangeButton.ChangeButtonRight
Dummysheadpostiion = Dummy1.Head.Position
script.Parent.MouseButton1Click:Connect(function() camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = Dummysheadpostiion`

1 comment
not a request site, also use code blocks