Universal Script 📌
4.5k Views
2.7k Executions

Grab player

Universal Script 📌
ramadanopeyemi2boys
ramadanopeyemi2boys100K executions
8 months 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

Grade l

View Raw
local tool = script.Parent
local allowedUser = "YOUR_USERNAME_HERE" -- change to your Roblox username
local grabDistance = 15

local grabbedPlayer = nil
local weld = nil

tool.Activated:Connect(function()
	local character = tool.Parent
	local player = game.Players:GetPlayerFromCharacter(character)
	
	if not player or player.Name ~= allowedUser then
		return
	end
	
	local root = character:FindFirstChild("HumanoidRootPart")
	if not root then return end
	
	-- Release if already grabbing
	if grabbedPlayer then
		if weld then weld:Destroy() end
		grabbedPlayer = nil
		return
	end
	
	-- Find nearby player
	for _, target in pairs(game.Players:GetPlayers()) do
		if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
			local targetRoot = target.Character.HumanoidRootPart
			if (targetRoot.Position - root.Position).Magnitude <= grabDistance then
				
				weld = Instance.new("WeldConstraint")
				weld.Part0 = root
				weld.Part1 = targetRoot
				weld.Parent = root
				
				grabbedPlayer = target
				break
			end
		end


Comments

2
Log in to join the conversation. Login
ReaIorgaming's profile picture
ReaIorgaming8 months ago

Hey chat gpt can you make me a script to grab players?

1
Purple_kai's profile picture
Purple_kai3 months ago

@ReaIorgaming how do you know?

1

More universal scripts

See all
Script hub
3.0M
1.1M
Bumped 3 hours ago
Key System

Script hub

#6 today

CanHub V2 200 GAMES KEYLESS

Script hub
160
7
22 hours ago
Script hub
277.5k
165.4k
Bumped 3 hours ago
Key System
Universal Script 📌
6.7k
17.0k
Bumped 4 hours ago
Script hub
1.7M
431.9k
Bumped 5 hours ago
Key System

Script hub

#7 today

Verified script badgeAxonic Hub | 50+ Games Supported

Universal Script 📌
2.5k
7.1k
Bumped 10 hours ago
Script hub
5.9k
86.5k
Bumped 10 hours ago

Script hub

SAGAZx Hub

Script hub
77.7k
274.5k
Bumped 11 hours ago
Key System