|
| 29 Sep 2011 10:26 AM |
Brick = script.Parent Model = script.Parent.Parent.Roof.Neutral
while true do script.Parent.Touched:connect(function(hit) wait(0.5) if hit and hit.Parent:FindFirstChild('Humanoid') ~= nil then Brick.BrickColor = BrickColor.new(game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor) end
script.Parent.Touched:connect(function(hit) if hit and hit.Parent:FindFirstChild('Humanoid') ~= nil then Model.TeamColor = BrickColor.new(game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor) Model.TeamName = game.Players:GetPlayerFromCharacter(hit.Parent)Team.Name) Model.TargetHumanoids = True end end
output says; Turget Humanoids is not a valid member of Model. Workspace.Two Storey House.Second Floor.Button.Script:14: '=' expected near ')'
How do i sort it out? Or please post solution!!! |
|
|
| Report Abuse |
|
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 29 Sep 2011 10:29 AM |
First of all, where is line 14? Also, "Model.TeamColor =" What color? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 10:32 AM |
problem 1 solved, it was another script.
The colour is of the team that touched 'Brick' |
|
|
| Report Abuse |
|
|
Juniperr
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 6094 |
|
|
| 29 Sep 2011 10:34 AM |
| I don't understand what you are trying to do. Are you trying to make a spawn when people go to a certain area? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 10:34 AM |
And changed Brick colour, line 13, to team colour
Brick = script.Parent Model = script.Parent.Parent.Roof.Neutral
while true do script.Parent.Touched:connect(function(hit) wait(0.5) if hit and hit.Parent:FindFirstChild('Humanoid') ~= nil then Brick.BrickColor = BrickColor.new(game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor) end
script.Parent.Touched:connect(function(hit) if hit and hit.Parent:FindFirstChild('Humanoid') ~= nil then Model.TeamColor = TeamColor.new(game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor) Model.TeamName = game.Players:GetPlayerFromCharacter(hit.Parent)Team.Name) Model.TargetHumanoids = True end end
Script update |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Sep 2011 10:43 AM |
| oh sorry, didnt see your other post, its a turret that is neutral until a team takes controll of it by touching 'brick' then it can be captured by the enemy team and so forth |
|
|
| Report Abuse |
|
|
| |
|
| |
|