Ulxqra
(Ulxqra)
September 5, 2020, 4:13am
1
This is a script when you hover it makes it bigger. Its not working:
The sound and it prints works.
local sound = game.ReplicatedStorage.OtherSounds.MouseEnter_Leave
script.Parent.MouseEnter:Connect(function()
sound:Play()
print("MouseEntered")
script.Parent:TweenSize(UDim2.new(0, 382, 0, 121))
end)
script.Parent.MouseLeave:Connect(function()
sound:Play()
print("MouseLeft")
end)
edit: I know its the tweenSize line because without it everything works fine.
The printing works AND there are no errors at all
2 Likes
Ulxqra
(Ulxqra)
September 5, 2020, 4:36am
2
All help greatly appreciated!!!
You need to provide the rest of the arguments of the TweenSize function.
Ulxqra
(Ulxqra)
September 5, 2020, 4:41am
4
So do I need to do all of them?
Ulxqra
(Ulxqra)
September 5, 2020, 4:42am
5
Shall this work?
object:TweenSize(UDim2.new(0, 382, 0, 121, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5))
Ulxqra
(Ulxqra)
September 5, 2020, 4:46am
6
didnt work for some reason…
Ulxqra
(Ulxqra)
September 5, 2020, 4:50am
7
I added the arguments but its not working
You put all the arguments inside the UDim2
1 Like
Ulxqra
(Ulxqra)
September 5, 2020, 5:06am
9
Why is this- No, thats not right, I do position tweening and you-
What he means by that is that your Udim2.Values should be inside a bracket, and every other arguments outside.
royaltoe
(royaltoe)
September 5, 2020, 5:27am
11
the reason the tween isn’t working is because your button is the same size as the size you’re trying to tween. try chaining it to something slightly bigger.
2 Likes
mineman_28
(mineman_28)
September 5, 2020, 5:28am
12
Yeah, like this
object:TweenSize(Udim2.new(0,0,0,0),”In”,”Quint”,1,true)
1 Like
Only for the second time and above.
1 Like