So it says Mouse MouseButton1Click isn't valid member of TextButton but its a Text button so why doesn't it work?
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
script.Parent.Mousebutton1Click:Connect(function()
script.Parent.Parent.Parent:WaitForChild("Frame").Visible = true
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame
script.Parent.Frame.TextButton.MouseButton1Click:Connect(function()
script.Parent.Frame.Visible = false
end)
end)

2 comments
Ohhhhhh Oof
accept pls