H FCpim SM
H FCpim SM
wait()
game.StarterGui:SetCore("SendNotification", {
Title = "Unanchored To Player"; -- the title (ofc)
Text = "GUI Loaded - F to Hide/Show"; -- what the text says (ofc)
Duration = 5; -- how long the notification should in secounds
})
function To(position)
local Chr = Plr.Character
local sound2 = Instance.new("Sound")
sound2.SoundId = "rbxassetid://3398620867"
sound2.Parent = game:GetService("SoundService")
if Chr ~= nil then
for index, part in pairs(game:GetDescendants()) do
if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored == false
and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and part.Name
== "Torso" == false and part.Name == "Head" == false and part.Name == "Right Arm"
== false and part.Name == "Left Arm" == false and part.Name == "Right Leg" == false
and part.Name == "Left Leg" == false and part.Name == "HumanoidRootPart" == false
then --// Checks Part Properties
part.CFrame = CFrame.new(position) --TP Part To Mouse
sound2:Play()
Imput.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 and
Imput:IsKeyDown(Enum.KeyCode.LeftControl) then
To(Mouse.Hit.p)
end
end)
end
-- ui functions
fade = function(obj, len, props)
ts:Create(obj, TweenInfo.new(len, Enum.EasingStyle.Sine), props):Play()
end
-- shorthand variables
local u2, c3 = UDim2.new, Color3.fromRGB
local u2f, c3w = u2(1, 0, 1, 0), c3(255, 255, 255)
-- ui init
local g = Instance.new("ScreenGui", game.CoreGui)
local f = Instance.new("Frame", g)
local t = Instance.new("TextLabel", f)
local c = Instance.new("ScrollingFrame", f)
-- core ui styling
local padding = Instance.new("UIPadding", f)
local maxsize = Instance.new("UISizeConstraint", f)
local textsize = Instance.new("UITextSizeConstraint", t)
local listcons = Instance.new("UIListLayout", c)
padding.PaddingBottom = UDim.new(0, 8)
padding.PaddingLeft = UDim.new(0, 15)
padding.PaddingRight = UDim.new(0, 15)
padding.PaddingTop = UDim.new(0, 0)
-- ui instance properties
g.Name = "unanchor_ui"
g.ResetOnSpawn = false
f.Name = "main"
t.Name = "header"
c.Name = "playerlist"
c.Position = u2(0, 0, 0.1, 0)
c.Size = u2(1, 0, 0.45, 0)
c.BackgroundTransparency = 1
c.BorderSizePixel = 0
c.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
c.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
c.ScrollingDirection = Enum.ScrollingDirection.Y
c.ScrollBarThickness = 5
c.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
-- settings ui
local sh = Instance.new("TextLabel", f)
sh.Name = "settings_header"
sh.Size = u2(1, 0, 0.1, 0)
sh.Position = u2(0, 0, 0.55, 0)
sh.BackgroundTransparency = 1
sh.BorderSizePixel = 0
sh.ZIndex = 3
sh.TextColor3 = c3w
sh.Font = Enum.Font.GothamBold
sh.TextScaled = true
sh.TextXAlignment = Enum.TextXAlignment.Center
sh.Text = "SETTINGS"
createSetting = function(name)
local setting = Instance.new("Frame", items)
setting.Size = u2(1, -5, 0, 27)
setting.BackgroundColor3 = c3()
setting.BackgroundTransparency = 0.5
setting.BorderSizePixel = 0
stbt.MouseEnter:connect(function()
fade(setting, 0.25, {BackgroundTransparency = 0.8})
end)
stbt.MouseLeave:connect(function()
fade(setting, 0.25, {BackgroundTransparency = 0.5})
end)
return stbt
end
spam = false
local spamblocks = createSetting("Spam Parts")
spamblocks.MouseButton1Down:connect(function()
spam = not spam
if spam then
fade(spamblocks.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
sound:Play()
-- code to loop here
else
fade(spamblocks.Parent.label, 0.25, {TextColor3 = c3w})
sound:Play()
-- code to break the loop here
end
end)
createSetting("Break Spam").MouseButton1Down:connect(function()
for index, part in pairs(game:GetDescendants()) do
if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored ==
false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and
part.Name == "Torso" == false and part.Name == "Head" == false and part.Name ==
"Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right
Leg" == false and part.Name == "Left Leg" == false and part.Name ==
"HumanoidRootPart" == false then --// Checks Part Properties
sound:Play()
if part:FindFirstChild("BodyForce") then
part.BodyForce:Destroy()
end
if part:FindFirstChild("BodyGyro") then
part.BodyGyro:Destroy()
end
if part:FindFirstChild("BodyPosition") then
part.BodyPosition:Destroy()
end
if part:FindFirstChild("BodyThrust") then
part.BodyThrust:Destroy()
end
end
end
end)
freeze = false
local freezeblocks = createSetting("Freeze Parts")
freezeblocks.MouseButton1Down:connect(function()
freeze = not freeze
if freeze then
fade(freezeblocks.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
sound:Play()
print "UTP: Freezed Parts"
for _,part in pairs(workspace:GetChildren()) do
if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored ==
false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and
part.Name == "Torso" == false and part.Name == "Head" == false and part.Name ==
"Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right
Leg" == false and part.Name == "Left Leg" == false and part.Name ==
"HumanoidRootPart" == false then --// Checks Part Properties
local bodyPos = Instance.new("BodyPosition")
bodyPos.Position = part.Position
bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyPos.P = 1e6
bodyPos.Parent = part
end
end
else
fade(freezeblocks.Parent.label, 0.25, {TextColor3 = c3w})
sound:Play()
print "UTP: Thawed Parts"
for _,part in pairs(workspace:GetChildren()) do
if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored ==
false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and
part.Name == "Torso" == false and part.Name == "Head" == false and part.Name ==
"Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right
Leg" == false and part.Name == "Left Leg" == false and part.Name ==
"HumanoidRootPart" == false then --// Checks Part Properties
if part:FindFirstChild("BodyPosition") then
part.BodyPosition:Destroy()
end
end
-- code to break the loop here
end
end
end)
createSetting("Drop Accessories").MouseButton1Down:connect(function()
sound:Play()
for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if v:IsA("Accessory") then
v.Handle.Parent = workspace
v.Parent = workspace
end
end
end)
createSetting("Reset").MouseButton1Down:connect(function()
sound:Play()
game.Players.LocalPlayer.Character:BreakJoints()
end)
highlight = false
local highlights = createSetting("Highlight Unanchored")
highlights.MouseButton1Down:connect(function()
highlight = not highlight
if highlight then
fade(highlights.Parent.label, 0.25, {TextColor3 = c3(52, 189, 98)})
sound:Play()
print "UTP: Unanchored Highlighted"
for _,part in pairs(workspace:GetDescendants()) do
if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored ==
false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and
part.Name == "Torso" == false and part.Name == "Head" == false and part.Name ==
"Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right
Leg" == false and part.Name == "Left Leg" == false and part.Name ==
"HumanoidRootPart" == false then --// Checks Part Properties
local selectionBox = Instance.new("SelectionBox")
selectionBox.Adornee = part
selectionBox.Color3 = Color3.new(1,0,0)
selectionBox.Parent = part
end
end
else
fade(highlights.Parent.label, 0.25, {TextColor3 = c3w})
sound:Play()
print "UTP: Unanchored Un-Highlighted"
for _,part in pairs(workspace:GetDescendants()) do
if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored ==
false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and
part.Name == "Torso" == false and part.Name == "Head" == false and part.Name ==
"Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right
Leg" == false and part.Name == "Left Leg" == false and part.Name ==
"HumanoidRootPart" == false then --// Checks Part Properties
if part:FindFirstChild("SelectionBox") then
part.SelectionBox:Destroy()
end
end
end
end
end)
workspace.DescendantAdded:Connect(function(part)
if highlight then
if part:IsA("BasePart" or "UnionOperation" or "Model") and part.Anchored ==
false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false and
part.Name == "Torso" == false and part.Name == "Head" == false and part.Name ==
"Right Arm" == false and part.Name == "Left Arm" == false and part.Name == "Right
Leg" == false and part.Name == "Left Leg" == false and part.Name ==
"HumanoidRootPart" == false then --// Checks Part Properties
local selectionBox = Instance.new("SelectionBox")
selectionBox.Adornee = part
selectionBox.Color3 = Color3.new(1,0,0)
selectionBox.Parent = part
end
end
end)
end
end
print ("Checked all players, found", g ,"using Unanchored To Player")
end)
end)
entry.button.MouseEnter:connect(function()
fade(entry, 0.25, {BackgroundTransparency = 0.8})
end)
entry.button.MouseLeave:connect(function()
fade(entry, 0.25, {BackgroundTransparency = 0.5})
end)
end
deleteEntry = function(name)
for _,v in pairs(c:GetChildren()) do
if v.Name == name then
v:Destroy()
end
end
end
listcons:GetPropertyChangedSignal("AbsoluteContentSize"):connect(function()
c.CanvasSize = u2(0, 0, 0, listcons.AbsoluteContentSize.Y)
end)
itemll:GetPropertyChangedSignal("AbsoluteContentSize"):connect(function()
items.CanvasSize = u2(0, 0, 0, itemll.AbsoluteContentSize.Y)
end)
uis.InputBegan:connect(function(input, gpe)
if not gpe then
if input.KeyCode == toggle_key then
g.Enabled = not g.Enabled
end
end
end)
f.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = f.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
f.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
uis.InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)
game.Players.PlayerAdded:connect(function(plr)
createEntry(plr.Name, plr.UserId)
end)
game.Players.PlayerRemoving:connect(function(plr)
deleteEntry(plr.Name)
end)
else
print "================ALREADY LOADED================"
game.StarterGui:SetCore("SendNotification", {
Title = "Already Loaded"; -- the title (ofc)
Text = "GUI Already Loaded"; -- what the text says (ofc)
Duration = 5; -- how long the notification should in secounds
})
end