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
The model i’ve been trying to get from the torso.