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

How do you make a GUI pop up from a touch event whilst having Filtering Enabled? [closed]

Asked by 6 years ago
Edited 6 years ago

Title says it all,

I'm trying to make a little circle (a shop circle) and you would touch it in order to get the shop gui, but I have no idea how to do it since filtering enable makes it impossible for the script to access the localplayer. I do not wish to use remotes, but if thats the only option please tell me.

Here's my code:

01local debounce = false
02 
03script.Parent.Touched:connect(function(plr)
04    if game.Players:FindFirstChild(plr.Parent.Name) then
05        if debounce == false then
06            debounce = true
07            -- how to open the shop gui?
08 
09            wait(1)
10            debounce = false
11        end
12    end
13end)

Closed as Not Constructive by User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?