Typocrite
|
  |
| Joined: 28 Aug 2013 |
| Total Posts: 6856 |
|
|
| 19 Aug 2015 09:33 PM |
if a player clicks a button, how am I to get to their character from there? I tried this piece of crap
function use(hit) local p = game.Players:getPlayerFromCharacter(hit.Parent) if p then print("yaaaaaaaaaaaaaaay") end
clearly this is not a touched function so how do I do this? |
|
|
| Report Abuse |
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 19 Aug 2015 09:37 PM |
if the script is a local script like it probably should be then you can just do game.Players.LocalPlayer.Character |
|
|
| Report Abuse |
|