How to make a Tween Gui (With Blur Effect)
Автор: Joysome26
Загружено: 2020-09-08
Просмотров: 2160
Описание:
Hi guys i tried to make this video as a fast as i could so i had the scripts copied down here they are(if y'all have questions comment them) -----
CLICK SOUND SCRIPT
-Made by Joysome26-
local Button = script.Parent
function onClick()
script.Parent.ClickSound:Play()
end
Button.MouseButton1Click:connect(onClick)
-ClickSound-
Rotate script
-- Dont touch
while wait() do
script.Parent.Rotation = script.Parent.Rotation + 5
if script.Parent.Rotation == 360 then
script.Parent.Rotation = 0
end
end
OPEN AND BLUR BUTTON
-Button script by Joysome26-
local blur = Instance.new("BlurEffect",game.Workspace.CurrentCamera)
blur.Size = 0
local frame = script.Parent.Parent:WaitForChild("Frame")
local open = script.Parent.Parent.Open
script.Parent.MouseButton1Click:connect(function()
if open.Value == false then
frame:TweenPosition(UDim2.new(0.5,-380,0.4,-182),"Out","Quint",1,true)
for i = 0,10,1 do
wait()
blur.Size = 15
end
open.Value = true
elseif open.Value == true then
frame:TweenPosition(UDim2.new(0.5,-380,-0.4,-182),"Out","Quint",1,true)
for i = 10,0,-1 do
wait()
blur.Size = 0
end
open.Value = false
end
end)
CLOSE BUTTON
-Close button by Joysome26-
local frame = script.Parent.Parent
local open = frame.Parent.Open
local blur = game.Workspace.CurrentCamera.Blur
script.Parent.MouseButton1Click:connect(function()
frame:TweenPosition(UDim2.new(0.5,-380,-0.4,-182),"Out","Quint",1,true)
for i = 10,0,-1 do
wait()
blur.Size = 15
end
open.Value = false
end)
Sound id and position
5041171667 click sound
{0.5, -380},{-0.4, -182} position
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: