Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

(DUPE)Why is :GetPropertyChangedSignal("Position") non-functional with physics?

Asked by 2 years ago
Edited 2 years ago

DUPE of this post

OP below:

`I am currently creating a project involving updating something every time the position is updated via physics, but I am currently dumbfounded on this issue, where the :GetPropertyChangeSignal() does not work. At all.

script.Parent:GetPropertyChangedSignal("Position"):Connect(function()
    print("WHY")
end)

This ServerScript, placed in a part, should print "WHY" to the console every time the part is moved via physics. Instead, it only moves when the part is moved serverside. This seems like some sort of internal bug at this point.`

1 answer

Log in to vote
1
Answered by 2 years ago

Make sure you're not using a LocalScript, since those don't run in the workspace. Also make sure your part is moving on the server side and not the client side, otherwise your script won't see it (demonstration)

0
Forgot to mention this in the OP. Sorry. The part is infact in a Script, but it is running in the workspace. I'll try running it in the ServerScriptService and report back. evanultra01 38 — 2y
0
^ Misunderstanding. I meant that i will try running it on the server. evanultra01 38 — 2y
0
^^ I don't see a way to make it work with physics, however. evanultra01 38 — 2y
0
^^^ Wow, fourth comment. I found in another post that it is easier to use RunService. evanultra01 38 — 2y
Ad

Answer this question