roblox studio get player character code example
Example: roblox studio how to get the character
local player = game.Players.LocalPlayer
local character = player.Character
if not character or not character.Parent then
character = player.CharacterAdded:wait()
end