Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local TextLabel = Instance.new("TextLabel")
- -- 효과음 준비
- local AppearSound = Instance.new("Sound")
- AppearSound.SoundId = "rbxassetid://1234567890" -- 로고 등장 시 소리 (자신의 소리 ID로 변경)
- AppearSound.Parent = game.Workspace
- local DisappearSound = Instance.new("Sound")
- DisappearSound.SoundId = "rbxassetid://9876543210" -- 로고 사라질 때 소리 (자신의 소리 ID로 변경)
- DisappearSound.Parent = game.Workspace
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- 로고 배경 (Frame)
- Frame.Parent = ScreenGui
- Frame.Size = UDim2.new(0.4, 0, 0.15, 0) -- 크기
- Frame.Position = UDim2.new(0.3, 0, 0.4, 0) -- 중앙 배치
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BackgroundTransparency = 1 -- 처음엔 안 보이게 설정
- -- 둥근 모서리 추가
- UICorner.CornerRadius = UDim.new(0.2, 0)
- UICorner.Parent = Frame
- -- 텍스트 (로고 제목)
- TextLabel.Parent = Frame
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Text = "힝 속았쥬?"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextScaled = true
- TextLabel.Font = Enum.Font.FredokaOne
- TextLabel.TextTransparency = 1 -- 처음엔 안 보이게 설정
- -- 무지개 색상 효과 (배경과 텍스트)
- local function rainbowEffect()
- local rainbowTween = Instance.new("TweenService")
- local rainbowTweenInfo = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true)
- -- 배경 색상 변화
- local rainbowBackground = TweenService:Create(Frame, rainbowTweenInfo, {
- BackgroundColor3 = Color3.fromHSV(tick() % 10 / 10, 1, 1)
- })
- -- 텍스트 색상 변화
- local rainbowText = TweenService:Create(TextLabel, rainbowTweenInfo, {
- TextColor3 = Color3.fromHSV(tick() % 10 / 10, 1, 1)
- })
- rainbowBackground:Play()
- rainbowText:Play()
- end
- -- 애니메이션을 위한 Tween 설정 (천천히 등장)
- local TweenService = game:GetService("TweenService")
- local TweenInfoAppear = TweenInfo.new(3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
- local TweenInfoDisappear = TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.In)
- local TweenAppear = TweenService:Create(Frame, TweenInfoAppear, {BackgroundTransparency = 0.2})
- local TweenDisappear = TweenService:Create(Frame, TweenInfoDisappear, {BackgroundTransparency = 1})
- local TextAppear = TweenService:Create(TextLabel, TweenInfoAppear, {TextTransparency = 0})
- local TextDisappear = TweenService:Create(TextLabel, TweenInfoDisappear, {TextTransparency = 1})
- -- 부드럽게 등장
- AppearSound:Play() -- 등장 효과음 재생
- TweenAppear:Play()
- TextAppear:Play()
- rainbowEffect() -- 무지개 색상 효과 시작
- wait(5) -- 5초 동안 유지
- -- 부드럽게 사라짐
- DisappearSound:Play() -- 사라짐 효과음 재생
- TweenDisappear:Play()
- TextDisappear:Play()
- wait(1)
- ScreenGui:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment