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

Click function to clone only 1 gui into playerGui?

Asked by 5 years ago
Edited 5 years ago
function click(Player)
    if not Player.PlayerGui:FindFirstChild("Conversation3") then
        local gui = script.Conversation3:Clone()
        gui.Parent = Player.PlayerGui
    end
end


script.Parent.ClickDetector.MouseClick:connect(click)

This script works on studio, but not in-game, any help?

0
It have to clone only 1, althrough you'll still be able to reopen it when you close the one that been cloned utrabem 5 — 5y
0
you can do that on a local script in the player as local scripts can listen for mouseclick events theking48989987 2147 — 5y
0
It didn't work, please do a answer with a remastered script utrabem 5 — 5y

Answer this question