Hello! I am trying to script a script that makes a frame (variable mainframe) change it's position via tweening when a button (variable play) is clicked.
Here is my code:
game.Lighting.Blur = 9
script.Parent.Parent.Sound:Play()
local mainframe = script.Parent.Parent.mainframe
local tweenService = game:GetService('TweenService')
mainframe.Position = {0,0,0,0}
script.Parent.play.MouseButton1Click:Connect(function()
mainframe:TweenPosition(UDim2.new(0,0,-1,0))
end)
Any help would be appreciated.. Thanks!
