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
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 546 |
|
|
| 05 Jan 2014 11:39 AM |
| I need help. Someone please help |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 546 |
|
| |
|
dpearce
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 546 |
|
| |
|
dpearce
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 546 |
|
| |
|
dpearce
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 546 |
|
| |
|
dpearce
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 546 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 05 Jan 2014 12:29 PM |
@dpearce
Those aren't valid methods. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 546 |
|
|
| 05 Jan 2014 01:08 PM |
| How to revert to regular speeD? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|