Hello Developers!
I have a quick question, I have a part with a click detector. Giving the player who clicks on it a GUI. The script is down below:
function onClick(click)
for i,v in pairs (script.Parent:GetChildren()) do
if v.ClassName == "ScreenGui" then
a = v:Clone()
a.Parent = click.PlayerGui
end
end
end
script.Parent.ClickDetector.MouseClick:Connect(onClick)
I know how I need to use Module Scripts and I want to use that for the Group and Rank lock, but. I don’t really know how I should adjust the script, nor do I have a feeling this script is good.
I would love to hear it from the audience of the DevForum.
Thanks for reading!