Universal Script 📌
203 Views
613 Executions

Attach players

Universal Script 📌
Josepho20
Josepho20First script
4 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

Attach to nearest players

View Raw
-- Create ScreenGui
local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local ToggleButton = Instance.new("TextButton")
local DistanceTextBox = Instance.new("TextBox")
local DestroyButton = Instance.new("TextButton")
local HideShowButton = Instance.new("TextButton")

-- Rainbow Border Frame (The Glow Outline)
local BorderFrame = Instance.new("Frame")
BorderFrame.Name = "BorderFrame"
BorderFrame.Parent = ScreenGui
BorderFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
BorderFrame.Position = UDim2.new(0.5, -112, 0.5, -107)
BorderFrame.Size = UDim2.new(0, 224, 0, 214)
BorderFrame.BorderSizePixel = 0
BorderFrame.Active = true

-- Properties for ScreenGui
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

-- Nest MainFrame inside the BorderFrame
MainFrame.Name = "MainFrame"
MainFrame.Parent = BorderFrame
MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
MainFrame.Position = UDim2.new(0, 2, 0, 2)
MainFrame.Size = UDim2.new(0, 220, 0, 210)
MainFrame.BorderSizePixel = 0

-- UI Corner Radii
local function addCorners(instance, radius)
    local corner = Instance.new("UICorner")
    corner.CornerRadius = UDim.new(0, radius)
    corner.Parent = instance
end

addCorners(BorderFrame, 10)


Comments

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

More universal scripts

See all
Script hub
47.4k
220.0k
Bumped 5 minutes ago

Script hub

Sp3arParvus

Universal Script 📌
35
0
Approved 52 minutes ago
Universal Script 📌
16.1k
103.2k
Bumped 2 hours ago
Key System
Script hub
119.9k
201.4k
Bumped 7 hours ago
Key System
Universal Script 📌
2.7M
2.6M
Bumped 7 hours ago