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
 

MaxSpeed Change Script Issues

Previous Thread :: Next Thread 
mystic48 is not online. mystic48
Joined: 02 Apr 2009
Total Posts: 1439
19 Jul 2012 08:45 PM
Hey everyone, I'm trying to make a script that scans all the players in a car (named model = "Car") and changes the maxspeed and forces the car to stop.

Heres the code I have so far


function onClicked()
p = game.Players:GetChildren()
for i = 1, #p do
p[i].Character.Car.VehicleSeat.Maxspeed = 0
end
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)


For some reason, I can't make the script work. I'm not familair with scripting as Computer Science is "not my forte", any help would be appreciated!
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
19 Jul 2012 08:52 PM
VechicleSeat.MaxSpeed
Report Abuse
mystic48 is not online. mystic48
Joined: 02 Apr 2009
Total Posts: 1439
19 Jul 2012 09:42 PM
Changed the Maxspeed to "MaxSpeed" and it still doesn't work, sadly :(
Report Abuse
mystic48 is not online. mystic48
Joined: 02 Apr 2009
Total Posts: 1439
19 Jul 2012 09:50 PM
Nevermind, found the problem. Thanks anyway!
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