Universal Script 📌
157 Views
9 Executions

key gui execute action script

Universal Script 📌
Kyelisz
KyeliszPublished 10
7 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

key system

View Raw
-- This must be a LocalScript

local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- Create ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "KeySystemGUI"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = playerGui

-- Create Frame
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 300, 0, 200)
Frame.Position = UDim2.new(0.5, -150, 0.5, -100)
Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
Frame.Parent = ScreenGui

-- Label
local Label = Instance.new("TextLabel")
Label.Size = UDim2.new(1, 0, 0, 50)
Label.Position = UDim2.new(0, 0, 0, 0)
Label.Text = "Enter Key"
Label.TextColor3 = Color3.new(1, 1, 1)
Label.BackgroundTransparency = 1
Label.Parent = Frame

-- TextBox
local TextBox = Instance.new("TextBox")
TextBox.Size = UDim2.new(0.8, 0, 0, 40)
TextBox.Position = UDim2.new(0.1, 0, 0.4, 0)
TextBox.PlaceholderText = "Enter key here..."
TextBox.Text = ""
TextBox.ClearTextOnFocus = false
TextBox.Parent = Frame

-- Button
local Button = Instance.new("TextButton")
Button.Size = UDim2.new(0.8, 0, 0, 40)
Button.Position = UDim2.new(0.1, 0, 0.7, 0)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
5.6k
17.3k
Bumped 3 minutes ago
Universal Script 📌
69
6
Approved 2 hours ago
Universal Script 📌
333.4k
40.1k
Bumped 2 hours ago
Universal Script 📌
2.6k
13.1k
Bumped 2 hours ago
Key System