Help On Carrying Character Script Remote Event

I’ma just explain this quick & simple, I am trying to achieve of allowing a Player to click the Torso of a Charater ( Including Non Player Characters ) so that their humanoidRootPart is locked onto the Player;s arms that clicked them. I’ve look through devforums and youtube & been trying to solve this for about a hour now. Here are my Scripts

Local Script ( Inside StarterCharacterScripts )

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")

local RE = RemoteEvents.Get_Player
local Player = Players.LocalPlayer

local PlrMouse = Player:GetMouse()
local Target = PlrMouse.Target
local HighestAncestor = Target


Main Script ( Inside ServerScript Service )

GP.OnServerEvent:Connect(function(player, HighestAncestor)
	if HighestAncestor:FindFirstChild("Humanoid") then
		print("Character Detected")
		print("Non Character")

Whats going on is that I’m trying to print out if the character exists first by humanoid, i test the game, I click a characters torso to see if it can find a humanoid it prints “Non Character” it also says non character if i click baseplate but thats what its suppose to do. I need help on this.

Also Beware I edited and did soo many changes to the scripts of trying to fix this, they are not the first, sec, or even third versions


You can try CFraming the target player to the Left/Right Arm/Hand of the origin player (the user who grabbed the target) using Model:PivotTo( CFrame ). Then, add a WeldConstraint that connects the Arm and the HRP.

1 Like

wait, sorry, I misinterupted the post, the thing is If I click anything like the baseplate or a characters torso, it only prints “Non Character” on the main script I see if the mouse can detect the characters torso, but it dosnt work, it only prints that message out. after i can get a message of the torso getting detected by print then I can move on

1 Like

You are sending a Part instance, not a Model. Use:

local Character_Model = HighestAncestor:FindFirstChildOfClass("Model") -- Gets the model of the part.

And then look for the Humanoid.

1 Like

It still dosn’t work… I’ma just work on this later, I think I spent too much time working on 1 small script

1 Like