|
| 09 May 2013 07:43 PM |
| So if you find the character through play its just character. example: ScreenGui.Parent.Parent.Character, but I want to find the player through the character, would it just be player like, script.Parent.Player? |
|
|
| Report Abuse |
|
|
|
| 09 May 2013 07:43 PM |
So if you find the character through the player sorry I was typing this fast... |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 09 May 2013 07:44 PM |
game.Players:GetPlayerFromCharacter(Workspace.Desperian)
|
|
|
| Report Abuse |
|
|
|
| 09 May 2013 07:46 PM |
Yes
It would be that
----ssss------ |
|
|
| Report Abuse |
|
|
|
| 09 May 2013 07:46 PM |
| Sorry I was unclear, say there is a gun and I want that gun's bullet to be the players team color, would it be: tool.Parent.Player.TeamColor? |
|
|
| Report Abuse |
|
|
Postured
|
  |
| Joined: 02 Feb 2012 |
| Total Posts: 114 |
|
|
| 09 May 2013 07:48 PM |
bullet.BrickColor = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent).TeamColor
And that's fine, and all, but I still want to go kill a dragon. |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 09 May 2013 07:48 PM |
game.Players:GetPlayerFromCharacter(tool.Parent).TeamColor
|
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 09 May 2013 07:49 PM |
| Noooo, Post beat me to it. Oh well. |
|
|
| Report Abuse |
|
|
| |
|