#can someone make a me a settings gui?

26 messages · Page 1 of 1 (latest)

spiral silo
#

idk how to code AT ALL

cinder hound
#

no

urban glen
#

sure for 50R$

shadow belfry
#

sure

#

first go into startergui then add a ScreenGui inside that add a TextButton or ImageButton

#

inside add a script

#

btw place the image button to the left in my opinion for better area look

#

then add this script local button = script.Parent
local settingsFrame = script.SettingsFrame

button.MouseButton1Click:Connect(function()
settingsFrame.Visible = not settingsFrame.Visible
end)
and name your frame SettingsFrame

crude houndBOT
#

studio** You are now Level 1! **studio

shadow belfry
#

then for the exiting the fram put a text or image button

#

and add the script

#

local closeButton = script.Parent

closeButton.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)

#

and for the settings

#

heres a simple one

#

day and night

#

inside of settingsframe add a text button

#

name it day

#

inside add a script

#

heres the day local button = script.Parent
local lighting = game.Lighting

button.MouseButton1Click:Connect(function()
lighting.ClockTime = 12
lighting.Brightness = 1.5
lighting.TimeOfDay = "12:00:00"
end)

#

then repeat. add text button inside of settingsframe and name it night then add a script

#

then do this local button = script.Parent
local lighting = game.Lighting

button.MouseButton1Click:Connect(function()
lighting.ClockTime = 22
lighting.Brightness = 0.4
lighting.TimeOfDay = "22:00:00"
end)

#

customize the lighting thing if you dont like it

#

and the colors for a better look

#

btw make the settingsframe invisible by going into its settings and press visible so its not active

#

oops change the script that makes the settings visible to local button = script.Parent
local settingsFrame = script.Parent.SettingsFrame

button.MouseButton1Click:Connect(function()
settingsFrame.Visible = true
end)

#

and change both the one that makes it visible and not visible to local scripts and make the close script to local closeButton = script.Parent

closeButton.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)