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: how do i know when ### "position" property changes?

Previous Thread :: Next Thread 
thebijespun is not online. thebijespun
Joined: 24 Feb 2011
Total Posts: 400
23 Feb 2017 11:20 PM
this don't work

character:WaitForChild("Torso").Changed:connect(function(property)
end)


Report Abuse
reezy24 is not online. reezy24
Joined: 16 Oct 2016
Total Posts: 115
23 Feb 2017 11:26 PM
you shouldnt have to wait for torso

also, there is no code within the connection? how do you know this doesnt work

try using print
Report Abuse
thebijespun is not online. thebijespun
Joined: 24 Feb 2011
Total Posts: 400
23 Feb 2017 11:26 PM
no errors in the output, the only if statement is this which is the first part of the function:

if property == "Position then


Report Abuse
thebijespun is not online. thebijespun
Joined: 24 Feb 2011
Total Posts: 400
23 Feb 2017 11:26 PM
WaitForChild() does not do anything, it's good practice.
also, I'm not dumb.


Report Abuse
thebijespun is not online. thebijespun
Joined: 24 Feb 2011
Total Posts: 400
23 Feb 2017 11:28 PM
another note; this is inside a local script.


Report Abuse
TheShadowMessage is not online. TheShadowMessage
Joined: 21 Sep 2012
Total Posts: 10379
23 Feb 2017 11:31 PM
what are you using this for
there might be a less cringy method avilable
Report Abuse
thebijespun is not online. thebijespun
Joined: 24 Feb 2011
Total Posts: 400
23 Feb 2017 11:33 PM
a sound player based on elevation.
don't be salty if you don't know what's wrong, nobody knows everything. :>


Report Abuse
TheShadowMessage is not online. TheShadowMessage
Joined: 21 Sep 2012
Total Posts: 10379
23 Feb 2017 11:39 PM
just check position every X seconds
Report Abuse
thebijespun is not online. thebijespun
Joined: 24 Feb 2011
Total Posts: 400
23 Feb 2017 11:40 PM
thats inefficient and cringy-er method(no offense).
but hey, if there are no other solutions...


Report Abuse
TheShadowMessage is not online. TheShadowMessage
Joined: 21 Sep 2012
Total Posts: 10379
23 Feb 2017 11:43 PM
better than having changed fire hundreds of times a minute
Report Abuse
thebijespun is not online. thebijespun
Joined: 24 Feb 2011
Total Posts: 400
23 Feb 2017 11:44 PM
^ i have a sort of debounce for that


Report Abuse
RogueMage is not online. RogueMage
Joined: 28 Jan 2012
Total Posts: 1235
24 Feb 2017 01:42 AM
just check position every couple seconds

Torso position because of breathe animation so don't use that

kthx
Report Abuse
RogueMage is not online. RogueMage
Joined: 28 Jan 2012
Total Posts: 1235
24 Feb 2017 01:42 AM
Torso position changes constantly*
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
24 Feb 2017 03:43 AM
HumanoidRootPart.Changed:connect(function(prop)
if prop == 'CFrame' then
print('person moved their character')
end
end)


Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
24 Feb 2017 04:54 AM
Changed is not going to be fired when ### position is changed due to physics. It'll only fire when you explicitly set ### position.
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