I know that’s a bit confusing, But basically I want the part to sort of shake side to side within an orientation I specify.
That’s probably more confusing than the title, aaaaa very hard to explain.
Current script I have:
while true do
script.Parent.Orientation = math.random(-10,10)
wait(.1)
end
1 Like
I don’t think it’s that hard to explain. Your information is just relatively vague. That being said, if you’re looking to “twitch” a part, I would suggest using a CFrame operation instead of modifying the Orientation (which it’s a Vector3 value, not a number value).
while true do
local angularCFrame = CFrame.Angles(math.rad(math.random(-10, 10)), math.rad(math.random(-10, 10)), math.rad(math.random(-10, 10)))
script.Parent.CFrame = script.Parent.CFrame * angularCFrame
wait(0.1)
end
3 Likes
Had to edit it a bit and add another peice of script underneath to acheive what i wanted, But looks good! Thanks.