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

I tried making a press play cutscene but camera wont budge?

I'm trying to make a menu screen for my game. I tried making it so when you ckick a button, the camera changes to your defualt camera. Ex: You click a button gui and then the button dissapears and the menu camera gets deleted. I tried doing this but it wont work? Click to close menu Code:

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent:Destroy()
	game.StarterPack.LocalScript.Disabled = true
end)

Camera Code:

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera

repeat wait()
    Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.Camera1.CFrame

If you can help, please do.

1 answer

Does the camera code fully work? Is it an issue with the mouse click script? You can use tween service to tween the camera?

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