I am not good with remotes but this is what I have so far. So what I want is when the event is Fired then, this code happens on the Client (Is in LocalScript). Not working though.

(In the ServerScript I just have weldArms:FireClient()) LocalScript:

--//More code above
weldArms.OnClientEvent:connect(function()
	--//RightArm Handler
	local cloned_rArm = rArm:Clone()
	cloned_rArm.Parent = player.Character
	cloned_rArm.Anchored = false	
	
	local Weld = Instance.new('Weld', cloned_rArm)
	Weld.Part0 = cloned_rArm
	Weld.Part1 = player.Character:WaitForChild('Right Arm')
	Weld.C0 = cloned_rArm.CFrame:inverse() * player.Character:WaitForChild('Right Arm').CFrame * CFrame.Angles(0, math.pi/2, 0) + Vector3.new(-.72,0,0)
	
	--//LeftArm Handler
	local cloned_lArm = lArm:Clone()
	cloned_lArm.Parent = player.Character
	cloned_lArm.Anchored = false	
	
	local Weld = Instance.new('Weld', cloned_lArm)
	Weld.Part0 = cloned_lArm
	Weld.Part1 = player.Character:WaitForChild('Left Arm')
	Weld.C0 = cloned_lArm.CFrame:inverse() * player.Character:WaitForChild('Left Arm').CFrame * CFrame.Angles(0, math.pi/2, 0) + Vector3.new(-.72,0,0)
end)

1 comment

3

First argument of FireClient is the player you want to direct the event execution to. Use FireAllClients in the Server Script if you want to have the event execute for all players at once.