I think it wont work since its an elevator that moves up and down
I gave them another approach using objects so that the door can tween to its position like lerping
No it’s not, it tps the player and then re-opens
so Its just an fixed elevator?
If yes then you can use what Choco1atte said.
We are talking about the door, right, that’s what the video showed?
1 Like
Yep, the door, the elevator doesnt move
Thank you all for your help!
I have now worked it out. And again, thank you so much for your help and time with this topic, @GuySalami, @X0BaconHairDude0X, @thom463s and @Dlbsp1983!
Final Script
local TweenService = game:GetService("TweenService")
local TOP_DOOR = script.Parent.Parent.Doors.TOP_DOOR
local SIDE_DOOR = script.Parent.Parent.Doors.SIDE_DOOR
local goal = {}
goal.Position = Vector3.new(5.35, -29.75, -46.05)
local tweenInfo = TweenInfo.new(5)
local tween1 = TweenService:Create(TOP_DOOR, tweenInfo, goal)
local tween2 = TweenService:Create(SIDE_DOOR, tweenInfo, goal)
script.Parent.ClickDetector.MouseClick:Connect(function()
tween1:Play()
wait(3)
tween2:Play()
end)
Thank you so much again!
4 Likes
No problem, just make sure you are specific about the elevator (not moving) and thanks choco1atte
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.