|
| 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 |
|
|
| |
|
| |
|
| |
|
Grevok
|
  |
| Joined: 07 Jul 2013 |
| Total Posts: 1652 |
|
|
| 11 Jun 2016 12:32 AM |
| Make something similar to a CoreGUI script. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 11 Jun 2016 12:43 AM |
grev do you even know what core gui is
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|
Grevok
|
  |
| Joined: 07 Jul 2013 |
| Total Posts: 1652 |
|
| |
|