Here is the script:
local player = script.Parent.Parent.Parent.Parent.Parent.Players.LocalPlayer
script.Parent.Text = player
end of script.
so basically the script picks the player that is in the server and then the script tells the text to change to that players name. but it doesn't work. let me know if you know the answer.
Hi RealJustFoxin!
To do this, you need to get the name of the player.
Something like this will do:
local player = game.Players.LocalPlayer script.Parent.Text = player.Name
You haven't set the name, you just wrote player, you must write player.Name also i reccomend using game.Players.LocalPlayer instead.
Hello!
This is how I would go about fixing this:
local player = game.Players.LocalPlayer player.PlayerGui.ScreenGui.TextLabel.Text = player.Name --Change this line (before the =) to match with your gui.
Make sure this is in a localscript and you're good to go! :)
I have An Explanation Please Accept
script.Parent.Text = game:GetService("Players").LocalPlayer.Name
Easy As This :) Hope This Works