Universal Script 📌
6.1k Views
412 Executions

Loop tpua change ur name in script

Universal Script 📌
2 years 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

Loop tpua script (magnet)

View Raw
local Players = game:GetService("Players")
local SETTINGS = {
    ["PlayerNameToTeleportParts"] = "emetro_wet" -- Имя игрока для привязки частей
}

local sethidden = sethiddenproperty or set_hidden_property or set_hidden_prop
local frozenParts = {}
local Forces = {}

-- Функция для проверки подходящих частей
local function CheckPart(part, speaker)
    return part:IsA("BasePart") 
        and part.Anchored == false 
        and not part:IsDescendantOf(speaker.Character) 
        and not part.Name:match("Torso|Head|Right Arm|Left Arm|Right Leg|Left Leg|HumanoidRootPart")
end

-- Функция для установки частей, которые будут следовать за игроком
local function tpua(targetPlayerName, speaker)
    if sethidden then
        local targetPlayer = Players:FindFirstChild(targetPlayerName)
        if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("Head") then
            for _, part in pairs(workspace:GetDescendants()) do
                if CheckPart(part, speaker) then
                    -- Удаляем старые силы
                    for _, child in pairs(part:GetChildren()) do
                        if child:IsA("BodyPosition") or child:IsA("BodyGyro") then
                            child:Destroy()
                        end
                    end
                    -- Создаем новые силы
                    local ForceInstance = Instance.new("BodyPosition")
                    ForceInstance.Parent = part
                    ForceInstance.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
                    table.insert(Forces, ForceInstance)

                    if not table.find(frozenParts, part) then
                        table.insert(frozenParts, part)
                    end
                end


Comments

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

More universal scripts

See all
Universal Script 📌
28.3k
663.4k
Bumped 36 minutes ago
Script hub
13.5k
2.7k
Bumped 3 hours ago
Key System
Paid
Script hub
263.1k
88.1k
Bumped 4 hours ago
Key System
Universal Script 📌
2.4k
9.4k
Bumped 4 hours ago
Universal Script 📌
224
30
Approved 4 hours ago
Universal Script 📌
249
26
Approved 4 hours ago
Universal Script 📌
272
9
Approved 4 hours ago