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
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?
And also changing the for loop from script.Parent:GetChildren() to game.workspace.(Wherever it is)?
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)
How would I change the getchildren? Just game.Workspace:GetChildren()), or what?
what is this script parented to?
https://gyazo.com/06fea6243310e94336ca94d68b4ee8c2, Here's a image
It says "Page Not Found"
Try to see if you got the link right, highlight it and copy it
Just do something like game.Workspace.Page:GetChildren() (Assuming Page is directly parented to workspace).