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

How i make a camera button to do the camera around?

Asked by 6 years ago
Edited 6 years ago

You need to put the ScreenGui into StarterGui and put the ImageButton or TextButton into the ScreenGui. Add a LocalScript into the TextButton or ImageButton.

Camera = workspace.CurrentCamera script.Parent.MouseButton1Click:connect(function() Camera.CFrame = CFrame.new(0,5,0) end)

0
I have no idea what you are asking for but this may help you. http://robloxdev.com/articles/Camera-manipulation benben3963 6 — 6y
0
Connect not connect. Also stop copying me. User#19524 175 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I personally are not sure what you're asking, but I think it might be this (or something related).

This script resets the camera if something has happened to it and the game is not displaying properly.

function buttondown()
game.Workspace.CurrentCamera:remove()
wait(.1)
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
end

script.Parent.MouseButton1Down:connect(buttondown)

I have this hooked up to a cam fix button which looks something like this in the hierarchy.

ScreenGui-- | Frame-- | CamFix-- | CamFixScript

Which makes it fire when the button is clicked.

I honestly am not sure what the question is asking, but I hope this helped in some way.

0
I need help with the old roblox camera script DontGetTired255 6 — 6y
Ad

Answer this question