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 |
|
|
| |
|
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
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 1439 |
|
|
| 19 Jul 2012 09:50 PM |
| Nevermind, found the problem. Thanks anyway! |
|
|
| Report Abuse |
|
|