roblox localplayer code example
Example: localplayer lua
local localplayer = game.Players.LocalPlayer
print(localplayer.Name) -- prints localplayer name
local localplayer = game.Players.LocalPlayer
print(localplayer.Name) -- prints localplayer name