Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 2 years ago

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.

0
Have you tried union ? xJathur95x 129 — 2y

1 answer

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
2 years ago

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.

Ad

Answer this question