Abcdefghijklmnopqrst

abcdefghijklmnopqrstabcdefghijklmnopqrst

1 Like

Try changing CFrame to something more specific like Position or something.

game.Players.LocalPlayer.Character.HumanoidRootPart:GetPropertyChangedSignal("Position"):Connect(function()
	
	print("Localplayer's CFramechanged")
	print("Well, not really")
end)

I also suggest you define the path using multiple variables. This way, you can use WaitForChild()

local lp = game:GetService("Players").LocalPlayer
local character = lp.Character or lp.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart") --You could also do character.PrimaryPart

local  connection = hrp:GetPropertyChangedSignal("CFrame"):Connect(function()
	
	print("Localplayer's CFrame changed")
	
end)

I don’t know why it doesn’t work but you can try this instead

local runService = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")

runService.Stepped:Connect(function()
   if humanoid.MoveDirection.Magnitude > 0 then
      print("Localplayer's CFrame changed")
   end
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.