What this script does is when you click on a player in a game it brings up a gui, that gui would be the players profile. Only one problem I don't know how to get the players name from the person they clicked.
I tried this but it did not seem to work.
Title.Name = mouse.Target.Parent.Name .. "'s Profile"
The title should appear as "IntellectualBeing's Profile" (Using my name as an example)
wait(1)
local plr = game.Players.LocalPlayer;
local mouse = plr:GetMouse();
local Frame2 = script.Parent.Content
local Title = Frame2.Title
mouse.Button1Down:connect(function()
if mouse.Target and mouse.Target.Parent and game.Players:GetPlayerFromCharacter(mouse.Target.Parent) then
Frame2.Visible = true;
Title.Name = mouse.Target.Parent.Name .. "'s Profile" --This does not work.
end
end)

3 comments
Thank's for making my code more efficient! :)
Wait, it's not changing the title text?
You have it set to change the name of the title. Edited it to change the Title text.