|
Car = Game.Workspace.Car.VehicleSeat
while true do
if Car.Throttle == 1 then
print "1"
end
wait()
end
Why won't this work? I am trying to print 1 when the Throttle of this car is 1 |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
print("1") |
|
blox6137Join Date: 2008-11-23 Post Count: 1109 |
@CrowClaws, either work, so I doubt that will fix it. |
|
|
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
game.Workspace
game has to be lowercase I believe. |
|
|
I have another question. How do I make it where it prints 1 when the speed is 1
There is no speed in Vehicle seat |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
Isn't throttle speed??? In roblox atleast. |
|
|
|
I wish you could go inside the scripts behind properties. |
|
|
it might be the wheels that have speed idk |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
Well couldn't you find the speed by doing something like
A = Wheels.Position
wait(1)
B = Wheels.Position
Speed = B - A
Obviosuly with more stuff but, It would take the distance made in 1 second.
|
|
|
Ok, here is what I have but it is still not working.
while true do
A = game.Workspace.Car.something.Position
wait(1)
B = game.Workspace.Car.something.Position
Speed = A - B
print(speed)
end
|
|
|
Someone please correct this. |
|
|
|
@Crow
-plm 2 fce-
it culd b game or Game
an it culd b w/ or w/o parentitees |
|
|
Why is the script not working? |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
I said something like it. Remember position is x,y,z so.... |
|
|
Ok the script finally works. It was just a simple spelling error. Now how do you convert the Vector3 x,y,z coordinate to a speed. BTW I am using velocity. |
|
|
You don't convert a Vector3 to a speed. You work with several Vector3s to find an acceleration, which you can interpret to a speed. |
|