Need help with a GUI script again

Right, the problem is that it won’t tween out but it would tween in. Sorry, I’m not the best with scripting.

game.ReplicatedStorage.Slock.OnClientEvent:Connect(function(plr)
	script.Parent.TextLabel.Text = 'Server locked by '..plr.Name..', please contact staff on our commuincations server if you disconect.'
	script.Parent:TweenPosition(UDim2.new(0, 290,0, 16),'Out','Quint',2)
	wait(3)
	script.Parent:TweenPosition(UDim2.new(0, 290,-0.6, 16)'Out','Quint',2)
end)

There an , missing in the TweenPosition.

game.ReplicatedStorage.Slock.OnClientEvent:Connect(function(plr)
	script.Parent.TextLabel.Text = 'Server locked by '..plr.Name..', please contact staff on our commuincations server if you disconect.'
	script.Parent:TweenPosition(UDim2.new(0, 290,0, 16),'Out','Quint',2)
	wait(3)
	script.Parent:TweenPosition(UDim2.new(0, 290,-0.6, 16),'Out','Quint',2)
end)
1 Like

Thanks a bunch for that, as you may know I’m no the best.