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

Change Camera View Button?

How can i code a button that switches the camera view between the normal and one and a static camera, for e.g. facing a stage or something?

1 answer

Here is what you do. If you want it client sided then just make a local script.

script.Parent.MouseButton1Click:Connect(function() --When the player clicks it 
game.Workspace.Camera.CameraSubject =                             --path to a certan part
end)

if you want to switch it back to normal do this

script.Parent.MouseButton1Click:connect(function()
game.Workspace.Camera.CameraSubject = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
end)

3 comments

0

I dont understand the part where I switch to a static camera, I don't understand what I have to put after the '='. And how can I make ONE button that switches between the both cameras.

0

not to be rude but this is why you should learn how to script

0

Well Offical I am not going to make everything for you.

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