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

Help with FilteringEnabled?

Asked by 9 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I have a script. When you touch a part(the part has a non-local script), a value inside of my GUI changes. Without filtering, it works fine. But, when filtering is enabled, it does not work. How would I enable it to work?

Inside the GUI(local script):

repeat wait() until script.Parent.Part1.Value == true 

Inside the brick which you touch(server script):

finishPart = script.Parent
db = false

finishPart.Touched:connect(function(hit)
    if not hit.Parent:FindFirstChild("Humanoid") then return end
    if db == false then
        db = true
        local pw = game.Workspace:FindFirstChild(hit.Parent.Name)
        local p = game.Players:FindFirstChild(hit.Parent.Name)
        print(pw)
        p.PlayerGui:FindFirstChild('Tutorial'):FindFirstChild('Part1').Value = true
        wait()
        db = false
    end
end)

When you touch the brick, the value does not change.

0
Include the scripts so that we can give a specific recommendation. BlueTaslem 18071 — 9y

Answer this question