#3D Main Menu

68 messages · Page 1 of 1 (latest)

vague gazelle
#

and here's the script

#
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local StarterGui = game:GetService("StarterGui")

local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer.PlayerGui

local MenuGuis = StarterGui.Menu

local Credits = MenuGuis.Credits:Clone()
local MainMenu = MenuGuis.MainMenu:Clone()

Credits.Parent = PlayerGui
MainMenu.Parent = PlayerGui

local Camera = workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable

local GoTo = Instance.new("StringValue")
GoTo.Value = "MainMenu"
GoTo.Name = "GoTo"
GoTo.Parent = Camera

local Menu = workspace.GUI
local CameraParts = Menu:WaitForChild("CameraParts")

local Remotes = ReplicatedStorage.Remotes

Camera.CFrame = CameraParts[GoTo.Value].CFrame
RunService.RenderStepped:Connect(function()
    local GoToPosition = CameraParts[GoTo.Value].CFrame
    GoToPosition += Vector3.new(math.cos(tick() * 5) * .1, math.cos(tick() * 5) * .1, math.cos(tick() * 5) * .1)

    Camera.CFrame = Camera.CFrame:Lerp(GoToPosition, .1)
end)

local playBtn = MainMenu.PlayButton
local creditsBtn = MainMenu.CreditsButton
local backBtn = Credits.BackButton.Button

local function regButton(Button: TextButton)
    Button.MouseButton1Click:Connect(function()
        GoTo.Value = Button.Name
    end)
end

regButton(creditsBtn)
regButton(backBtn)```
#

I just have no idea

#

everything looks good

carmine cosmos
#

guess what

#

you would not believe this

#

MainMenu is not a valid memer of Folder Workspace.GUI.CameraParts

#

lol jk

#

just do :WaitForChild()

#

the part may not have been loaded in yet

#

also thats a damn complicated way of making a camera tween 💀

vague gazelle
carmine cosmos
visual shore
#

you just do :WaitForChild("MainMenu")

carmine cosmos
#

aka the line that errors

visual shore
#

instead of doing .MainMenu

vague gazelle
carmine cosmos
visual shore
vague gazelle
#

not copied

visual shore
#

bro...

vague gazelle
#

I donno why you people are judging everyone without even knowing anything about what they did etc

visual shore
#

you didnt know where to put waitforchild

vague gazelle
visual shore
#

i mean im not judging but waitforchild is a basic thing

visual shore
#

its a basic thing you just gotta know

#

and a 3d main menu is just hard, cause you gotta use CurrentCamera, need to understand Vector3 for that, make the player not move and stuff

carmine cosmos
#

it seems like you dont understand parts loading

#

i doubt you understand lerp and cframes

#

even if it isnt copy paste its someone else's code, you just copied it very slowly

tall kelp
#

😭

#

yea typing it out doesn't make u understand it better

#

legit just watch a 40 min yt video on basic scripting it'll help a lot for modifying scripts even if u wont be able to write ur own yet

carmine cosmos
#

id say its better to go devforum / official tuts

tall kelp
#

yea some r good for basics then go to dev forum yea

visual shore
carmine cosmos
#

the official roblox tutorials are good

#

those in the same website as the api

visual shore
#

Beginner's Roblox Scripting Tutorial #1 - Roblox Studio Basics (Beginner to Pro 2019)

Link to Beginner's Tutorial Series:
https://www.youtube.com/playlist?list=PLhieaQmOk7nIfMZ1UmvKGPrwuwQVwAvFa

Link to download Roblox Studio:
https://www.roblox.com/create

Social Media:
https://twitter.com/realtapwater
https://instagram.com/realtapwater

New...

▶ Play video
visual shore
visual shore
#

yeah the first preview of the obby looked good

#

WOW

#

THEY EXPLAIN BLENDER???? :

carmine cosmos
#

looks like it

visual shore
#

its advanced blender stuff

carmine cosmos
#

looks like

#

it has a laser tag placew

visual shore
#

im even too stupid to understand the basics 😭

carmine cosmos
#

which you complete

#

with already made functions

carmine cosmos
#

jk

visual shore
#

nah i actually do not understand these yt tutorials it takes sooo long to understand everything

#

so many keybinds to remember

carmine cosmos
#

like

#

explaining stuff

#

its just watch someone do it while kinda explaining it