how to get player from character rin roblox code example
Example: roblox get player character
--LOCAL SCRIPT
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
--LOCAL SCRIPT
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()