#text disappearing from players screen
8 messages · Page 1 of 1 (latest)
Oh alr
local gui = script.Parent.Parent.GymTicket
function onclick(click)
local playerGui = click.PlayerGui
gui.Frame.Visible = true
local clonedGui = gui:Clone()
clonedGui.Parent = playerGui
end
script.Parent.MouseClick:Connect(onclick)
local frameViewer = script.Parent.Parent:WaitForChild("GymTicket"):WaitForChild("Frame")
local No = frameViewer:WaitForChild("No")
local yes = frameViewer:WaitForChild("Yes")
local TicketOwned = script.Parent:WaitForChild("TicketOwned")
local function hideFrame()
frameViewer.Visible = false
end
No.MouseButton1Click:Connect(hideFrame)
yes.MouseButton1Click:Connect(function()
TicketOwned.Value = true
hideFrame()
end)```