Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Change Camera View Button?

Asked by 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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)
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. OfficialCRUGG -5 — 7y
0
not to be rude but this is why you should learn how to script hiimgoodpack 2009 — 7y
0
Well Offical I am not going to make everything for you. Developer_Kai 11 — 7y
Ad

Answer this question