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
 

{URGENT} How do I change the walkspeed of a certain team

Previous Thread :: Next Thread 
QuarterTerm is not online. QuarterTerm
Joined: 29 Jun 2013
Total Posts: 6795
24 Nov 2013 07:14 PM
The name of the team: "Humans"
The walkspeed all the people in the team will have: 45

Can someone code this for me?

You just got Quarter-Term'd
Report Abuse
QuarterTerm is not online. QuarterTerm
Joined: 29 Jun 2013
Total Posts: 6795
24 Nov 2013 07:17 PM
thanks?

You just got Quarter-Term'd
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
24 Nov 2013 07:21 PM
players = game.Players:GetChildren ()
if players.TeamColor == "TEAM COLOR HERE" then
players.Character.Humanoid.Walkspeed = 45
end

Probably wouldn't work.
Report Abuse
MixCorp is not online. MixCorp
Joined: 27 Jun 2013
Total Posts: 30
24 Nov 2013 07:21 PM
This is easy to do. Change TC To the teams color. So if Humans Team Color was Really red this is the code.

TC = "Really red"
for i,v in pairs(game.Players:children()) do
if v and v.Character and v.TeamColor == TC then
v.Character.Humanoid.WalkSpeed == 45
end
end

Report Abuse
MixCorp is not online. MixCorp
Joined: 27 Jun 2013
Total Posts: 30
24 Nov 2013 07:27 PM
TC = "Really red"
for i,v in pairs(game.Players:children()) do
if v and v.Character and v.TeamColor == TC then
v.Character.Humanoid.WalkSpeed = 45
end
end
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
24 Nov 2013 07:28 PM
I was close...ish
Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
24 Nov 2013 07:32 PM
nP = game.Players:GetChildren()
for i = 1, #nP do
if nP[i].TeamColor = game.Teams["TEAM NAME HERE"].TeamColor then
nP[i].Character.Humanoid.Walkspeed == 45
end
end
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