#doesn't work

8 messages · Page 1 of 1 (latest)

echo kindle
#

Why does it only work with the Play button? ```sv
local TweenService = game:GetService("TweenService")

local Shadows = script.Parent.Shadows

local PlayButton = script.Parent.PlayButton

local PlayButtonShadow = Shadows.PlayButtonShadow

local MinSize = UDim2.new(0, 365,0, 71)

local MaxSize = PlayButton.Size

PlayButton.MouseEnter:Connect(function()
PlayButtonShadow:TweenSize(MaxSize, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2)
end)

PlayButton.MouseLeave:Connect(function()
PlayButtonShadow:TweenSize(MinSize, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2)
end)

--Options

local OptionsButton = script.Parent.OptionsButton

local OptionsButtonShadow = Shadows.OptionsButtonShadow

local MinSize = UDim2.new(0.359, 0,0.541, 0)

local MaxSize = OptionsButton.Size

OptionsButton.MouseEnter:Connect(function()
OptionsButtonShadow:TweenSize(MaxSize, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2)
end)

OptionsButton.MouseLeave:Connect(function()
OptionsButtonShadow:TweenSize(MinSize, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2)
end)

--Store

local StoreButton = script.Parent.StoreButton

local StoreButtonShadow = Shadows.StoreButtonShadow

local MinSize = UDim2.new(0.359, 0,0.412, 0)

local MaxSize = StoreButton.Size

StoreButton.MouseEnter:Connect(function()
StoreButtonShadow:TweenSize(MaxSize, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2)
end)

StoreButton.MouseLeave:Connect(function()
StoreButtonShadow:TweenSize(MinSize, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, .2)
end)```

rich moon
#

What actually is your goal?

echo kindle
#

my goal is that the options button and the store button shall do the same thing as when you hold your mouse over the play button.
As you can see in the video the "shadow" hides when you are holding your mouse over the play button and comes back when you are not doing it anymore
but that doesn't work for the other buttons

foggy oar
#

studio** You are now Level 1! **studio

jade shale
#

uh

#

i think i know

#

let me check omsething

rich moon
#

You really lost me at shadow tbh, might I ask why both options buttons are growing?