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

Play button wont disable mainmenu camera??

So i am trying to make a game and for the main menu i put a camera and a play button i but a script in that if i press the play button the camera gets destroyed nothings going on in the output or anything so i honestly don't know whats going on.

script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.Parent.Workspace.CameraPos.Camera:Destroy() end)

2 comments

0

u will have to give the other script also, I dont honestly understand

0

You are only destroying a the camera subject I'm assuming? Change the actual camera properties back to their original ones.

1 answer

First you need to put this script in ServerScriptService because that is way to cluttered. I am guessing you put the gui in StarterGui but if not, make sure to tweak the script.

local button = game.StarterGui.ScreenGui.Frame.TextButton
local cam = workspace.CurrentCamera

button.MouseButton1Up:Connect(function()
	--set the settings back to normal

Basically you just need to set the settings back to normal.

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