local START = UDim2.new(0.05,0,1,0)
local END = UDim2.new(1,0,1,0)
function tweenBegin()
local frame = script.Parent
frame.Size = START
frame:TweenSize(
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
5,
true
)
end
function tweenEnd()
local frame = script.Parent
frame.Size = END
frame:TweenSize(
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
5,
true
)
end
script.Parent.Parent.MouseEnter:Connect(tweenBegin)
script.Parent.Parent.MouseLeave:Connect(tweenEnd)
local START = UDim2.new(0.05,0,1,0)
local END = UDim2.new(1,0,1,0)
function tweenBegin()
local frame = script.Parent
frame.Size = START
frame:TweenSize(
START,
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
5,
true
)
end
function tweenEnd()
local frame = script.Parent
frame.Size = END
frame:TweenSize(
END,
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
5,
true
)
end
script.Parent.Parent.MouseEnter:Connect(tweenBegin)
script.Parent.Parent.MouseLeave:Connect(tweenEnd)
local START = UDim2.new(0.05,0,1,0)
local END = UDim2.new(1,0,1,0)
function tweenBegin()
local frame = script.Parent
frame:TweenSize(
START,
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
5,
true
)
end
function tweenEnd()
local frame = script.Parent
frame:TweenSize(
END,
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
5,
true
)
end
script.Parent.Parent.MouseEnter:Connect(tweenBegin)
script.Parent.Parent.MouseLeave:Connect(tweenEnd)
game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui'):SetTopbarTransparency(0)
local START = UDim2.new(0.05,0,1,0)
local END = UDim2.new(1,0,1,0)
function tweenBegin()
local frame = script.Parent
frame.BackgroundTransparency = 0.5
frame:TweenSize(
END,
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
.5,
true
)
end
function tweenEnd()
local frame = script.Parent
frame:TweenSize(
START,
Enum.EasingDirection.In,
Enum.EasingStyle.Linear,
.5,
true
)
wait(2)
frame.BackgroundTransparency = 0
end
script.Parent.Parent.MouseEnter:Connect(tweenBegin)
script.Parent.Parent.MouseLeave:Connect(tweenEnd)```
Yeah I did, the top, line 1. But it don't work ( the topbar transparency ).