if game.Player.LocalPlayer.Name.HumanoidRootPart.Anchored = true then print("Player is anchored") end
Use GetPropertyChangedSignal()
(this is a local script):
local player = game.Players.LocalPlayer player.CharacterAdded:Connect(function(char) char.HumanoidRootPart:GetPropertyChangedSignal("Anchored"):Connect(function() if char.HumanoidRootPart.Anchored then print(player.Name .. " is anchored") end end) end)
GetPropertyChangedSignal(property)
fires when the value of property
changes. It does this every time it changes.
I don't know when you want it to print out, but this should work. I hope this helped. You could also use GetPropertyChangedSignal to print out when the character's humanoid root part or torso is changed. Thanks and keep on scripting :D
local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() if char:FindFirstChild("HumanoidRootPart") then -- Change to "Torso" if R6 if char.HumanoidRootPart.Anchored == true then print("Anchored") else print("Unachored") end end
while true do if game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored == true then print("Player is anchored") end wait() end