Hello Developers.
Today I was trying to make an intro for my game, and I wanted my logo to wave so I used TweenService to rotate my logo, But when I checked if everything was working in output it said " TweenInfo.new fourth arg should be a number for RepeatCount." And I am new at scripting so I don’t understand this error much. This is just the start of my intro but if anyone knows how to fix this please reply. here is my script:
local Ghost = script.Parent
local Speed = 0.9
local Side = false
local Blink = 0
local ts = game:GetService("TweenService")
local rotate1 = ts:Create(Ghost, TweenInfo.new(0.9, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, {Rotation = 30}))
local rotate2 = ts:Create(Ghost, TweenInfo.new(0.9, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, {Rotation = -30}))
while true do
if Side == true then
Ghost:TweenPosition(UDim2.fromScale(0.5,0.4),"InOut","Quad",Speed,true)
rotate1:Play()
else
Ghost:TweenPosition(UDim2.fromScale(0.5,0.6),"InOut","Quad",Speed,true)
rotate2:Play()
end
Side = not Side
wait(Speed)
end
have a nice day.