Afternoon Fellow scripters - hope your having a lovely day! I was writing a piece of code for a door and i do not understand Unable to cast to dictonary. - Can someone go though it for me
;goku :D
local door = game.Workspace.Wawawasputin
local part = game.Workspace.CAta
local TweenSevers = game:GetService("TweenService")
local tweenionfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local tweenposopen = {CFrame.new(3592.667, 3876.391, -2757.274)}
local tweenposclose = {CFrame.new(3603.981, 3876.391, -2768.587)}
local tweenopen = TweenSevers:Create(tweenionfo,tweenposopen,door)
local tweenclose = TweenSevers.Create(tweenionfo,tweenposclose,door)
part.Touched:Connect(function()
tweenopen:Play()
wait(2)
tweenclose:Play()
end)

2 comments
I c why it didn't work, I edited my code
i tried rewriting it and it still doesnt work - nvm