Universal Script 📌
6.2k Views
631 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)

Updates

  1. Script edited: Create script

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
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.7k
Bumped 4 hours ago
Script hub
49.8k
12.4k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 10 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 10 hours ago
Key System
Paid
Universal Script 📌
743
221
Approved 16 hours ago
Universal Script 📌
647
2.7k
Approved 16 hours ago