SkeletalScripts

Credit Effect

Jun 12th, 2020
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. -- put this in credits as a localscript, and make sure the names are the same >,<
  2. script.Parent.MouseButton1Down:Connect(function()
  3.     script.Parent.Drop:TweenSizeAndPosition(UDim2.new(0, 200,0, 40),UDim2.new(0, 0,-0.8, 0),"Out","Linear",0.15,false,nil)
  4. end)
  5. script.Parent.MouseButton1Up:Connect(function()
  6.     script.Parent.Drop:TweenSizeAndPosition(UDim2.new(0, 200,0, 0),UDim2.new(0, 0,0, 0),"In","Linear",0.15,false,nil)
  7. end)
  8. script.Parent.MouseEnter:Connect(function()
  9.     game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {BackgroundTransparency = 0.8}):Play()
  10. end)
  11. script.Parent.MouseLeave:Connect(function()
  12.     game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment