Professional Documents
Culture Documents
Proiect Fizica
Proiect Fizica
-- Check
if not Library.flags.Enabled then
return
end
-- Get Goal
local Goal = GetGoal()
-- Check Closest
if Closest == false then
StarterGui:SetCore(
"SendNotification",
{
Title = "Ezpi's Trainer",
Text = "No draggable found. :(",
Duration = 10
}
)
end
-- Loop
local OldCFrame = Player.Character.HumanoidRootPart.CFrame
while Closest and Goal and Library.flags.Enabled and wait() do
-- Use Closest Draggable
fireproximityprompt(Closest, 1)
-- Pull to end
if Goal then
for _, A_1 in next, Draggables:GetChildren() do
firetouchinterest(Goal, A_1, 0)
firetouchinterest(Goal, A_1, 1)
end
end
-- Stay put
Player.Character.HumanoidRootPart.CFrame = OldCFrame
end