I'm making a slide door with TweenService but it didn't work and I couldn't find the error. Here's the code:

local Door = script.Parent local TweenService = game:GetServive("TweenService") local TweenStyle = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out,0,false,0)

local DoorOpen = {CFrame = CFrame.new(139.771, 71.004, 13.057)} local DoorClose = {CFrame = CFrame.new(139.771, 71.004, 17.057)}

local OpenTween = TweenService:Create(Door,TweenStyle,DoorOpen) local CloseTween = TweenService:Create(Door,TweenStyle,DoorClose)

click = script.Parent.click

debounce = false

click.MouseClick:Connect(function() if debounce == false then --open debounce = true OpenTween:Play() else CloseTween:Play() --close debounce = false

end

end)

2 comments

1

on the first line you spelt, "service" wrong

0

oh wow I spent 30 minutes searching and didn't even notice that. thank you so much