generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Output keeps telling me things i dont know how to sort out.

Previous Thread :: Next Thread 
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
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 is not online. 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
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
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 is not online. 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
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
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
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
29 Sep 2011 10:40 AM
AMPP
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
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
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
29 Sep 2011 10:49 AM
please
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
29 Sep 2011 11:19 AM
BUMP
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image