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:

local debounce = false

script.Parent.Touched:connect(function(plr)
    if game.Players:FindFirstChild(plr.Parent.Name) then
        if debounce == false then
            debounce = true
            -- how to open the shop gui? 

            wait(1)
            debounce = false
        end 
    end
end)

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?