|
| 13 Aug 2013 05:42 AM |
| How do I specifically referance the walkspeed of a player locally in seperate scripts? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Aug 2013 07:03 AM |
| I mean the max walkspeed of a player not their current speed... |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2013 07:05 AM |
... Your max walkspeed is your current walkspeeed.... |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Aug 2013 12:52 PM |
| Er... Torso.Velocity.magnitude maybe..? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Aug 2013 12:55 PM |
Their SPEED is their Torso.Velocity.magnitude
Their WALKSPEED is their Humanoid.WalkSpeed |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 26 Mar 2009 |
| Total Posts: 1971 |
|
|
| 13 Aug 2013 12:58 PM |
| Instance.new("StringValue") |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 13 Aug 2013 01:16 PM |
| I tried it, didnt work and it broke something :/ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
| |
|
|
| 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 |
|
|