|
| 11 Feb 2017 03:43 PM |
| How would I connect the character to the player? I have a script that is inside of the character, and it is trying to define the TeamColor of the player. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 11 Feb 2017 03:44 PM |
| http://wiki.roblox.com/index.php?title=API:Class/Players/GetPlayerFromCharacter |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Feb 2017 04:02 PM |
Would you like to see the malfunctioning script?
local character = script.Parent local player = game.Players:GetPlayerFromCharacter(character) SplatColor = player.TeamColor
function blood(pos) local p = Instance.new("Part",game.Workspace) p.BrickColor = BrickColor.new(SplatColor) end
|
|
|
| Report Abuse |
|
|