shockaloc
(shockaloc)
#1
script.Parent.MouseEnter:Connect(function()
local info = TweenInfo.new(10)
local tween = game:GetService(“TweenService”):Create(script.Parent,info,
{BackgroundColor3=Color3.fromRGB(141, 141, 141)})
tween:Play()
script.Parent:TweenPosition(UDim2.new(-0.017, 0,0.755, 0), “Out”, 10, “Linear”)
end)
script.Parent.MouseLeave:Connect(function()
local info = TweenInfo.new(10)
local tween = game:GetService("TweenService"):Create(script.Parent,info,
{BackgroundColor3=Color3.fromRGB(0, 0, 0)})
tween:Play()
script.Parent:TweenPosition(UDim2.new(-0.44, 0,0.771, 0), "In", 10, "Linear")
end)
my tween runs to fast idk what to do
You haven’t configured the TweenPosition correctly:
script.Parent.MouseEnter:Connect(function()
local info = TweenInfo.new(10)
local tween = game:GetService("TweenService"):Create(script.Parent,info,
{BackgroundColor3=Color3.fromRGB(141, 141, 141)})
tween:Play()
script.Parent:TweenPosition(UDim2.new(-0.017, 0,0.755, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 10)
end)
script.Parent.MouseLeave:Connect(function()
local info = TweenInfo.new(10)
local tween = game:GetService("TweenService"):Create(script.Parent,info,
{BackgroundColor3=Color3.fromRGB(0, 0, 0)})
tween:Play()
script.Parent:TweenPosition(UDim2.new(-0.44, 0,0.771, 0), Enum.EasingDirection.In, Enum.EasingStyle.Linear, 10)
end)
shockaloc
(shockaloc)
#3
im new to scripting, thank you 
Do not forget to mark his reply as a solution. Happy coding!
system
(system)
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.