I tried game.Players.localPlayer.Character.HumanoidRootPart:GetPropertyChangedSignal("CFrame"):connect(function() print("Worked") end) but when i moves it doesn’t print anything
Changed events don’t fire for physics-related properties.
1 Like
then how can i detect when it changes
Method 1:
while true do
local prop = BasePart.CFrame
--... do something with the CFrame
task.wait()
end
Method 2:
game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
local prop = BasePart.Position
--... do something with the position
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.