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: Walkspeed?

Previous Thread :: Next Thread 
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 05:42 AM
How do I specifically referance the walkspeed of a player locally in seperate scripts?
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
13 Aug 2013 06:25 AM
CheckedSpeed = 0
CheckedSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed


I don't really get where you're going at, but this is what I got.

Possibru.
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 07:03 AM
I mean the max walkspeed of a player not their current speed...
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
13 Aug 2013 07:05 AM
...
Your max walkspeed is your current walkspeeed....
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 12:50 PM
No, you dont understand. I am taking about the ACTUAL current walkspeed, is there any way to measure it?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
13 Aug 2013 12:52 PM
Er... Torso.Velocity.magnitude maybe..?
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 12:53 PM
For example, how would I put a script which INCLUDES the current speed of a specific player?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
13 Aug 2013 12:55 PM
Their SPEED is their Torso.Velocity.magnitude

Their WALKSPEED is their Humanoid.WalkSpeed
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 12:55 PM
But how do I refer SPECIFICALLY to a player and have THEIR current speed recorded in a separate script?
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
13 Aug 2013 12:58 PM
Instance.new("StringValue")
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 01:01 PM
My script says this:

Flightspeed = Factor*Humanoid.WalkSpeed

So I need the Flightspeed of a Humanoid to DEPEND on the WalkSpeed...
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 01:04 PM
Torso.Velocity.magnitude.instance.new ("stringvalue")

If I use this, will the velocity of the torso at that time appear in the string brackets?

Can anyone prove that its legit and works?
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
13 Aug 2013 01:05 PM
Um.
p = Torso.Velocity.magnitude
s = Instance.new("NumberValue")
s.Value = p


I just realized magnitude is a number.
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 01:06 PM
For this other bit, I need: Flightspeed=Factor*Walkspeed

Exaample, if a robloxian has a walkspeed of 16 and their factor is 2.5 then they fly at speed 40.
Report Abuse
thepizz is not online. thepizz
Joined: 05 Mar 2011
Total Posts: 2612
13 Aug 2013 01:08 PM
valprnt = Instance.new("StringValue")
val = valprnt.Value
speed = tostring(game.Player.Torso.Velocity.magnitude)
val = speed

I didnt test this, but I think it should work.
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 01:16 PM
I tried it, didnt work and it broke something :/
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
13 Aug 2013 01:19 PM
That is when you post the output.

You're in immortal danger bow down praise to your lord and savior.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
13 Aug 2013 01:19 PM
What are y trying to do?
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 01:20 PM
Ok, will this work?

local game.Players.Torso.Velocity.magnitude ("StringValue")

How do I fix it so that the speed of the player appears in the brackets?

And I need the full script that works not just pieces, can anyone help out?
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
13 Aug 2013 01:22 PM
wow lol
Report Abuse
LaggerPolluter is not online. LaggerPolluter
Joined: 03 Sep 2011
Total Posts: 342
13 Aug 2013 01:24 PM
Its a script on a flying tool, im trying to tie the flying speed of players to their walkspeed and measure their current speed so that if their walkspeed changes so will the flightspeed of that player and compare the result.
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