SkeletalScripts

Hover effect

Jun 12th, 2020
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. -- put this inside the button as a localscript
  2. -- also change the colors to whatever you chose.. these are my colors
  3. script.Parent.MouseEnter:Connect(function()
  4.     game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(43, 43, 43)}):Play()
  5. end)
  6. script.Parent.MouseLeave:Connect(function()
  7.     game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}):Play()
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment