Whats the best way to Tween GUI? I have tried tweening it but it doesnt really feel so good?
Idk whether I'm doing it wrong but it just doesnt feel like those Nice AAA games' UI.
local VlButton = script.Parent
local Uicorner = Instance.new("UICorner", VlButton)
local VlFrame = game.Players.LocalPlayer.PlayerGui.Voicelines.VLFrame
VlFrame.Visible = false
local framevisible = false
local ClickSound = Instance.new("Sound", VlButton)
ClickSound.SoundId = "rbxassetid://9120102442"
ClickSound.Volume = 0.5
local MouseEntersound = Instance.new("Sound", VlButton)
MouseEntersound.SoundId = "rbxassetid://9120102442"
MouseEntersound.Volume = 0.7
MouseEntersound.Looped = false
local Ts = game:GetService("TweenService")
VlButton.AnchorPoint = Vector2.new(0.07, 0.5)
local OriginalSize = VlButton.Size
local goal = {Size = UDim2.new(0.010, 215, 0.015, 52) }
local goal2 = {Size = OriginalSize}
VlButton.MouseEnter:Connect(function()
VlButton.BackgroundColor3 = Color3.fromRGB(247, 255, 94)
Ts:Create(VlButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), goal):Play()
MouseEntersound:Play()
VlButton.MouseLeave:Connect(function()
VlButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Ts:Create(VlButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), goal2):Play()
end)
end)
VlButton.Activated:Connect(function()
ClickSound:Play()
framevisible = not framevisible
VlFrame.Visible = framevisible
end)