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

Frame won't work Trying to make it Filtered Enable?

Asked by 6 years ago
script.Parent.ClickDetector.MouseClick:connect(function(p)
    p.PlayerGui.CheckIn.Frame.Visble = true
end)

Umm everytime I click the mouse for self check in It wont work and I keep trying. I'm trying to make my self check in Filtered Enable but it wont work can anyone help me?

2 answers

Log in to vote
0
Answered by 6 years ago

Guessing this is done through a server script if that's the case then a server script can't access PlayerGui so it has to be done through a localscript using remote events or functions.

https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events

0
Remote event. User#19524 175 — 6y
0
Yeah in this case you only need a remote event. Optimalpokemon123 37 — 6y
Ad
Log in to vote
-1
Answered by
Diltz_3 75
6 years ago
Edited 6 years ago

Try make a clone of GUI from ReplicatedStorage.

Example:

local Gui = game:GetService("ReplicatedStorage"):WaitForChild("GUINAME")

script.Parent.ClickDetector.MouseClick:connect(function(p)
    local GetClone = Gui:Clone()
    GetClone.Parent = p.PlayerGui
end)
0
No. User#19524 175 — 6y

Answer this question