Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I cant make the other gui visible when I click?

Asked by 6 years ago
Edited 6 years ago

Here is the script so far.

script.Parent.MouseButton1Click:connect(function() game.StarterGui.ScreenGui2.Frame2.TextLable2.Visible = true end)

1 answer

Log in to vote
0
Answered by
oSyM8V3N 429 Moderation Voter
6 years ago
Edited 6 years ago

This should work:

opened = false
p = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
if p.PlayerGui.ScreenGui2.Frame2.TextLabel2.Visible == false and debounce == false then
debounce = true
p.PlayerGui.ScreenGui2.Frame2.TextLabel2.Visible = true
else
if p.PlayerGui.ScreenGui2.Frame2.TextLabel2.Visible == false and debounce == false then
debounce = false
p.PlayerGui.ScreenGui2.Frame2.TextLabel2.Visible = false
end
end
end)
0
Thanks dude. Are you a pro scripter or somthing??? Cause I really need help. ToxicHero8801 5 — 6y
0
I won''t say 'pro', but im good. Please accept the answer, and DM me if you need anymore help oSyM8V3N 429 — 6y
Ad

Answer this question