-
What do you want to achieve? a wing flapping effect
-
What is the issue? when I run the code it works, but when I play the game as the character the wigs don’t flap
here’s a video of what’s happening (first half is in game, second is when it’s run in studio)
https://gyazo.com/ab164043c4591151ca3a6e8cf83c4f2f
- What solutions have you tried so far? none, I’m not sure what to do
here’s the script for one of the wings if it helps
-- services, variables and functions
local wing = script.Parent
local TweenService = game:GetService("TweenService")
local ogPosition = wing.Position
local Info = TweenInfo.new(0.1)
local goal = {}
goal.Orientation = Vector3.new(0,-90,0)
goal.Position = ogPosition
local firstTween = TweenService:Create(wing, Info, goal)
local secondInfo = TweenInfo.new(0.1)
local secondgoal = {}
secondgoal.Orientation = Vector3.new(0,-70,0)
secondgoal.Position = ogPosition - Vector3.new(-0.16,0,0.22)
local secondTween = TweenService:Create(wing, secondInfo, secondgoal)
-- code
while true do
firstTween:Play()
wait(0.1)
secondTween:Play()
wait(0.1)
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.