Reyne
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 586 |
|
|
| 23 Jul 2012 09:17 PM |
local speed = game.Players.LocalPlayer.Character.Ferrari.VehicleSeat.Speed
while true do wait() script.Parent.Text = "Speed: " ..speed end
^Speed doesn't seem to work, I don't know the Speed value thing on Class: VehicleSeat.
Any help?
|
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 09:19 PM |
while wait() do local speed = game.Players.LocalPlayer.Character.Ferrari.VehicleSeat.Speed script.Parent.Text = "Speed: " ..speed end
Try this... maybe?
† KMXD †
|
|
|
| Report Abuse |
|
|
Reyne
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 586 |
|
|
| 23 Jul 2012 09:22 PM |
its giving this output: Speed is not a valid member of VehicleSeat |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 09:24 PM |
Well then there's not a Speed property of VehicleSeat.
† KMXD † |
|
|
| Report Abuse |
|
|
Reyne
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 586 |
|
| |
|
qaz32152
|
  |
| Joined: 21 Jul 2006 |
| Total Posts: 6920 |
|
|
| 23 Jul 2012 09:27 PM |
ocal speed = game.Players.LocalPlayer.Character.Ferrari.VehicleSeat.Speed
while true do wait() script.Parent.Text = "Speed: " ..speed.Value end
You forgot .Value |
|
|
| Report Abuse |
|
|
Reyne
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 586 |
|
|
| 23 Jul 2012 10:00 PM |
| That didin't seem to work either, its okay. |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 10:44 PM |
function Speed() poss = game.Players.LocalPlayer.Character.Ferrari.VehicleSeat.Position wait(0.5) posss = game.Players.LocalPlayer.Character.Ferrari.VehicleSeat.Position pos = (poss-posss).magnitude --Forgot the thingie you wanted to show speed on thingie.Name = "Speed: " ..pos end
game.Players.LocalPlayer.Character.Ferrari.VehicleSeat.Position.Changed:connect(Speed)
|
|
|
| Report Abuse |
|
|
DoctorEvo
|
  |
| Joined: 22 Apr 2008 |
| Total Posts: 199 |
|
|
| 23 Jul 2012 11:15 PM |
| Yeah, of COURSE "Speed is not a valid member of VehicleSeat." There is no "Speed" object in BasePart. Try Velocity.magnitude instead, it's the same thing as speed. |
|
|
| Report Abuse |
|
|