I put a script down in the StarterPlayerScript where it detects when 'Q' is pressed, I want something to then happen inside the players character, how would I access the players character from the script.
The script is a local script and FE is on.
local Player=game:GetService"Players".LocalPlayer
local function getchar()
return(Player.Character or Player.CharacterAdded:Wait())
end
local PlayerCharacter=getchar()Player.CharacterAdded:Connect(function(char)
PlayerCharacter=char
end)
print(PlayerCharacter)