local debounce = false
function onClick(click)
    if debounce == false then debounce = true
        for i,v in pairs (script.Parent:GetChildren()) do
            if v.ClassName == "ScreenGui" then
                c = v:Clone()
                c.Parent = click.PlayerGui
game.Workspace.BookManga["Pop up"].Frame.Center.NoPage.Disabled = true
game.Workspace.BookManga["Pop up"].Frame.Center.YesPage.Disabled = false
game.Workspace.BookManga.Obtain.Disabled = false
game.Workspace.BookManga.Keybind.Disabled = false
            end
        end
        wait(6.4)
        debounce = false
    end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)

I'm trying to make it so when you open it, it opens for you but it also changes the scripts to enabled/disabled. When this happens it does it server-wide meaning only one player has to do it and it immediately is allowed to everyone. I'm trying to make it so it's only available to each player that clicks this. The way to do that is to make it local.

9 comments

0

Have you tried changing script.Parent.ClickDetector to game.Workspace.(Wherever it is) and then just copying and pasting this all into a local script?

0

And also changing the for loop from script.Parent:GetChildren() to game.workspace.(Wherever it is)?

0

I think it should work fine in a local script as long as you change the parts where its references with script.Parent to a (Wherever it is)

0

How would I change the getchildren? Just game.Workspace:GetChildren()), or what?

0

what is this script parented to?

0

It says "Page Not Found"

0

Try to see if you got the link right, highlight it and copy it

0

Just do something like game.Workspace.Page:GetChildren() (Assuming Page is directly parented to workspace).