Universal Script 📌
4.1k Views
2.0k 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
ReaIorgaming7 months ago

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

1
Purple_kai's profile picture
Purple_kai2 months ago

@ReaIorgaming how do you know?

1

More universal scripts

See all
Script hub
425.5k
815.6k
Bumped 34 minutes ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 71 Supported Games + OP!

Script hub
3.0M
387.8k
Bumped 34 minutes ago
Key System

Script hub

Hall of Fame #8

Verified script badgeOverflow #1 SAE, MM2 & More

Universal Script 📌
51
1
Approved 37 minutes ago
Universal Script 📌
162.3k
51.2k
Bumped 1 hour ago