local door = script.Parent.MainDoor
local cone = script.Parent.Cone
local clicker = script.Parent.Button.E

local ts = game:GetService("TweenService")

local goal = Vector3.new(324.867, 26.776, -338.133)
local launchgoal = Vector3.new(316.249, -2275.023, -338.125)

local info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 0, false, 0)
local info2 = TweenInfo.new(50, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 0, false, 8)

local go = ts:Create(door, info, {Position = goal})
local launch = ts:Create(cone, info2, {position = launchgoal})

function onLaunch()
	clicker:Destroy()
	--script.Parent.Inside.Sounds.Alarm:Play()
	--wait(50.102)
	script.Parent.Inside.Sounds.S:Play()
	wait(7)
	go:Play()
	script.Parent.BoardingDock.Anchored = false
	wait(2)
	script.Parent.Inside.Sounds.RocketSound:Play()
	wait(2)
	launch:Play()
end

clicker.Triggered:Connect(onLaunch)

i wonder what's the problem, it doesn't say it has any problems, however it still doesn't work

5 comments

0

Is this a server or client script?

0

@Vong25 its an original script which parent is a model of an escape pod

0

No, but he's asking whether its a local, or server script

0

he said its an original script i believe he means server

0

oh, ok