I have a script which allows me to grab ragdolls, but i wanted to edit it and make it let me grab limb that im looking at
The main problem is that i cant use mouse.target, because mouse is already used in LocalScript
I dont have an idea how to detect a limb without mouse.target
I hope there is some way to do it with mouse.target or without it! If you know it, please help me
if Value == "Grab" then --checks if localscript sent us a fireserver
local region = Region3.new(V1-Vector3.new(5,5,5),V1+Vector3.new(5,5,5)) --here is the stuff i want to change
local RTable = workspace:FindPartsInRegion3(region,nil,20) --basically a range of region
for i,v in pairs(RTable) do
if v.Parent:FindFirstChild("Humanoid") and v.Parent ~= char then --detects if its a character with humanoid
enemychar = v --lets script understand that part that was found is a character's limb
if enemychar.Parent:FindFirstChild("Ragdoll") and char.CheckTool.Value == false then --checks if its a ragdoll (my ragdolls have a value in them) and if player thats trying to grab currently has no tools equipped
local Weld1 = Instance.new("AlignPosition") -- this line creates an alipos instance which is used to smoothly "WELD" ragdoll's grabbed limb to player's hands
Im currently using Region3, but its acting really weird