I have a sliding door basically and I wanted it to open and all that jazz and I want to to open using Vector3 instead of CFrames
Heres the script, lines 9 - 12 are where you would tell it to move, I had CFrames there but I removed them because Id rather use Vector3 it would be easier. I just dont know how Id go about doing this?
local TweenService = game:GetService("TweenService")
local leftdoor = script.Parent:WaitForChild("LeftDoor")
local rightdoor = script.Parent:WaitForChild("RightDoor")
local tweeiningInformation = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
local leftdoorOpen = Vector3.new(0,5,0)
local rightdoorOpen = Vector3.new(0,5,0)
local leftdoorClosed = Vector3.new(0,0,0)
local rightdoorClosed = Vector3.new(0,0,0)
local tween1Open = TweenService:Create(leftdoor, tweeiningInformation, leftdoorOpen)
local tween1Closed = TweenService:Create(leftdoor, tweeiningInformation, leftdoorClosed)
local tween2Open = TweenService:Create(rightdoor, tweeiningInformation, rightdoorOpen)
local tween2Closed = TweenService:Create(rightdoor, tweeiningInformation, rightdoorClosed)
script.Parent.HitDetector1.Touched.Connect(function(hit)
tween1Open:Play()
tween2Open:Play()
wait(3)
tween1Closed:Play()
tween2Closed:Play()
end)
script.Parent.HitDetector2.Touched.Connect(function(hit)
tween1Open:Play()
tween2Open:Play()
wait(3)
tween1Closed:Play()
tween2Closed:Play()
end)
So I attemped some Vector3 stuff and I got the weirdest error ever?
It errors "Unable to cast to Dictionary"
Thanks for your time.

3 comments
The last argument of Create needs to be a dictionary of things to tween ie {Position = Vector3.new(0,5,0)}
What do you mean? Is there a wiki or a better example?
Yes there is a wiki page on it with a example http://wiki.roblox.com/index.php?title=API:Class/TweenService