Why do i spawn at the sky while trying to weld a katana to my character

image

What are the possible cause of this? it only makes me spawn at the sky when i weld the katana to the character.

Apply the CFrame change before you create the weld. If you don’t, it’ll create all sorts of problems, especially a visible distance between the hand and katana.

i have tried that aswell but it still spawns me at the sky.

Ah, I forgot. You have to have Part0 and C0 as the RightHand, and Part1 and C1 as the katana, since Part0 represents the base part. Should work then.

i have tried that and still does not work.

When you run the game, do you start in the sky or does it fling you up into the sky? If you start in the sky, the katana is most likely anchored or at least welded to something else.

i start in the sky …

Check if the katana is anchored. Maybe not the cause of it, but it doesn’t hurt to check. Small things like that can cause problems like this.

it is not anchored…

When you set the Weld’s C0 and C1 properties, are you making sure you’re inputting a CFrame value?
e.g.
Weld.C0 = char:WaitForChild("RightHand").CFrame

what do you mean exactly? …

You have to set the weld’s offset points (being C0 and C1). These values have to be in CFrame. As you’ve done in your script earlier, you got the CFrame of the RightHand part to replace the Katana’s CFrame. So, like in that instance, you set the Weld’s C0 or C1 property as CFrame. It should look like this:

Katana.CFrame = char:WaitForChild("RightHand").CFrame
local Weld = Instance.new("Weld")
Weld.C0 = char:WaitForChild("RightHand").CFrame
Weld.C1 = Katana.CFrame
Weld.Part0 = char:WaitForChild("RightHand")
Weld.Part1 = Katana
Weld.Parent = char:WaitForChild("RightHand")
Katana.Parent = workspace -- don't use game.Workspace as it's inefficient, especially when you rename it for whatever reason

yeahhh… for some reason it still spawns me on the sky

Nvm ,The Problem was the Katana.

You should post the solution here (if there is one) so if other developers need support with something like this, they can find it by searching.

Pretty sure in the case of welding you’re meant to parent the model you intend to attach to yourself first before adding in the welds. There wouldn’t be any need to set the Katana CFrame as that’s handled automatically.