New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do I script a block to rotate and look like wings?

Asked by 11 days ago
Edited 11 days ago

Pretty much, I want to make a script that will make the wings repeat a rotating movement that makes them look like they're fluttering (I'm not sure what other words to use). I've tried using BodyPosition and CFrame, but I'm not sure how to translate it to rotating the wings, so nothing so far has worked. Any help or pointers would be appreciated, as I'm mostly just not sure where to start. Thank you!

1 answer

Log in to vote
0
Answered by 11 days ago
Edited 11 days ago

Try using CFrame.Angles instead of using a flat out CFrame to rotate an object.

Example:

local brick = workspace.Part

for i = 1,5 do --- rotates the wings forwards
brick.CFrame = CFrame.Angles(brick.CFrame.Angles + x,y,z)
end

for i = 1,5 do --- rotates the wings backwards
brick.CFrame = CFrame.Angles(brick.CFrame.Angles + x,y,z)
end
0
It still didn't work, it said that Angles isn't a valid member of CFrame. The only thing I changed was brick to my variable for the wing. Sottedpath 2 — 10d
0
Try using CFrame.new(CFrame.Angles(brick.CFrame.Angles + x,y,z)) it might change the outcome. Tokyo7979 16 — 10d
0
What kind of movement would you like them to do? spot6003 24 — 5d
Ad

Answer this question