Im trying to make a start button for my menu screen. I want the button to have a hover animation everytime the player hovers over it. For whatever reason when I test the game in roblox studio, the hover animation applies and everything works fine. When I publish it to roblox and join the game, everything works EXCEPT the hover animation. Ive tried almost everything I can think of and I cant seem to fix it. I genuinely have no clue why this isnt working but its annoying.
#Game working in studio but not in roblox
1 messages · Page 1 of 1 (latest)
99% chance this wont work but maybe change the one "findfirstchild" to a "waitforchild"
Yeah that didn’t work
can you check the logs in the actual game?
Wdym like version history?
No press F12 I think on PC
or F11
and did you use:
button.MouseEnter:Connect(function()
local hoverSize = UDim2.new(
originalSize.X.Scale * scaleMultiplier, originalSize.X.Offset,
originalSize.Y.Scale * scaleMultiplier, originalSize.Y.Offset
)
TweenService:Create(button, hoverTweenInfo, {Size = hoverSize}):Play()
end)
Instead of putting the MouseEnter:Connect inside a function, use it outside since you call it anyways
this way we can make sure its not just the client getting ready
?
** You are now Level 2! **
so basically you do connectHover()
could you try putting the contents outside of the connectHover and then adding "local button = startButton" at the top