of     1   

TommyJay2003
#224520370Friday, September 01, 2017 3:26 PM GMT

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.
LeafDoode
#224520450Friday, September 01, 2017 3:28 PM GMT

local UIS = game:GetService("UserInputService") ################################## ## k.KeyCode == Enum.KeyCode.Q then --code end end) ̿̿ ̿̿ ̿̿ ̿'̿'\̵͇̿̿\з= ( ▀ ͜͞ʖ▀) =ε/̵͇̿̿/’̿’̿ ̿ ̿̿ ̿̿ ̿̿
TommyJay2003
#224520603Friday, September 01, 2017 3:32 PM GMT

I know that but how do I access the players character which is in the workspace from that script.
z_wo
#224521045Friday, September 01, 2017 3:41 PM GMT

So game.Players.LocalPlayer.Character :D Please tell me if this Works (: 0 f
igrach2
#224521705Friday, September 01, 2017 3:56 PM GMT

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)
TommyJay2003
#224522115Friday, September 01, 2017 4:05 PM GMT

Thanks everyone I have done it now, I do appreciate it :)

    of     1