Jump to content

How to make a spectate GUI that works in the lobby only?


Guest ObiwanRares

Recommended Posts

Guest ObiwanRares

I really need help help, I want to make a game and I was thinking to add a spectate button.

Share this post


Link to post
Share on other sites
  • 3 weeks later...

If you want it to only work in the lobby you could create a Region3/Part with a .touched event and if the player is inside either of those you could make the button visible and clickable and if they aren't do the opposite

Share this post


Link to post
Share on other sites
  • 2 weeks later...

If your game has teams you could keep a function in a local script to do something like this:

 

local GUI = PATH TO YOUR GUI'S FRAME HERE


if game.Players.LocalPlayer.TeamColor == BrickColor.new("LOBBY TEAM COLOUR HERE") then
      GUI.Visible = true

else

       GUI.Visible = false
end

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.