Close Script:
local Service = game:GetService("TweenService")
local Gate = script.Parent.Parent.Gate
local Info = TweenInfo.new(2)
script.Parent.ClickDetector.MouseClick:Connect(function()
script.Parent.CanCollide = true
local Change = {Position = Vector3.new(-29, 6.5, 45.5)}
local Tween = Service:Create(Gate, Info, Change)
Tween:Play()
end)
Open Script:
local Service = game:GetService("TweenService")
local Gate = script.Parent.Parent.Gate
local Info = TweenInfo.new(2)
script.Parent.ClickDetector.MouseClick:Connect(function()
script.Parent.CanCollide = false
local Change = {Position = Vector3.new(-51.4, 6.5, 45.5)}
local Tween = Service:Create(Gate, Info, Change)
Tween:Play()
end)
Follow @BlockStudio2
If This Was Helpful Then Please Subscribe For More