Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- if you're here , feel free to grab the key from the bottom , you could've just done the system that would've helped me out but i
- -- guess you don't support begginer creators
- local TweenService = game:GetService("TweenService")
- local Lighting = game:GetService("Lighting")
- local TeleportService = game:GetService("TeleportService")
- local player = game.Players.LocalPlayer
- local gui = Instance.new("ScreenGui")
- gui.Name = "KeySystemGui"
- gui.Parent = player:WaitForChild("PlayerGui")
- -- Create Blur Effect for the Environment
- local blurEffect = Instance.new("BlurEffect")
- blurEffect.Size = 10 -- Initial blur intensity
- blurEffect.Parent = Lighting
- -- Create Sparkling Particle Effect
- local sparkle = Instance.new("ParticleEmitter")
- sparkle.Texture = "rbxassetid://152293501" -- Sparkle texture
- sparkle.Size = NumberSequence.new(1, 3)
- sparkle.Rate = 50 -- Amount of sparkles
- sparkle.Lifetime = NumberRange.new(2, 4)
- sparkle.Parent = game.Workspace.Terrain -- Attaches to the world
- -- Create main frame (Centered on all devices)
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0.35, 0, 0.3, 0) -- Clean size
- frame.AnchorPoint = Vector2.new(0.5, 0.5) -- Centers properly
- frame.Position = UDim2.new(0.5, 0, -0.5, 0) -- Start hidden above
- frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) -- Black
- frame.BorderSizePixel = 2
- frame.BorderColor3 = Color3.fromRGB(255, 255, 255) -- White outline
- frame.Active = true -- Enables dragging
- frame.Draggable = true -- Allow UI to be moved
- frame.Parent = gui
- -- Add a UI Corner for rounded edges
- local uiCorner = Instance.new("UICorner")
- uiCorner.CornerRadius = UDim.new(0, 10)
- uiCorner.Parent = frame
- -- Create title label
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Text = "Untitled's Key System"
- titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
- titleLabel.BackgroundTransparency = 1
- titleLabel.TextScaled = true
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
- titleLabel.Font = Enum.Font.GothamBold
- titleLabel.Parent = frame
- -- Create TextBox for input
- local keyInput = Instance.new("TextBox")
- keyInput.PlaceholderText = "Enter key here..."
- keyInput.Size = UDim2.new(0.9, 0, 0.2, 0)
- keyInput.Position = UDim2.new(0.05, 0, 0.3, 0)
- keyInput.TextScaled = true
- keyInput.BackgroundColor3 = Color3.fromRGB(40, 40, 40) -- Dark Gray
- keyInput.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
- keyInput.Font = Enum.Font.Gotham
- keyInput.Parent = frame
- -- Create "Get Key" button
- local getKeyButton = Instance.new("TextButton")
- getKeyButton.Text = "Get Key"
- getKeyButton.Size = UDim2.new(0.45, 0, 0.2, 0)
- getKeyButton.Position = UDim2.new(0.05, 0, 0.55, 0)
- getKeyButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60) -- Darker gray
- getKeyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- getKeyButton.Font = Enum.Font.GothamBold
- getKeyButton.Parent = frame
- -- Create "Check Key" button
- local checkKeyButton = Instance.new("TextButton")
- checkKeyButton.Text = "Check Key"
- checkKeyButton.Size = UDim2.new(0.45, 0, 0.2, 0)
- checkKeyButton.Position = UDim2.new(0.5, 0, 0.55, 0)
- checkKeyButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60) -- Darker gray
- checkKeyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- checkKeyButton.Font = Enum.Font.GothamBold
- checkKeyButton.Parent = frame
- local correctKey = "Dyanosaur"
- local keyLink = "https://work.ink/1Zqy/ewf5oxtb" -- Updated link
- -- Create sounds for correct/wrong key
- local correctSound = Instance.new("Sound")
- correctSound.SoundId = "rbxassetid://124793974135748"
- correctSound.Parent = frame
- local wrongSound = Instance.new("Sound")
- wrongSound.SoundId = "rbxassetid://14428739841"
- wrongSound.Parent = frame
- -- Function to slide down the frame smoothly
- local function slideDown()
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
- local tween = TweenService:Create(frame, tweenInfo, {Position = UDim2.new(0.5, 0, 0.5, 0)}) -- Moves to center
- tween:Play()
- end
- -- Execute animation (UI slides down)
- slideDown()
- -- Function to copy the key link to clipboard
- getKeyButton.MouseButton1Click:Connect(function()
- setclipboard(keyLink) -- Copies the updated link to clipboard
- getKeyButton.Text = "Key Link Copied!"
- end)
- -- Function to check the key, execute script, play sounds, and remove effects
- checkKeyButton.MouseButton1Click:Connect(function()
- local userKey = keyInput.Text
- if userKey == "." then
- blurEffect:Destroy() -- Remove blur effect
- sparkle:Destroy() -- Remove sparkle effect
- gui:Destroy() -- Unload the GUI
- elseif userKey == correctKey then
- correctSound:Play() -- Play correct sound
- checkKeyButton.Text = "Success!"
- checkKeyButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0) -- Green
- wait(1)
- blurEffect:Destroy() -- Remove blur effect
- sparkle:Destroy() -- Remove sparkle effect
- gui:Destroy()
- loadstring(game:HttpGet('https://pastebin.com/raw/u2RUMrwt'))() -- Execute script
- else
- wrongSound:Play() -- Play wrong key sound
- checkKeyButton.Text = "Invalid! Rejoining..."
- checkKeyButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Red
- wait(2)
- TeleportService:Teleport(game.PlaceId, player) -- Rejoins the game
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement