So I am creating a gui for a player and I want it to be cloned onto the players screen when the player clicks the button. Essantially it targets the player that clicked the button and clones the gui into the player. heres some code I started
script.Parent.SurfaceGui.TextButton.MouseButton1Down:connect(function()
--This is where the screen gui for the person who clicked the button would be cloned from serverstorage
end)
I basicly want to clone the gui inside the Character not the player. That way the gui shows up on only their screen.

2 comments
Could you be a little more specific? I'm not sure if you're trying to get the player from the character, but I do know that areSurfaceGuis inside the PlayerGui so it knows what player is interacting with it.
I edited it for you.