#Problems with tweening.

1 messages · Page 1 of 1 (latest)

tough turtle
#

I've been trying to make this model become larger then fade away. It is a mesh that was turned into a part so that might be what is causing the issue. When I have been trying to make it bigger, it didn't effect the model at all.

This is the code I've been using
local tweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(
1.5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
true,
0
)

local part = game.Workspace.Part

local properties = {
["Size"] = Vector3.new(6, 11, 38)
}

local tween = tweenService:Create(part, tweenInfo, properties)

tween:Play()
I am unsure on how to make this work and how to then implement the fading part.

lucid ravine
#

Tween:Create( property, TweenInfo, goal), not Tween:Create(instance, tweeninfo, property)

tough turtle
rain trellisBOT
#

studio** You are now Level 1! **studio

sweet dust
sweet dust
tough turtle
#

I have a blender animation of it

#

This is what I'm trying to do

#

but in studio instead

sweet dust
#

I humbly request a minute my queen

tough turtle
#

of course

sweet dust
#
local tweenService = game:GetService("TweenService")


local tweenInfo = TweenInfo.new(
    1.5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    0
)

local part = game.Workspace.Part

local properties = {
    ["Size"] = Vector3.new(6, 11, 38),
    ["Transparency"] = 0
}

local tween = tweenService:Create(part, tweenInfo, properties)

--// Do this when you want it to happen
part.Transparency = 1
part.Size = Vector3.new(0.1,0.1,0.1)
tween:Play()
--//
#

let me know if it works

tough turtle
#

Yeah it doesn't seem to be working

#

I might be putting the script in the wrong place though

#

or because it was a mesh

tough turtle
sweet dust
#

can you show me what the output says?

#

this thing here

#

open it, and then start the game

#

and send an ss of it

tough turtle
sweet dust
#

thats actually

#

wild

#

😭

#

holon try this

tough turtle
#

It works on this random triangular prism

sweet dust
#
task.wait(2)

local tweenService = game:GetService("TweenService")


local tweenInfo = TweenInfo.new(
    1.5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    0
)

local part = game.Workspace.Part

local properties = {
    ["Size"] = Vector3.new(6, 11, 38),
    ["Transparency"] = 0
}

local tween = tweenService:Create(part, tweenInfo, properties)

--// Do this when you want it to happen
part.Transparency = 1
part.Size = Vector3.new(0.1,0.1,0.1)
tween:Play()
--//
sweet dust
#

well

#

the problem is something else

#

probably about that mesh

tough turtle
rain trellisBOT
#

studio** You are now Level 2! **studio

tough turtle
#

the fading and stuff is working

#

but it won't scale for some reason

sweet dust
#

hold on

#
local tweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(
    1.5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    0
)

local part = game.Workspace.Part

function tweenModel()
    local tween = tweenService:Create(part, tweenInfo, {Transparency = 0})
    local tweenScale = tweenService:Create(part.Mesh, tweenInfo, {Scale = Vector3.new(1, 1, 1)})
    part.Transparency = 1
    part.Mesh.Scale = Vector3.new(0.1,0.1,0.1)

    tween:Play()
    tweenScale:Play()

end



--// Do this when you want it to happen

tweenModel()
#

try this

tough turtle
# sweet dust try this

wow thanks, it works! sorry for another question, but how would I make it fade away after the growing is done?

#

oh wait

#

I think I can do it by using the delay actually

sweet dust
#

nono the delay isnt that

#

the delay is the time before the animation starts

sweet dust
#
local tweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(
    1.5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    0
)

local Vanish = TweenInfo.new(
    5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    2
)

local part = game.Workspace.Part

function tweenModel()
    local tweenScale = tweenService:Create(part.Mesh, tweenInfo, {Scale = Vector3.new(1, 1, 1)})
    local tweenVanish = tweenService:Create(part, Vanish, {Transparency = 1})

    part.Mesh.Scale = Vector3.new(0.1,0.1,0.1)

    tweenVanish:Play()
    tweenScale:Play()
end



--// Do this when you want it to happen

tweenModel()
#

okey try this

tough turtle
sweet dust
#

glad to have been of help queen

tough turtle
sweet dust
#

go ahead

tough turtle
#

how do I upload an asset to the community

sweet dust
#

as in toolbox?

tough turtle
#

no wait actually

#

how do I export it as rxbm

#

wqith the script

sweet dust
#

you right click and do this

tough turtle
#

oh alright

#

that is all thanks