How to Create a Start Screen with a Play Button in Roblox

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

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

  • @juggernnox
    @juggernnox 4 ปีที่แล้ว +8

    for any of ya'll struggling, heres the script:
    local camera = workspace.CurrentCamera
    local playBtn = script.Parent.PlayBtn
    repeat
    wait()
    camera.CameraType=Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType==Enum.CameraType.Scriptable
    camera.CFrame=workspace.CameraFocusPart.CFrame
    playBtn.MouseButton1Click:Connect(function()
    camera.CameraType=Enum.CameraType.Custom
    playBtn:Destroy()
    end)

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

    Mhm! It still works in Feb 2021~ I thought it wouldn't work because my camera and the play button aren't working. Then I realized that I forgot to rename my LocalScript. Grateful for the tutorial, stay safe!

    • @qerncia
      @qerncia 3 ปีที่แล้ว

      It's now july 2021, but i dont have surface in my properties window! do you know where i can find it?

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

    hey man thanks for the tutorial, i was about to give up since I couldn't seem to get it to work but then I realized I put the local script under the play button. when i moved it so it was under the screen gui everything worked perfectly. this is really useful for beginner roblox coders so thanks again!

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

      Thanks I had The same problem but i figured I’d try this and it worked

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

    ive been watching simtek since he started, every single tutorial worked and perfectly, the way he explains it makes it extremly easy to follow and even edit to your own style, thank you for making these great videos

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

      pretty much like the bob ross of roblox

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

      I appreciate it man! I was checking out your channel. I really liked that build game video. That was pretty cool! Keep them coming!

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

    local camera = workspace.CurrentCamera
    local playbtn = script.parent.PlayBtn
    repeat
    wait (
    camera.CameraType = Enum.CameraType.Scriptable
    until camera.CameraType == Enum.CameraType.Scriptable

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

    legend has it the creator of arsenal watched this tutorial

  • @yourworstnightmare1805
    @yourworstnightmare1805 4 ปีที่แล้ว +4

    uhm, hi! i tried this and i think i did everything right... this is what i put in the script. I did everything you said, please let me know if I did something wrong.
    local camera = workspace.CurrentCamera
    local playBtn = script.Parent.PlayBtn
    repeat
    wait ()
    camera.cameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.CameraFocusPart.CFrame
    playBtn.MouseButton1Click:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    playBtn:Destroy()
    end)
    I also put the script in the screengui, if thats correct. and It's a localscript. Please respond, I really need this! :)

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

      Are you getting errors in the output window?

    • @awk-kami
      @awk-kami 4 ปีที่แล้ว +1

      Check if the part is named properly. The same thing happened to me.

    • @zeusgaming81
      @zeusgaming81 4 ปีที่แล้ว

      @@awk-kami same

    • @yourworstnightmare1805
      @yourworstnightmare1805 4 ปีที่แล้ว

      @@SimTekGameDevelopment omg sorry i didnt respond its been 2 months xd
      i did fix it but yh thanks

    • @callanisnerd1500
      @callanisnerd1500 3 ปีที่แล้ว

      Im getting the same problem

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

    "MouseButton1Click is not a valid member of text box"
    me: THEN MAKE IT A MEMBER

    • @shadowlyons3328
      @shadowlyons3328 3 ปีที่แล้ว

      ....Text box isn't a text button?

    • @MrHell0
      @MrHell0 3 ปีที่แล้ว

      idk

    • @shadowlyons3328
      @shadowlyons3328 3 ปีที่แล้ว

      @@MrHell0 Make a textbutton instead of a textbox

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

    Bro he sounds so chill

  • @user-sc9ud6xg7y
    @user-sc9ud6xg7y 3 ปีที่แล้ว +6

    local camera = workspace.CurrentCamera
    local playbtn = script.Parent.PlayButton
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.CFrame
    playbtn.MouseButton1Click:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    playbtn:Destroy()

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

      Pog

    • @ElonDavisRobloxPlayer
      @ElonDavisRobloxPlayer 2 ปีที่แล้ว

      Updated:
      local camera = workspace.CurrentCamera
      local playbtn = script.Parent.PlayBtn
      repeat
      wait()
      camera.CameraType = Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType == Enum.CameraType.Scriptable
      camera.CFrame = workspace.CameraFocusPart.CFrame
      playbtn.MouseButton1Click:Connect(function()
      camera.CameraType = Enum.CameraType.Custom
      PlayBtn:Destroy()
      end)

    • @kestrel.89
      @kestrel.89 2 ปีที่แล้ว

      @@ElonDavisRobloxPlayer ty

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

    I typed
    local camera = workspace.CurrentCamera
    local E = script.Parent.E
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.Camerafocuspart.cframe
    E.mousebuttonclick:connect (function)
    camera.CameraType = Enum.CameraType.Custom
    E:destroy()
    end)
    into the script and didnt work, i dont speak code so can you make this a tiny bit simpiler?

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

    Great tutorial,liked it and I'm already subbed

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

    hi
    youtube i hope you are having a beautiful day srry for letting you scroll for so long
    you made it dont get mad

  • @Bayer745
    @Bayer745 4 ปีที่แล้ว +7

    It didn’t view the camera

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

    Can you put the whole script in the comments so we can copy it?

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

      local camera = workspace.CurrentCamera
      local playBtn = script.Parent.PlayBtn
      repeat
      wait()
      camera.CameraType = Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType == Enum.CameraType.Scriptable
      camera.CFrame = workspace.CameraFocusPart.CFrame
      playBtn.MouseButton1Click:Connect(function()
      camera.CameraType = Enum.CameraType.Custom
      playBtn:Destroy()
      end)

    • @boldngold5204
      @boldngold5204 3 ปีที่แล้ว

      Pengui thank you

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

    Your Tutorials Are Great My Guy

  • @DorelXH8008
    @DorelXH8008 2 ปีที่แล้ว

    for those who are lazy and dont want to write the code:
    local camera = workspace.CurrentCamera
    local playBtn = script.Parent.PlayBtn
    repeat
    wait()
    camera.Cameratype = Enum.cameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType
    camera.CFrame = workspace.CameraFocusPart.CFrame
    playBtn.MouseButtonClick:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    playBtn:Destroy()
    end)

  • @kola.zaiden
    @kola.zaiden 3 ปีที่แล้ว +1

    How do you add this after a custom loading screen?

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

    Hey man! This helped a lot. I'm new to the scripting and developing community so I appreciate any good tutorials!

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

    Thank you for helping me

  • @damianmandras8283
    @damianmandras8283 ปีที่แล้ว

    Thank finaly i learnet this is the only video with works great

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

    local camera = workspace.CurrentCamera
    local Play = script.Parent.Play
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.CameraFocusPart.CFrame
    Play.MouseButton1Click:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    Play:Destroy()
    end)
    That is the script I used, My text button is named Play. And my script is named StartScreen. I dont know what I did wrong... Can somebody please help

  • @spike-rn3jn
    @spike-rn3jn 4 ปีที่แล้ว +2

    hey uh for the menu i have a title with the play button aswell but when i try to destroy it at the end just like the play button why wont it work?
    playBtn.MouseButton1Click:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    playBtn:Destroy()
    menutitle:Destroy()

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  4 ปีที่แล้ว

      It should destroy the menu button, check to see if the path to the menu button is correct, that's the most common bug. Check your output window to see if you get any clues.

    • @zayholt
      @zayholt 3 ปีที่แล้ว

      the play is wrong it is Play not play

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

    My play button wont go away and my camera doesn't go where it should. Can someone please try and fix my script if there are any mistakes?
    LocalScript = StartMenuScreen
    Button = StartButton
    Camera Part = MenuScreenPart
    StartMenuScreen LocalScrpt =
    local camera = workspace.CurrentCamera
    local StartButton = script.Parent.StartButton
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.MenuScreenPart.CFrame
    StartButton.MouseButton1Click:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    StartButton:Destroy()


    end

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

    StartScript: (so u can copy and paste)
    local camera = workspace.CurrentCamera
    local playBtn = script.Parent.PlayBtn
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.CameraFocusPart.CFrame
    playBtn.MouseButton1Click:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    playBtn:Destroy()
    end)

  • @thatdogewithvr
    @thatdogewithvr 2 ปีที่แล้ว

    i added a frame for the start button to go on, but the frame won't dissapear. how do i make it so the frame and the button dissapears?

  • @OnlyyMax
    @OnlyyMax 3 ปีที่แล้ว

    It doesn't work as soon as you click on it makes me change the writing on the textbox.

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

    When I pressed play nothing happened and the block also didn’t work

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

    Watched the video three times to triple check and it still won't fine the Camera block
    I give up on scripting lmao my game is just going to be a display
    thank you for the tutorial though, you have nice voice

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

      here local camera = workspace.CurrentCamera
      local playBtn = script.parent.playBtn
      repeat
      wait()
      camera.CameraType = Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType == Enum.CameraType.Scriptable
      camera.Cframe = workspace.CameraFocusPart.CFrame
      playBtn.MouseButton1Click:Connect(function()
      Camera.CameraType = Enum.CameraType.Custom
      playBtn:Destroy()
      end)

    • @coochiman1680
      @coochiman1680 3 ปีที่แล้ว

      @@tea9482 thanks i'll try again with this

    • @icecoldcousin3617
      @icecoldcousin3617 3 ปีที่แล้ว

      @@coochiman1680 did it work?

    • @coochiman1680
      @coochiman1680 3 ปีที่แล้ว

      @@icecoldcousin3617 no. 🦍 But I encourage you to still try it!

  • @kitt4939
    @kitt4939 4 ปีที่แล้ว +6

    I have a problem, so uh- when I tested it, when I clicked on the "play" button, I'm still stuck on the starting screen. How could I fix this? :weary:

    • @omiuwaugt6124
      @omiuwaugt6124 4 ปีที่แล้ว

      yep thats exactly whats happening to me

    • @goldy5639
      @goldy5639 4 ปีที่แล้ว

      @@milibao you mean the script ?

    • @SuperWizardGamerX
      @SuperWizardGamerX 4 ปีที่แล้ว

      try looking in the output to see what's wrong

    • @dragsterplayz3534
      @dragsterplayz3534 4 ปีที่แล้ว

      The same thing happened to me the way i fixed it is i forgot to put a 1 in playBtn.MouseButton1Click:Connect(function() so i just put a 1 there and it fixed maybe its the same for you

    • @ironfalcon3872
      @ironfalcon3872 4 ปีที่แล้ว

      you need a script for the button to work

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

    On 0:54 you were able to go under "surface" to find the front but for some odd reason I couldn't find that under the size button like yours, can you please help?

    • @vdamp6396
      @vdamp6396 4 ปีที่แล้ว

      bruu i couldnt find it either

    • @lobax756
      @lobax756 4 ปีที่แล้ว

      I had that problem, fixed it by going to the model tab, and manually adding a surface under the 'parts' section.

    • @m04-briannbeltran35
      @m04-briannbeltran35 3 ปีที่แล้ว

      because its a later version

    • @skxrpy24
      @skxrpy24 3 ปีที่แล้ว

      it got deleted u dont need it also

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

    MY GOD IT WORKS!

    • @kaydedilenler9052
      @kaydedilenler9052 3 ปีที่แล้ว

      th-cam.com/video/9c6Tpn2lMe8/w-d-xo.html

  • @tylerkraft7496
    @tylerkraft7496 4 ปีที่แล้ว +5

    Can you put the script on desc please? It would be appreciated

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

      local camera = workspace.CurrentCamera
      local playBtn = script.Parent.PlayBtn
      repeat
      wait()
      camera.CameraType - Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType -- Enum.CameraType.Scriptable
      camera.CFrame - workspace.CameraFocusPart.CFrame
      playBtn.MouseButton1Click:Connect(function()
      camera.CameraType - Enum.CameraType.Custom
      playBtn:Destroy
      end)

    • @sk-el1se
      @sk-el1se 4 ปีที่แล้ว

      @@rizvi134 Your script was wrong.

    • @sk-el1se
      @sk-el1se 4 ปีที่แล้ว +4

      Heres the right script:
      local camera = workspace.CurrentCamera
      local playBtn = script.Parent.PlayBtn
      repeat
      wait()
      camera.CameraType = Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType -- Enum.CameraType.Scriptable
      camera.CFrame = workspace.CameraFocusPart.CFrame
      playBtn.MouseButton1Click:Connect(function()
      camera.CameraType = Enum.CameraType.Custom
      playBtn:Destroy()
      end)

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

      local camera = workspace.CurrentCamera
      local playBtn = script.Parent.PlayBtn
      repeat
      wait()
      camera.CameraType = Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType == Enum.CameraType.Scriptable
      camera.CFrame = workspace.CameraFocusPart.CFrame
      playBtn.MouseButton1Click:Connect(function()
      camera.CameraType = Enum.CameraType.Custom
      playBtn:Destroy()
      end)

    • @tea9482
      @tea9482 3 ปีที่แล้ว

      local camera = workspace.CurrentCamera
      local playBtn = script.parent.playBtn
      repeat
      wait()
      camera.CameraType = Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType == Enum.CameraType.Scriptable
      camera.Cframe = workspace.CameraFocusPart.CFrame
      playBtn.MouseButton1Click:Connect(function()
      Camera.CameraType = Enum.CameraType.Custom
      playBtn:Destroy()
      end)

  • @awk-kami
    @awk-kami 4 ปีที่แล้ว +1

    Rather than have the player spawn in a separate place is there a way to make it so they spawn under the map and teleport to the real spawn once they click the button? Woah I'm bad at explaining things.

    • @LaythZ1
      @LaythZ1 3 ปีที่แล้ว

      no its acaully simple

  • @ParimitaAndAadita
    @ParimitaAndAadita 3 ปีที่แล้ว

    i did this and it didnt work
    local camera = workspace.CurrentCamera
    local playBtn = script.Parent.PlayBtn
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.CameraFocusPart.CFrame
    playBtn.MouseButtonClicked:Connect (function()
    camera.CameraType = Enum.CameraTypye.Custom
    PlayBtn:Destroy()
    end)

  • @garnetfox0519
    @garnetfox0519 3 ปีที่แล้ว

    The screen works but when i click start it doesn't seem to go off, it just keeps me on the menu

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

    Hi, so everything works well in the studio but, when I join the game it doesn't set my camera to the location and just has the play button. It breaks every time I go in the game how could I fix that? Please help! (It sometimes comes on sometimes doesn't idk why its random like that)

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

      Try increasing the wait in the loop. Maybe wait(0.5)

    • @laced9585
      @laced9585 3 ปีที่แล้ว

      @@SimTekGameDevelopment thank you! it fixes everything, also great video

    • @kotoFN
      @kotoFN 3 ปีที่แล้ว

      @@SimTekGameDevelopment how?

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

    the camera isnt working for me is there any way to fix it? in output it said Enum.CameraType.Scriptable and it worked but then sometimes when i test in studio the camera doesnt work

    • @awk-kami
      @awk-kami 4 ปีที่แล้ว

      It broke for me too. No idea what happened sadly.

  • @Rcadventuresexplorer
    @Rcadventuresexplorer 3 ปีที่แล้ว

    This doesn't seem to work anymore.

  • @spike-rn3jn
    @spike-rn3jn 4 ปีที่แล้ว +7

    And also when I die the menu pops back up and i cant get out of it is there a way to fix that aswell?

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  4 ปีที่แล้ว +6

      spike You can uncheck, “ResetOnSpawn” in the screenGui, that should prevent the the button coming back

    • @spike-rn3jn
      @spike-rn3jn 4 ปีที่แล้ว +2

      @@SimTekGameDevelopment ok thank you!

    • @timash7379
      @timash7379 3 ปีที่แล้ว

      A

    • @Big_Blends
      @Big_Blends 3 ปีที่แล้ว

      @@SimTekGameDevelopment It works but while I’m creating the play button is still stuck there how do I put it to only show when I test game I don’t always want it there even when I’m creating

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

    the camera wont work if i test my ice scream fangame.

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

    I have a question,but it's not in the tutorial. So, my question is how do you make it multiple?

  • @nungyramirezz8098
    @nungyramirezz8098 3 ปีที่แล้ว

    it works but when I start it docent show it from the cameras pov it shows from the players pov

  • @m1lk337
    @m1lk337 3 ปีที่แล้ว

    Thanks man really needed this

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

    every time i tried to click on the button it just started editing the text so i changed it to an image button but still thanks a lot

    • @shadowlyons3328
      @shadowlyons3328 3 ปีที่แล้ว

      Don't use a text box, use a text button

  • @AzureGills
    @AzureGills 3 ปีที่แล้ว

    ok sooooo i have a little problem, so everything works alright?, but sometimes when i reset it works yes and i click play but my camera is not focusing on my player or the camera, just the same place where i died
    how do i fix this

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

      If you check “ResetOnSpawn” on the screenGui do you still have the same problem?

    • @AzureGills
      @AzureGills 3 ปีที่แล้ว

      @@SimTekGameDevelopment yes

    • @Big_Blends
      @Big_Blends 3 ปีที่แล้ว

      It works but while I’m creating the play button is still stuck there how do I put it to only show when I test game I don’t always want it there even when I’m creating

  • @daepix1273
    @daepix1273 3 ปีที่แล้ว

    Thanks! Helped a bunch

  • @ADAMOR_52
    @ADAMOR_52 2 ปีที่แล้ว

    can i make loading screen and after game is loaded this will show?

  • @ChocolateShrimpPasta
    @ChocolateShrimpPasta 2 ปีที่แล้ว

    tysm for the tutorial! but whenever i reset the button doesn't go off, how do i fix it?

  • @axieinfinity4156
    @axieinfinity4156 3 ปีที่แล้ว

    Legit Thanks For Help

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

    How do you code it so that when u reset the intro screen wont pop back up? I ont know if he mentioned it in the video

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

      Turn it off in properties

    • @creativeshark5153
      @creativeshark5153 3 ปีที่แล้ว

      go to the screen GUI and then go to properties then uncheck reset on spawn. Reply to me if it helped! :)

    • @markusguitarus9563
      @markusguitarus9563 3 ปีที่แล้ว

      click on the screengui and uncheck reset on spawn

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

    i cant find surface inputs

  • @joshipepito
    @joshipepito 3 ปีที่แล้ว

    POV: 11 months later it is in your recommended

  • @pothangus1118
    @pothangus1118 2 ปีที่แล้ว

    Use text scaled if you don’t want to waste that much time for text size.

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

    Anyone else scrolling down the comment section just so you can copy and paste the script?

  • @Dippybro
    @Dippybro 3 ปีที่แล้ว

    This helped a lot But when the player die, can you make the player go back to main menu please. (Tutorial)

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

      You can simpily use a "character:WaitForChild("Humanoid").Died:Connect(function()", and then repeat the process used in the tutorial!

    • @Dippybro
      @Dippybro 3 ปีที่แล้ว

      @@BlocksaverMax so i’m going to type that first? And then i’ll press enter two times so there’s a space between them scripts

  • @brandon6114
    @brandon6114 2 ปีที่แล้ว

    Hey amazing GUI! but I need help... How do u make it so when you click play it'll still show the background but open up another gui and when u click on that gui then it sets camera to your character... you know?

    • @brandon6114
      @brandon6114 2 ปีที่แล้ว

      for example: You join and click play then it says "choose a team" and you click a team and then it'll close

  • @marcosreynaga9714
    @marcosreynaga9714 3 ปีที่แล้ว

    Works July 2021! Here's an updated script that worked for me. The comments scripts didn't work for me so I updated it and it finally worked. Here ya go check replies!

    • @marcosreynaga9714
      @marcosreynaga9714 3 ปีที่แล้ว

      local camera = workspace.CurrentCamera
      local playbtn = script.Parent.PlayButton
      repeat
      wait ()
      camera.CameraType = Enum.CameraType.Scriptable
      until camera.CameraType == Enum.CameraType.Scriptable
      camera.CFrame = workspace.CameraFocusPart.CFrame
      playbtn.MouseButton1Click:Connect(function()
      camera.CameraType = Enum.CameraType.Custom
      playbtn:Destroy()
      end)

  • @bassmaster1719
    @bassmaster1719 3 ปีที่แล้ว

    how do i make it so if you click it, it wil kill you?

  • @sharontupagen9065
    @sharontupagen9065 3 ปีที่แล้ว

    here is the script
    local camera = workspace.CurrentCammera
    local playBtn = script.Parent.playBtn
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.CameraFocusPart.CFrame
    playBtn.MouseButtonClick:Connect(function)(
    camera.CameraType =Enum.CameraType.Custom
    playBtn:Destroy()
    end)
    and anyways its not working did the script went wrong?

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

    Can you put a script in the comments so that we can copy it please.

    • @tea9482
      @tea9482 3 ปีที่แล้ว

      same

    • @tea9482
      @tea9482 3 ปีที่แล้ว

      local camera = workspace.CurrentCamera
      local playBtn = script.parent.playBtn
      repeat
      wait()
      camera.CameraType = Enum.CameraType.Scriptable
      print(camera.CameraType)
      until camera.CameraType == Enum.CameraType.Scriptable
      camera.Cframe = workspace.CameraFocusPart.CFrame
      playBtn.MouseButton1Click:Connect(function()
      Camera.CameraType = Enum.CameraType.Custom
      playBtn:Destroy()
      end)

    • @princessissocool4136
      @princessissocool4136 3 ปีที่แล้ว

      @@tea9482 thankyou so much

  • @mikethegamedev
    @mikethegamedev 3 ปีที่แล้ว

    Great tutorial!

  • @Big_Blends
    @Big_Blends 3 ปีที่แล้ว

    It works but while I’m creating the play button is still stuck there how do I put it to only show when I test game I don’t always want it there even when I’m creating

    • @lizard.y
      @lizard.y 3 ปีที่แล้ว

      Hi, you probalby solved this by now but at the top right of your game screen, there should be a phone and eye icon next to each other. Click on the Eye and it will disappear but it will still be in the game

    • @Big_Blends
      @Big_Blends 3 ปีที่แล้ว

      @@lizard.y thanks I haven’t figured out still but thx

  • @numberxiii_13
    @numberxiii_13 4 ปีที่แล้ว

    So I have 3 roblox avatar rig models in front of the camera along with a decal but when I test the game the camera works same with the start button but the avatar models and the decal are invisible?? But the rest of the room is there, what do I do?

    • @lobax756
      @lobax756 4 ปีที่แล้ว

      can you share the script you got working? Since mine wouldn't work

  • @ninjawarz2260
    @ninjawarz2260 3 ปีที่แล้ว

    Hello, I'm Ninja Warz! Well... When on testing, it is all appears an error, and I think I have make everything right, but it still error. How to fix it? I even have add a loop such a "wait(0.5)", but... It always appear an errro near the local.

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

      Recommended to study from AlvinBlox.

  • @webexgreekmemes5512
    @webexgreekmemes5512 3 ปีที่แล้ว

    Bro i need your help in my roblox studio didn't work and the button didn't work and the camera what i need to do?

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

      That video is a little old, I put the updated video link in the description

    • @webexgreekmemes5512
      @webexgreekmemes5512 3 ปีที่แล้ว

      @@SimTekGameDevelopment okay thx so much

  • @LellowYemon
    @LellowYemon 3 ปีที่แล้ว

    i thiink this is right(DONT COPY THIS PART ONLY COPY BELOW)
    local camera = workspace.CurrentCamera
    local playBtn = script.Parent.playBtn
    repeat
    wait()
    camera.CameraType = Enum.CameraType.Scriptable
    print(camera.CameraType)
    until camera.CameraType == Enum.CameraType.Scriptable
    camera.CFrame = workspace.CameraFocusPart.CFrame
    playBtn.MouseButtonClick:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    playBtn:Destroy()
    end)

  • @ender_mite8675
    @ender_mite8675 3 ปีที่แล้ว

    The Menu is not working IS honly show my carter and i can move then when i try to click the play button nothing happen

    • @ender_mite8675
      @ender_mite8675 3 ปีที่แล้ว

      Ok im trying to change the cam and every i will replay once i fix the proplome

    • @ender_mite8675
      @ender_mite8675 3 ปีที่แล้ว

      Yeah i thinck i know what the problome is

    • @ender_mite8675
      @ender_mite8675 3 ปีที่แล้ว

      Yeah It did not work

  • @masonbuk9092
    @masonbuk9092 ปีที่แล้ว

    thanks!

  • @actyrn8676
    @actyrn8676 3 ปีที่แล้ว

    i love it how u say it like gooey lol

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  3 ปีที่แล้ว

      I know right! I don’t know why everyone doesn’t say gooey!

  • @marina2387
    @marina2387 3 ปีที่แล้ว

    can you type it here so i can copy it and paste

  • @kyamibrawl
    @kyamibrawl 3 ปีที่แล้ว

    Thanks

  • @ender_mite8675
    @ender_mite8675 3 ปีที่แล้ว

    Can i have the script to copy? cuz im lazy

  • @xSasqke
    @xSasqke 4 ปีที่แล้ว

    The camera doesn't work, and the play button doesn't work.

  • @AccelerateHyper
    @AccelerateHyper 3 ปีที่แล้ว

    Thank you So Much

  • @jan_sipiki
    @jan_sipiki 3 ปีที่แล้ว

    It works great! But I wanted to ask how to lock the player in place before they'd hit play.

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

      Oh, that's a good idea. You can always Anchor the HumanoidRootPart of you character until you hit play

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

      @@SimTekGameDevelopment or set the WalkSpeed to 0.

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

      local Player = game.Players.LocalPlayer
      local Humanoid = Player.Character:WaitForChild("Humanoid")
      Humanoid.WalkSpeed = 0
      plybtn.MouseButton1Click:Connect(function()
      Humanoid.WalkSpeed = 16
      end)

  • @tylersdoggo
    @tylersdoggo 3 ปีที่แล้ว

    Doesn't work. My camera won't work and the button won't either :/

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  3 ปีที่แล้ว

      What is the error in the output window? You should start there.

    • @tylersdoggo
      @tylersdoggo 3 ปีที่แล้ว

      @@SimTekGameDevelopment ill look into it

  • @zappylightning4198
    @zappylightning4198 3 ปีที่แล้ว

    thank you!

  • @scqrymovies
    @scqrymovies 4 ปีที่แล้ว

    worked perfectly, ty!!

    • @joshpuents5363
      @joshpuents5363 4 ปีที่แล้ว

      howwww

    • @scqrymovies
      @scqrymovies 4 ปีที่แล้ว

      Josh Puents I can drop you the script later

    • @luvtwice4292
      @luvtwice4292 4 ปีที่แล้ว

      Same it worked!

    • @Big_Blends
      @Big_Blends 3 ปีที่แล้ว

      It works but while I’m creating the play button is still stuck there how do I put it to only show when I test game I don’t always want it there even when I’m creating

    • @avakinbubbles9105
      @avakinbubbles9105 3 ปีที่แล้ว

      @@Big_Blends Make it Invisible then make it visible again when ur done!

  • @chiekoalmahyraz7471
    @chiekoalmahyraz7471 3 ปีที่แล้ว

    can you make it blurr screen

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

    Why cant i find my part's "surface" in properties

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

      Ugh, I think that happened in the last Roblox update.

    • @momodominic7641
      @momodominic7641 3 ปีที่แล้ว

      @@SimTekGameDevelopment also the command you used "camera.CFrame = workspace.CameraFocusPart.CFrame"
      the command "CameraFocusPart" is invalid neither doesnt exist on roblox workspace maybe.

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  3 ปีที่แล้ว

      @@momodominic7641 Oh that’s the name of the part I used for the camera. Check the spelling of the part you used to match them up.

    • @momodominic7641
      @momodominic7641 3 ปีที่แล้ว

      @@SimTekGameDevelopment ooh sorry lmao i did not notices it, well tha ks for the information bro.

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  3 ปีที่แล้ว

      @@momodominic7641 Good luck man! Keep at it!

  • @therealnugget435
    @therealnugget435 2 ปีที่แล้ว

    The only thing i hate is when it doesn't work and you don't know what's wrong (Edit): How does it not work for me, but his works ;-;

  • @Anonymous-lx6rk
    @Anonymous-lx6rk 3 ปีที่แล้ว

    what if i want the camera to be bobbing

    • @Anonymous-lx6rk
      @Anonymous-lx6rk 3 ปีที่แล้ว

      i tried tweening it, it didnt work

  • @JacksonArsenault
    @JacksonArsenault 3 ปีที่แล้ว

    how can I make a shift to start?

  • @qualitydankmemes4533
    @qualitydankmemes4533 3 ปีที่แล้ว

    it wont work when I start it it only shows the button and nothing else and when i click the button nothing happens so there is just a button there forever

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  3 ปีที่แล้ว

      What errors do you see in the output window? If you do a print statement in the button script will it print to the output window?

    • @qualitydankmemes4533
      @qualitydankmemes4533 3 ปีที่แล้ว

      i will try it again

    • @qualitydankmemes4533
      @qualitydankmemes4533 3 ปีที่แล้ว

      it works now and I have a question how do i make it to where I can put text in the start screen so I can put the title of my game?

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  3 ปีที่แล้ว

      @@qualitydankmemes4533 Congrats! You can add a textlabel to the screenGui, get a variable reference to it in your script and make it invisible when you click the start button.

    • @qualitydankmemes4533
      @qualitydankmemes4533 3 ปีที่แล้ว

      @@SimTekGameDevelopment Ok thanks you are a very helpful youtiber and respond to all of your comments +1 sub

  • @mrguy8391
    @mrguy8391 3 ปีที่แล้ว

    this guy is the bob ross of roblox scripting

  • @joshpuents5363
    @joshpuents5363 3 ปีที่แล้ว

    When I click the part and scroll down in the properties I don’t see the surface part. Can someone help me !

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  3 ปีที่แล้ว

      Yeah, they took that out, go to the toolbox and grab an image and put it on the part, it shows up as a decal, the decal has a “face” property you can set to front

    • @kaydedilenler9052
      @kaydedilenler9052 3 ปีที่แล้ว

      th-cam.com/video/9c6Tpn2lMe8/w-d-xo.html

  • @swagmlg5025
    @swagmlg5025 4 ปีที่แล้ว

    could we look on the maps game

  • @bre5ad436
    @bre5ad436 3 ปีที่แล้ว

    I dont think it works, it isnt working for me anymore.

  • @sortishh
    @sortishh 3 ปีที่แล้ว

    Can you give me the script to copy and paste please?

  • @emperor_dan
    @emperor_dan 3 ปีที่แล้ว

    Good tutorial but it makes me want to gut myself when you pronounce "GUI" as "gooey"

  • @mualeemm
    @mualeemm 2 ปีที่แล้ว

    Doesn't work for me

  • @DrPixel64
    @DrPixel64 3 ปีที่แล้ว

    It did not work for me

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

    tysm

  • @Anas-wg3jj
    @Anas-wg3jj 4 ปีที่แล้ว

    How i really did is same script and not working

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

    wow u rly helped me thx!

  • @Troopermann
    @Troopermann 3 ปีที่แล้ว

    roblox breaking things be like

  • @itzonlysnixs
    @itzonlysnixs 3 ปีที่แล้ว

    it work but i need help it but me in the game without clicking play

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

    2:47 were I left

  • @chaosxtyy
    @chaosxtyy 4 ปีที่แล้ว

    how do you make it have music then when you start the music ends?

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  4 ปีที่แล้ว

      TypicalBacon you could start the track in the same script and turn it off when you hit the button. That’s a good idea.

    • @chaosxtyy
      @chaosxtyy 4 ปีที่แล้ว

      @@SimTekGameDevelopment could you send a script or tutorial on how to do that?

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

      if u insert a sound, then in the same script say game.Workspace.Sound:Play() it should work
      Then script.Parent.PlayBtn.MouseButton1Click:Connect(function()
      game.Workspace.Sound:Stop() or :Pause() I dont know.
      end)
      i hope this helped :/