#Introduction Hello there, I am having a problem with the PlayerGui property of the player. I am trying to access the player's PlayerGui, but it will not work.
My script:
function myFunction(player)
local part = workspace.Part
local clone = part.GUI:Clone()
clone.Parent = player.PlayerGui
end
myFunction()
#Conclusion Can somebody help me?

2 comments
You aren't passing any variables when you call the function. It has no ideas what "player" is.
How can I describe "player...?"