Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My script to make a model move wont work but its working on a part?

Hello,

I was trying to make a whole model slide with my script

This is the script i using now;

local TweenService = game:GetService("TweenService")

local part = script.Parent:GetChildren()

local goal = {}
goal.Position = Vector3.new(0,100,0)

local tweeninfo = TweenInfo.New(90)

local tween = TweenService:Create(part, tweeninfo, goal)

tween:Play()

But that script dont work to move a whoel model.

1 comment

0

Have you tried union ?

1 answer

A few issues here;

First off, your setting a Vector3 as the destination for MULTIPLE parts. This would make every part tween to that position. Im' not sure that's what you are trying to achieve. You could try tweening one part, but have every other part constantly change its position relative to the part that's tweening. You could try a weld, but i'm not sure that would work.

This discussion is preserved as it was. New answers, comments, and votes are closed.