While true do loop not changing NumberValue

So I’am using varibles to change the motor AngularVelocity but it only changes once at the start and ignores the loop?

local speed = script.Parent
local throttle = script.Parent.Value

while true do
	speed.AngularVelocity = throttle.Value
	wait()
end

I’ve tried other things like this but they don’t seem to work either.

local speed = script.Parent.AngularVelocity
local throttle = script.Parent.Throttle

throttle.Changed:Connect(function(Property)
	if Property == "Value" then
		speed = throttle.Value
	end
	wait()
end)

Any help/feedback would be appreciated!

You are only continuously setting the same Value, which is why it won’t work.

Make sure the throttle.Value property changes or use another logic to set the AngularVelocity.