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: Walkspeed Script. Will this work?

Previous Thread :: Next Thread 
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 11:37 AM
I was thinking somthing like this...
I dont think it will work...
It's suppost to change everyone walkspeed

playerspeeda = game.Players:GetChildren()
game.Workspace.playerspeeda.Huminoid.Walkspeed = 50

Then To go back to normal...

playerspeedb = game.Players:GetChildren()
game.Workspace.playerspeedb.Huminoid.Walkspeed = 16

Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 11:39 AM
I need help. Someone please help
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
05 Jan 2014 11:39 AM
:GetPlayers() creates a table. If you are trying to change all players walkspeed do this:

for _,v in pairs(game.Players:GetPlayers()) do
if v.Character.Humanoid then
v.Character.Humanoid.Walkspeed = 50
end
end

for _,v in pairs(game.Players:GetPlayers()) do
if v.Character.Humanoid then
v.Character.Humanoid.Walkspeed = 16
end
end
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:02 PM
@HIB won't work...
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:06 PM
Can Anyone Help Me?
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:12 PM
CAN ANYONE HELP ME?
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:15 PM
HELP! HELP MEH
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:15 PM
SOMEBODY HELP ME NOW!
Report Abuse
owenrules12 is not online. owenrules12
Joined: 26 Mar 2009
Total Posts: 402
05 Jan 2014 12:17 PM
local Speed = 16 -- Edit the variable here to define the speed
for _, v in pairs(game:GetService("Players"):GetChildren()) do
v['Character']['Humanoid']['WalkSpeed'] = Speed
end


Your errors:
1) Script completely wrong.
2) Mis-spelled WalkSpeed and Humanoid.

Second script errors:
3) Needed a capital S in WalkSpeed.
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:27 PM
Another Idea. Since im only gonna have 6 players in game.

Player1 = game.Players:GetFirstChild()
game.Workspace.Player1.Huminoid.WalkSpeed = 50
Player2 = game.Players:GetSecondChild()
game.Workspace.Player2.Huminoid.Walkspeed = 50
Player3 = game.Players:GetThirdChild()
game.Workspace.Player3.Huminoid.WalkSpeed = 50
Player4 = game.Players:GetFourthChild()
game.Workspace.Player4.Huminoid.WalkSpeed = 50
Player5 = game.Players:GetFifthChild()
game.Workspace.Player5.Huminoid.WalkSpeed = 50
Player6 = game.Players:GetSixthChild()
game.Workspace.Player6.Huminoid.WalkSpeed = 50
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
05 Jan 2014 12:29 PM
@dpearce

Those aren't valid methods.
Report Abuse
owenrules12 is not online. owenrules12
Joined: 26 Mar 2009
Total Posts: 402
05 Jan 2014 12:31 PM
@Dpearce - Read my reply, it will answer your question and it provides the script you require.
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:33 PM
Ok. Im just new at scripting, so please bare with me.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
05 Jan 2014 12:34 PM
http://wiki.roblox.com/index.php/Players

This gives all the info you need for what you can call with the Players Service.
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 12:43 PM
So, now how do i revert to regular speed?
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
05 Jan 2014 01:08 PM
How to revert to regular speeD?
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
05 Jan 2014 01:30 PM
Use mine but wherever it says Walkspeed change it to WalkSpeed
Report Abuse
TheJKM98 is not online. TheJKM98
Joined: 20 Dec 2010
Total Posts: 511
05 Jan 2014 01:54 PM
local kids = game.Players:GetChildren()

for i = 1 , #kids do
kids[i]:FindFirstChild("Humanoid").WalkSpeed = 50
wait(60)--wait one minute
kids[i]:FindFirstChild ("Humanoid").WalkSpeed = 16
end
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
05 Jan 2014 02:13 PM
That one could break. It would be safer to do:

local kids = game.Players:GetPlayers()
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