I made a script that welds players to another player, when a remoteEvent is called; but for some reason, the weld is not welding to the player. Here is my script

replicatedstorage = game:GetService("ReplicatedStorage")
RicoClass = replicatedstorage.RicoClass
tool = script.Parent.Parent
cooldown = false
Dash = RicoClass:FindFirstChild("Dash")
cloak = "off"

Dash.OnServerEvent:connect(function(player)
local hand = player.Character.RightLowerArm
---------------------------------------
-------------[Grab]--------------------
hand.Touched:connect(function(hit)
local opponent = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
local opponentT = hit.Parent:findFirstChild("UpperTorso") or hit.Parent.Parent:FindFirstChild("UpperTorso") 
	if opponent and opponent ~= player.Character:findFirstChild("Humanoid") then
local w = Instance.new("Weld", opponentT)
	w.Part0 = player.Character.RightLowerArm
	w.Part1 = opponentT
	w.C0 = CFrame.new(0,10,0)
	
end
end)
end)

2 comments

0

Local script pls

0

wut