Hello,
I just made a script that makes a part move very smoothly with a BodyPosition. but I am trying to do the same smoothly with rotation/orientation.
The problem is that, the Part orient very fast, and I don’t want that.
can someone help me?
local info = Tweeninfo.new(URTIMEHERE)
local properties = {
Rotation = Vector3.new(0,0,YOURANGLEHERE)
}
local tween = game:GetService("TweenService"):Create(part,info,properties)
tween:Play()
You would just add another property onto the 3rd argument.
local info = Tweeninfo.new(URTIMEHERE)
local properties = {
Position = Vector3.new(x,y,z)--YOURPOSITIONHERE
Rotation = Vector3.new(0,0,YOURANGLEHERE)
}
local tween = game:GetService("TweenService"):Create(part,info,properties)
tween:Play()
I’ve reformatted the script to make it easier to read.
local properties = { FIRST POSITION Position = Vector3.new(x,y,z)–YOURPOSITIONHERE) SECOND POSITION Position = Vector3.new(x,y,z)–YOURPOSITIONHERE)
Rotation = Vector3.new(0,0,YOURANGLEHERE)
}
something like:
local properties1 = {
Position = Vector3.new(x,y,z)
}
local properties2 = {
Position = Vector3.new(x,y,z)
}
local tween1 = game:GetService(“TweenService”):Create(part,info,properties1)
local tween2 game:GetService(“TweenService”):Create(part,info,properties2)
tween1:Play()
tween2:Play()