so i got a part that i want to open a gui on click, only to the player that clicks it, i can get it to work but it will open to everyone in the server. (i dont want mousedetector) what did i do wrong?
function onClicked(hit) local plr = hit.Name local Gplr = game.Players:FindFirstChild(plr)
if Gplr ~= nil then
local a = game.ServerStorage.test:Clone()
a.Parent = Gplr.PlayerGui
end
end script.Parent.MouseButton1Click:connect(onClicked)
