I am trying to make a spinning part that first starts rotating slowly, and then gradually spins faster.
This is what the spinning part looks like in action:
I want the AngularVelocity to be changed by a script, so it will gradually change the speed, but whenever I play the game, the platform keeps spinning the same speed I set it to in properties. I don’t get any errors or anything, but it’s just like the script isn’t running. (The script is in the HingeConstraint)
speed = script.Parent.AngularVelocity
speed = 0
while true do
wait(1)
speed += 1
end
I am not sure if this is a scripting issue or a physics issue, but I am putting it under Scripting Support because I think the problem is from the script.
If you have any ideas on how this can be solved, please let me know! I would really appreciate it.
local speed = script.Parent.AngularVelocity
speed.MaxToruqe = math.huge -- set the maximum length it can go
speed.AngularVelocity = Vector3.new(0, 0, 0) -- AngularVelocity is a vector3, not a number
while true do
wait(1)
speed.AngularVelocity += Vector3.new(1, 0, 0)
end
If it’s parented to the AngularVelocity:
local speed = script.Parent
speed.MaxToruqe = math.huge
speed.AngularVelocity = Vector3.new(0, 0, 0)
while true do
wait(1)
speed.AngularVelocity += Vector3.new(1, 0, 0)
end
For clarification, is the script’s Parent the AngularVelocity or is it parented to something else?
well than you are right i did think because of hes value it was just a normal value like 1 ty for giving me information on that i never worked with any rotating part’s and stuff but i was trying to use it soon