
203 Views
613 Executions
Attach players
Universal Script 📌
Josepho20First script
4 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Attach to nearest players
-- 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
0Log in to join the conversation. Login
No comments yet. Be the first!







