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: Speed Detector GUI on a Car?

Previous Thread :: Next Thread 
Reyne is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
23 Jul 2012 09:24 PM
Well then there's not a Speed property of VehicleSeat.

† KMXD †
Report Abuse
Reyne is not online. Reyne
Joined: 23 Jan 2008
Total Posts: 586
23 Jul 2012 09:25 PM
Oh, okay.
Report Abuse
qaz32152 is not online. 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 is not online. 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
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
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 is not online. 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
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