Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local Button = script.Parent
- local Frame = Button.Parent
- local goal = {}
- goal.Position = UDim2.new(0.5, 0, 0.5, 0)
- local TI = TweenInfo.new(
- 2,
- Enum.EasingStyle.Sine,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- local tween = TweenService:Create(Frame,TI,goal)
- Button.MouseButton1Click:Connect(function()
- tween:Play()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement