How To Tween Wind Direction

ok, I’m gonna make this short as possible, I’m trying to tween wind direction but I’m having problems with it, theres an error popping up saying " Unable to cast to Dictionary"

heres the code

local TweenService = game:GetService("TweenService")

local tInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)

local wind1 = TweenService:Create(game:GetService("Workspace").GlobalWind, tInfo, {Vector3.new(-35.183, 0, 0)})

local wind2 = TweenService:Create(game:GetService("Workspace").GlobalWind, tInfo, {Vector3.new(0,0,0)})

while true do

task.wait(7)

wind1:Play()

task.wait(7)

wind2:Play()

end
1 Like

you’re getting the error because you never specified a property you want to tween

here’s an example

local HoverEffect = TweenService:Create(TextButton, tweenInfo, {BackgroundTransparency = 0.3})

here i want to tween BackgroundTransparency

2 Likes

oh my god thank you so much it worked, i’m so stupid lol

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.