Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Textbutton can't be clicked?

This script won't connect

script.Parent.MouseButton1Down:Connect(function()
	game.Workspace.CurrentCamera.CameraSubject = 			
        game.Players.LocalPlayer.Character.Humanoid
        game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
end)

2 answers

You miss typed

Should look like this:

script.Parent.MouseButton1Down:connect(function()
    game.Workspace.CurrentCamera.CameraSubject = 
game.Players.LocalPlayer.Character.Humanoid
    game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
end)

Use a localscript

and why don't you just do

game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid

instead of indenting

This discussion is preserved as it was. New answers, comments, and votes are closed.