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

My GetPropertyChangedSignal isn't working. Do you know why?

Asked by 2 years ago

I have already tried to use while true do and while wait() do and while wait(1) do yet it hasn't worked. I checked the console and there are no errors. Here is the code:~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~

local statuss = game.ReplicatedStorage:WaitForChild("Statuss")

statuss:GetPropertyChangedSignal("Value"):Connect(function() -- Fires whenever the panic value changes

print("nfjowf")


if statuss.Value == true then
    print("nfjowf")
    script.Parent:WaitForChild("HumanoidRootPart").Position = Vector3.new(-20.54, -109.689, 418.496)
end
wait(0.1)

end)

1 answer

Log in to vote
0
Answered by 2 years ago

Did you try listening to the BoolValue.Changed event? The BoolValue.Changed event also passes the new value as a parameter in the function.

Ad

Answer this question