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 » Scripters
Home Search
 

Re: An event that fires whenever a torso moves.

Previous Thread :: Next Thread 
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
23 Jun 2015 03:37 PM
How would I do that? If I walk, for example, the "Changed" event for the torso's position does not fire.
Report Abuse
gunter5 is not online. gunter5
Joined: 15 Mar 2011
Total Posts: 737
23 Jun 2015 03:54 PM
lets say the script is in starterpack.

player = script.Parent.Parent.Parent

player.Character.Torso.Position.Changed:connect(function()
--code to write here.
end)
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
23 Jun 2015 03:56 PM
Changed doesn't fire when the torso is moves, it only fires when the Position property is changed.
Report Abuse
KlinkStudios is not online. KlinkStudios
Joined: 31 Oct 2013
Total Posts: 563
23 Jun 2015 03:57 PM
...
"player.Character.Torso.POSITION.Changed:connect(function()
--code to write here.
end)"

u sicko!
Report Abuse
Mitko0o1 is not online. Mitko0o1
Joined: 30 Nov 2010
Total Posts: 5725
23 Jun 2015 04:01 PM
You are both wrong.

You cannot call "Changed" on a property, your event should look like this:

player.Torso.Changed:connect(function(property)
if property == "Position" then
print(player.Torso.Position)
end
end)
Report Abuse
gunter5 is not online. gunter5
Joined: 15 Mar 2011
Total Posts: 737
23 Jun 2015 04:01 PM
ohhh i see now. the torso's position cannot change because the game is pairing the torso to the models position.. so even if you move the torso "doesnt" move. ok your going to have to make a different factor to base that off of. or you could simply use key:keylower() for each movement key.
Report Abuse
gunter5 is not online. gunter5
Joined: 15 Mar 2011
Total Posts: 737
23 Jun 2015 04:03 PM
im sure im missing something very obvious here and probably look like a nub. but hopefully someone will come along to help
Report Abuse
gunter5 is not online. gunter5
Joined: 15 Mar 2011
Total Posts: 737
23 Jun 2015 04:04 PM
nevermind didnt see above posts e.e
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
24 Jun 2015 03:38 AM
Nevermind, I just use Stepped.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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