
KeylessUniversal

-- Credits to aregdlemto(https://scriptblox.com/u/aregdlemto)
-- ver 2.1(gui)
local scale = 6
local Parts = 500
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local gui = Instance.new("ScreenGui")
gui.Name = "WeightControlGUI"
gui.Parent = player.PlayerGui
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0.15, 0, 0.15, 0)
frame.Position = UDim2.new(0.85, 0, 0.05, 0)
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
frame.BackgroundTransparency = 0.5
frame.BorderSizePixel = 0
frame.Parent = gui
local title = Instance.new("TextLabel")
title.Text = "WEIGHT CONTROL"
title.Size = UDim2.new(1, 0, 0.3, 0)
title.BackgroundTransparency = 1
title.TextColor3 = Color3.new(1, 1, 1)
title.Font = Enum.Font.SourceSans
title.Parent = frame
local scaleBox = Instance.new("TextBox")
scaleBox.Text = tostring(scale)
scaleBox.Size = UDim2.new(0.9, 0, 0.2, 0)
scaleBox.Position = UDim2.new(0.05, 0, 0.35, 0)
scaleBox.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
scaleBox.TextColor3 = Color3.new(1, 1, 1)
scaleBox.Parent = frame
local partsBox = Instance.new("TextBox")
partsBox.Text = tostring(Parts)
partsBox.Size = UDim2.new(0.9, 0, 0.2, 0)
partsBox.Position = UDim2.new(0.05, 0, 0.6, 0)
partsBox.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
partsBox.TextColor3 = Color3.new(1, 1, 1)
partsBox.Parent = frame
local function cleanParts()
for _, child in pairs(char:GetChildren()) do
if child:IsA("Part") and child.Name == "WeightPart" then
child:Destroy()
end
end
end
local function applyWeight()
cleanParts()
scale = tonumber(scaleBox.Text) or scale
Parts = tonumber(partsBox.Text) or Parts
for i = 1, Parts do
local part = Instance.new("Part", char)
part.Name = "WeightPart"
part.Size = Vector3.zero
local weld = Instance.new("Weld", part)
weld.Part1 = char.HumanoidRootPart
weld.Part0 = part
part.CanCollide = false
part.Size = Vector3.new(scale, scale, scale)
part.CustomPhysicalProperties = PhysicalProperties.new(100, 0, 0, 1, 10)
part.Transparency = 1
end
end
local applyBtn = Instance.new("TextButton")
applyBtn.Text = "APPLY"
applyBtn.Size = UDim2.new(0.9, 0, 0.2, 0)
applyBtn.Position = UDim2.new(0.05, 0, 0.85, 0)
applyBtn.BackgroundColor3 = Color3.fromRGB(0, 100, 0)
applyBtn.TextColor3 = Color3.new(1, 1, 1)
applyBtn.Parent = frame
applyBtn.MouseButton1Click:Connect(applyWeight)
applyWeight()
player.CharacterAdded:Connect(function(newChar)
char = newChar
wait(1)
applyWeight()
end)No comments yet for this script.



