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: Please help me with this concept!

Previous Thread :: Next Thread 
coltonrl is not online. coltonrl
Joined: 08 Oct 2008
Total Posts: 208
10 Nov 2012 10:39 PM
Ok, I want to gradually increase my players WalkSpeed at +1 per second. Heres what I know.


x=Workspace.coltonrl.Humanoid.WalkSpeed
function IncreaseWalkspeed
while true do
wait(1)
x+1
end end
IncreaseWalkspeed()

Please help me with why this doesn't work and fix it so I can learn from this.
Thanks.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
10 Nov 2012 10:41 PM
local humanoid = game.Workspace.coltonrl.Humanoid
while true do
humanoid.WalkSpeed = humanoid.WalkSpeed + 1
wait ( 1 )
end

deathCast();
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
10 Nov 2012 10:42 PM
omg chop ur bcak

¤¤ †KMXD† ¤¤
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
10 Nov 2012 10:47 PM
cus i wus bord n i had free tiem from da war grup i r managing

deathCast();
Report Abuse
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
10 Nov 2012 10:49 PM
    while wait(1) do
      for _, v in ipairs(game.Players:GetPlayers()) do
        pcall(function()
          v.Character.Humanoid.WalkSpeed = v.Character.Humanoid.WalkSpeed + 1
        end)
      end
    end
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
10 Nov 2012 10:50 PM
by "players" he meant his character's walkspeed, not Players' walkspeed..

deathCast();
Report Abuse
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
10 Nov 2012 11:27 PM
while true do
wait(1)
workspace.coltonrl.Humanoid.Walkspeed = workspace.coltonrl.Humanoid.Walkspeed + 1
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