I made a script in a modulescript that moves a part. I used tweenservice to move it. But it moves the part instantly, and the vector is not correct, it should go up, not down.
script that calls it:
local yes = require(game.ReplicatedStorage.ModuleScript) yes.moveapart(game.Workspace.Part,Vector3.new(0,5,0),1)
model script:
local module = {} function module.moveapart(part,vector,duration) local twen = game:GetService("TweenService") local tweeninfo = TweenInfo.new(duration,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0) local e = {Position = vector;} local d = twen:Create(part,tweeninfo,e) d:Play() end return module
ty sir