How to make MAIN MENU with Camera Effect | Roblox Studio Turorial #3

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024

ความคิดเห็น • 53

  • @Preamac
    @Preamac 9 หลายเดือนก่อน +5

    WOW i subbed and liked! This really helped me!

    • @deciq_z
      @deciq_z  9 หลายเดือนก่อน

      Tysm! 🥰

    • @MatthewPhaneuf
      @MatthewPhaneuf หลายเดือนก่อน

      @@deciq_z can u help me with this it wont work for me idk why🤨🤨🤔

  • @inakiuhi3154
    @inakiuhi3154 9 หลายเดือนก่อน +15

    local RunService = game:GetService("RunService")
    local players = game:GetService("Players")
    local CameraPart = workspace:WaitForChild("CameraPart")
    local CurrentCamera = workspace.CurrentCamera
    local LocalPlayer = players.LocalPlayer
    local Mouse = LocalPlayer:GetMouse()
    local GUI = script.Parent
    local PlayButton = GUI.PlayButton
    local MOVE_SPEED = 150
    local function UpdateCamera()
    local Center = CameraPart.CFrame
    local MoveVector = Vector3.new((Mouse.X - Center.X)/MOVE_SPEED, (Mouse.Y - Center.Y)/MOVE_SPEED, 0)
    CurrentCamera.CFrame = CameraPart.CFrame * CFrame.Angles(math.rad(-(Mouse.Y - Center.Y)/MOVE_SPEED), math.rad(-(Mouse.X - Center.Y)/MOVE_SPEED), 0)
    end
    local Connection = RunService.RenderStepped:Connect(UpdateCamera)
    PlayButton.Activated:Connect(function()
    Connection:Disconnect()

    GUI:Destroy()
    end)

  • @Travellerthattravels
    @Travellerthattravels 7 หลายเดือนก่อน +3

    Thank you a ton be trying to make something for my game like this forever

  • @ColdMangoTea
    @ColdMangoTea 11 หลายเดือนก่อน +18

    Here is the full script
    local RunService = game:GetService("RunService")
    local players = game:GetService("Players")
    local CameraPart = workspace:WaitForChild("CameraPart")
    local CurrentCamera = workspace.CurrentCamera
    local LocalPlayer = players.LocalPlayer
    local Mouse = LocalPlayer:GetMouse()
    local GUI = script.Parent
    local PlayButton = GUI.PlayButton
    local MOVE_SPEED = 150
    local function UpdateCamera()
    local Center = CameraPart.CFrame
    local MoveVector = Vector3.new((Mouse.X - Center.X)/MOVE_SPEED, (Mouse.Y - Center.Y)/MOVE_SPEED, 0)
    CurrentCamera.CFrame = CameraPart.CFrame * CFrame.Angles(math.rad(-(Mouse.Y - Center.Y)/MOVE_SPEED), math.rad(-(Mouse.X - Center.Y)/MOVE_SPEED), 0)
    end
    local Connection = RunService.RenderStepped:Connect(UpdateCamera)
    PlayButton.Activated:Connect(function()
    Connection:Disconnect()

    GUI:Destroy()
    end)

    • @sour_axolotl
      @sour_axolotl 9 หลายเดือนก่อน +3

      lifesaver.

    • @Super_bacon46
      @Super_bacon46 9 หลายเดือนก่อน

      for real@@sour_axolotl

    • @manucrackpro31
      @manucrackpro31 3 หลายเดือนก่อน

      Thanks.

  • @hira-oq7se
    @hira-oq7se ปีที่แล้ว +5

    I keep getting the " Infinite yield possible on 'Workspace:WaitForChild("CameraPart")' " error

    • @deciq_z
      @deciq_z  ปีที่แล้ว +1

      You have to name the part to CameraPart

  • @broily3566
    @broily3566 24 วันที่ผ่านมา

    It's not workinggg helppp I've been working for hourssss😭😭😭

  • @theodore3540
    @theodore3540 7 หลายเดือนก่อน +1

    Why'd you create a vector and not use it?

  • @FlowByteStudios
    @FlowByteStudios 2 หลายเดือนก่อน

    great video thanks

  • @qwexx1253
    @qwexx1253 5 หลายเดือนก่อน +1

    i did all scripts and not working
    why wouldn't you just copy all script?
    and put in the description?

  • @just_jazkie
    @just_jazkie ปีที่แล้ว +2

    i wonder whos that red hat guy anyway?????

  • @Patrick102-m4q
    @Patrick102-m4q 5 หลายเดือนก่อน +1

    how do i put sound

  • @Doodle__Shortslol
    @Doodle__Shortslol 3 หลายเดือนก่อน

    Dev_Deciqz I need help. when I press the start button the camera is bugged
    Please Lmk how to fix!!

  • @Thecreeper8211
    @Thecreeper8211 6 หลายเดือนก่อน

    it wont work i copied every step I named everything the same as you named it, How to fix pls?

  • @Atarulavv
    @Atarulavv 7 หลายเดือนก่อน +3

    is not working😭😭😭😭😭😭 how do u fix that?

    • @SpectroHXD
      @SpectroHXD 2 หลายเดือนก่อน

      Not working

  • @BagOfChipsDude
    @BagOfChipsDude ปีที่แล้ว +3

    Bro why did i spawn on R15? still, thanks, your script worked, im making a game on R6 not R15

    • @DavidPuiu420
      @DavidPuiu420 7 หลายเดือนก่อน

      Game settings > Avatar

  • @ichigoontiming2447
    @ichigoontiming2447 2 หลายเดือนก่อน

    why does my charatcer spawn in first

  • @28kcrzy
    @28kcrzy 2 หลายเดือนก่อน

    Thank you alot

  • @Scullgaming962
    @Scullgaming962 6 หลายเดือนก่อน +1

    what musikc

  • @Imvincenzo.
    @Imvincenzo. ปีที่แล้ว

    hii! im planning on doing a horor game, and i dont really know lua code language, only thing i know to do are proximity prompt dialogues and theres so much to do on a horror ame, would you like to help me? do i need to pay for it?

    • @ryanttrr4856
      @ryanttrr4856 9 หลายเดือนก่อน

      How did ur roblox horror game go?

  • @ella_yep
    @ella_yep ปีที่แล้ว +1

    idk what i did wrong, followed every step but when i clicked play it didnt work (i spent an _hour_ doing the script)

    • @deciq_z
      @deciq_z  ปีที่แล้ว +1

      Im so sorry about it. What is the error you are getting?

    • @ella_yep
      @ella_yep ปีที่แล้ว +1

      @@deciq_z idek im not rlly getting an error it just didnt work

    • @ella_yep
      @ella_yep ปีที่แล้ว +1

      @@deciq_z wait nvm i think i fount jt lmao

    • @Kloud_Services
      @Kloud_Services 9 หลายเดือนก่อน +1

      im getting the sam how did u fix@@ella_yep

    • @WaffleDev-rblx
      @WaffleDev-rblx 4 หลายเดือนก่อน

      @@ella_yep same, with every tutorial i do, none of the scripts work for me

  • @LoucaLouca74
    @LoucaLouca74 4 หลายเดือนก่อน

    Do ur script so that when ur in the gui u cant move , ur invicible and invisible

  • @JoaquimBergamini
    @JoaquimBergamini 2 หลายเดือนก่อน

    😄Thank You

  • @vdk69brawlstars
    @vdk69brawlstars 7 หลายเดือนก่อน

    brooo, :c it doesnt work. I literally copied the script from the comments, did every step u did. I dont have the camera plus the play button aint working. I spent 1 hour to decorate my main menu place and nothing works ;c
    Edit : Nvm It worked!!! looks awesome tysm bro!

    • @Atarulavv
      @Atarulavv 7 หลายเดือนก่อน

      How do u fixed it?

    • @Lucidluca
      @Lucidluca 6 หลายเดือนก่อน

      hey how did you get it to work please?

    • @Thecreeper8211
      @Thecreeper8211 6 หลายเดือนก่อน

      how did you fix it?!?!?!?!?

    • @Doodle__Shortslol
      @Doodle__Shortslol 3 หลายเดือนก่อน

      yo bro how did you fix it?

  • @mrolivia234
    @mrolivia234 2 หลายเดือนก่อน

    2:09 i do not know how.. 💀

  • @Poorly_Made
    @Poorly_Made 7 หลายเดือนก่อน

    bro this sucks i followed all instructions and it didnt work

  • @joaopedro-hw9bl
    @joaopedro-hw9bl 7 หลายเดือนก่อน

    FULL SCRIPT
    local RunService = game:GetService("RunService")
    local players = game:GetService("Players")
    local CameraPart = workspace:WaitForChild("CameraPart")
    local CurrentCamera = workspace.CurrentCamera
    local LocalPlayer = players.LocalPlayer
    local Mouse = LocalPlayer:GetMouse()
    local GUI = script.Parent
    local PlayButton = GUI.PlayButton
    local MOVE_SPEED = 150
    local function UpdateCamera()
    local Center = CameraPart.CFrame
    local MoveVector = Vector3.new((Mouse.X - Center.X)/MOVE_SPEED, (Mouse.Y - Center.Y)/MOVE_SPEED, 0)
    CurrentCamera.CFrame = CameraPart.CFrame * CFrame.Angles(math.rad(-(Mouse.Y - Center.Y)/MOVE_SPEED), math.rad(-(Mouse.X - Center.Y)/MOVE_SPEED), 0)
    end
    local Connection = RunService.RenderStepped:Connect(UpdateCamera)
    PlayButton.Activated:Connect(function()
    Connection:Disconnect()

    GUI:Destroy()
    end)

  • @levonze
    @levonze 5 หลายเดือนก่อน

    Your camera moves too much to right
    Fixed Code
    local RunService = game:GetService("RunService")
    local Players = game:GetService("Players")
    local CameraPart = game.Workspace:WaitForChild("CameraModel"):WaitForChild("CameraPart")
    local CurrentCamera = game.Workspace.CurrentCamera
    local LocalPlayer = Players.LocalPlayer
    local Mouse = LocalPlayer:GetMouse()
    local GUI = script.Parent
    local MOVE_SPEED = 25
    local function UpdateCamera()
    local Center = CameraPart.CFrame
    local MoveVector = Vector3.new((Mouse.X - Center.X)/MOVE_SPEED, (Mouse.Y - Center.Y)/MOVE_SPEED, 0)
    CurrentCamera.CFrame = CameraPart.CFrame * CFrame.Angles(math.rad(-(Mouse.Y - Center.Y)/MOVE_SPEED), math.rad(-(Mouse.X - Center.X/2)/MOVE_SPEED), 0)
    end
    local Connection = RunService.RenderStepped:Connect(UpdateCamera)

    • @ParadiseVFX
      @ParadiseVFX 2 หลายเดือนก่อน

      doesnt work for me do i put the Camera under StarterGUI?

    • @ParadiseVFX
      @ParadiseVFX 2 หลายเดือนก่อน

      Nevermind thank you so much!

    • @ParadiseVFX
      @ParadiseVFX 2 หลายเดือนก่อน

      actually it doesnt work.

  • @MrRyan128
    @MrRyan128 6 หลายเดือนก่อน +1

    Local RunService = game:GetService("RunService")
    local players = game:GetService("Players")
    local CameraPart = workspace:WaitForChild("CameraPart")
    local CurrentCamera = workspace.CurrentCamera
    local LocalPlayer = players.LocalPlayer
    local Mouse = LocalPlayer:GetMouse()
    local GUI = script.Parent
    local PlayButton = GUI.PlayButton
    local MOVE_SPEED = 150
    local function UpdateCamera()
    local Center = CameraPart.CFrame
    local MoveVector = Vector3.new((Mouse.X - Center.X)/MOVE_SPEED, (Mouse.Y - Center.Y)/MOVE_SPEED, 0)
    CurrentCamera.CFrame = CameraPart.CFrame * CFrame.Angles(math.rad(-(Mouse.Y - Center.Y)/MOVE_SPEED), math.rad(-(Mouse.X - Center.Y)/MOVE_SPEED), 0)
    end
    local Connection = RunService.RenderStepped:Connect(UpdateCamera)
    PlayButton.Activated:Connect(function()
    Connection:Disconnect()

    GUI:Destroy()
    end)