sayer80
|
  |
| Joined: 19 Jun 2014 |
| Total Posts: 16 |
|
|
| 25 Sep 2017 10:12 AM |
LocalScript:
script.Parent.MouseButton1Click:connect(function() local startergui = game:GetService("StarterGui") startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) script.Parent.LocalScript2.Disabled = false script.Disabled = true end)
LocalScript2:
script.Parent.MouseButton1Click:connect(function() local startergui = game:GetService("StarterGui") startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true) script.Parent.LocalScript.Disabled = false script.Disabled = true end)
How to make those 2 Chat disabler / enabler functions into one Script!?! |
|
|
| Report Abuse |
|
|
PossibIy
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
|
| 25 Sep 2017 10:16 AM |
Uh, those are the exact same... Are you trolling?
#code print('Success') |
|
|
| Report Abuse |
|
|
sayer80
|
  |
| Joined: 19 Jun 2014 |
| Total Posts: 16 |
|
|
| 25 Sep 2017 10:18 AM |
NO at local script 2 it says startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true) the true script.Parent.LocalScript.Disabled = false no "2"
at first local script it says startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) the false script.Parent.LocalScript2.Disabled = false "nothing"
|
|
|
| Report Abuse |
|
|
|
| 25 Sep 2017 10:30 AM |
| Can you show us where these scripts are in your Explorer tree? |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2017 10:33 AM |
local enabled = false local startergui = game:GetService("StarterGui")
script.Parent.MouseButton1Click:Connect(function()
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, enabled) enabled = not enabled
end) |
|
|
| Report Abuse |
|
|