Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Tweening a part's size while moving still only sizes on its origin?

Asked by 3 years ago

I'm making a script on which on touch of a part it connects a part from server storage to your character, while this works when I try and tween in to size upwards onto the arm it stays to where its welded and sizes on its origin. I'm certain it might be because of the weld but in that case I won't know how to keep it on the arm while its tweening if removed. This is the script for tweening incase its to do with the script.

local TS = game:GetService("TweenService")
local part = script.Parent
local small = true
local goal = {}

local newSize = 2.05
wait(0.5)

local endSize = Vector3.new(1.05, newSize, 1.05)
local endPosition = part.Position + Vector3.new(0,(part.Size.Y/2) - (newSize/2),0)

    goal = {
        Size = endSize,
        Position = endPosition
    }

local   timeInSeconds = 1

local tweenInfo = TweenInfo.new(timeInSeconds)
local tween = TS:Create(part, tweenInfo, goal)
      tween:Play()

1
just keep tweaking the end position until it ends up the way you want it to, there's not much else you can do FirewolfYT_751 223 — 3y
0
I'll try that then oshawat00 62 — 3y
1
You could control the state of the part every frame using one of RunService's events with TweenService:GetValue to control the tween yourself chess123mate 5873 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

This question has been answered thanks for all the support I just figured I'd tween the C0 value.

Ad

Answer this question