1 local TweenService = game.GetService("TweenService")
2 local door1 = script.Parent:WaitForChild("Door1")
3 local tweeningInformation = TweenInfo.new(
4 0.5,
5 Enum.EasingStyle.Linear,
6 Enum.EasingDirection.In,
7 0,
8 false,
9 0
10 )
11 local door1Open = (CFrame = CFrame.new(8.5, -7.5, -20248.5))
12 lo#####o########## (CFrame = CFrame.new(8.5, 7.5, -20248.5))
13 local tween1open = TweenService:Create(door1,tweeningInformation,door1Open)
14 local tween1close = Tw#########################################################15
16 script.Parent.Detector1.Touched:Connect(function(hit)
17 tween1open:Play()
18 wait(5)
19 tween1close:Play()
20 end)
21 script.Parent.Detector2.Touched:Connect(function(hit)
22 tween1open:Play()
23 wait(5)
24 tween1close:Play()
25 end)
Ok so I took this idea from AlvinBLOX, and every time he uses that CFrame it somehow works. Though when I use the CFrame = CFrame (line 11), it shows me a red line for equal (=) and I cant seem to figure out why that's happening. The model is a solo door (union, anchored, 4x15x5, collided, surrounded by a wall). Please help me figure out why my door won't go below the baseplate.
PS: Dont mind the location Ik its weird but it's only because there was a water block that we couldn't delete... |