generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Spectate GUI

Previous Thread :: Next Thread 
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
10 Jun 2016 10:27 PM
local button = script.Parent
local PlayersService = game:GetService("Players")
local MyPlayer = PlayersService.LocalPlayer
local myModel = MyPlayer.Character

if MyPlayer.TeamColor == BrickColor.new("Bright red") then
button.Active = false
button.Visible = false
else
button.Active = true
button.Visible = true
end




function onClick(mouse)
myModel.Humanoid.CameraOffset = Vector3.new(-22, 121.5, 254)
button.Text = "Back"

end

button.MouseButton1Click:connect(onClick)

I want to make it so when I click again, I return back from spectating.
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
10 Jun 2016 10:44 PM
bump
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
10 Jun 2016 10:52 PM
bump
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
10 Jun 2016 11:10 PM
bump
Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
11 Jun 2016 12:32 AM
Make something similar to a CoreGUI script.
Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
11 Jun 2016 12:38 AM

function onClick(mouse)
SpectateGUI.Disabled = true
end

It would be something similar to that. Sorry, I haven't scripted since the good ol' SB days
Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
11 Jun 2016 12:43 AM
IGNORE MY OTHER POSTS!
Add this under the TextButton of the Button WITH the OPEN script too

function(onClick)
script.Parent.Parent.Visible = false
wait(0.5)
script.Parent.MouseButton1Click:connect(onClick)
end
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
11 Jun 2016 12:43 AM
grev do you even know what core gui is


r+://393244197r+://393244224r+://393244262
Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
11 Jun 2016 01:08 AM
yes...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image