how to reference a player with a string roblox code example
Example: how to get the player character roblox script
local player = game.Players.LocalPlayerlocal character = player.Characterif not character or not character.Parent then character = player.CharacterAdded:wait()end