#text disappearing from players screen

8 messages · Page 1 of 1 (latest)

lusty quest
#

idk how to reference the playergui if its not in a local script and if i do it through localplayer it will error

lofty ridge
#

then

#

use remove event

#

u cant access

#

player gui

#

from server script

lusty quest
#

Oh alr

lusty quest
#
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)```