my script here is:
local debouce = false
local gui = game.ReplicatedStorage.EasyGUI
local frame = gui.Frame
local function onTouched(hit)
if not debouce then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
if player.PlayerGui:FindFirstChild("EasyGUI") == nil then
debounce = true
local clone = gui:Clone()
local gui2 = clone
local frame2 = gui2.Parent.Frame
clone.Parent = player.PlayerGui
frame2.Transparency = 1
wait(0.1)
frame2.Transparency = 0.9
wait(0.1)
frame2.Transparency = 0.8
wait(0.1)
frame2.Transparency = 0.7
wait(0.1)
frame2.Transparency = 0.6
wait(0.1)
frame2.Transparency = 0.5
wait(0.1)
frame2.Transparency = 0.4
wait(0.1)
frame2.Transparency = 0.3
wait(0.1)
frame2.Transparency = 0.2
wait(0.1)
frame2.Transparency = 0.1
wait(0.1)
frame2.Transparency = 0
wait(2)
frame2.Transparency = 0.1
wait(0.1)
frame2.Transparency = 0.2
wait(0.1)
frame2.Transparency = 0.3
wait(0.1)
frame2.Transparency = 0.4
wait(0.1)
frame2.Transparency = 0.5
wait(0.1)
frame2.Transparency = 0.6
wait(0.1)
frame2.Transparency = 0.7
wait(0.1)
frame2.Transparency = 0.8
wait(0.1)
frame2.Transparency = 0.9
wait(0.1)
frame2.Transparency = 1
wait(1.5)
gui2:Destroy()
debouce = false
end
end
end
end
script.Parent.Touched:Connect(onTouched)
thank you,
-Dexiber

1 comment
just to help you out, a for loop would keep you from doing all that list of transparency.