function a()
local plr = game.Players.LocalPlayer
if plr.PlayerGui:FindFirstChild("UI") then
print(plr.Name.." already has the UI")
else
script.Parent.UI:Clone().Parent = plr.PlayerGui
end
end
script.Parent.ClickDetector.mouseClick:Connect(a)
COMMUNITY QUESTION
Why isn't this clone script not working on ROBLOX Player while it IS working on ROBLOX Studio?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
The ClickDetector doesn't have an event called "mouseClick;" the event for when a player clicks on it is called "MouseClick." (line 10)
Believe me, I tried it too, and the mouseClick event is recommended, like, it appears when you start typing.