Can't get a model from the characters torso

I keep getting a error for trying to get a model from the characters torso in a server script.

For some reason, it is not letting me get the model with a server script, but it will let me get it from a local script. The error says that " GreatSword is not a valid member of Part “Workspace.k6hon.Torso” " even though when I check to see if its there, it is.

The model is in the characters torso, the second the character spawns. So, it isn’t something where its checking before it exists there. I’ve tried just doing a model with nothing in it and it still would give that error. And just in case I’ve tried wait for child and its infinite.

serverscript

local rs = game:GetService("ReplicatedStorage")
local connectEvent = rs.Events.Greatsword.ConnectM6D

connectEvent.OnServerEvent:Connect(function(player, location)
	print(player.Character.Torso.GreatSword)
end)

localscript

local player = game.Players.LocalPlayer

print(player.Character.Torso.GreatSword)

The server script gives a error while the local works


The GreatSword being in the torso when the error happens
image

The model i’ve been trying to get from the torso.

If you clone the model into the torso from a local script, that change won’t replicate to the server. Make sure you’re doing the initial clone from the server.

2 Likes

Yeah, you will need to create the model inside the Torso of the character in a server script, that way it’ll replicate to the server and reflect the same to each client.