Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to use CFrame without teleporting ?

I'm making a sword (like the roblox's one)

I tried to change the Orientation of the whole sword so i used CFrame

It works fine but it teleport the player and the sword :?

game.Players.LocalPlayer.Character:FindFirstChild("Sword").Blade.CFrame = CFrame.fromOrientation(0,0,0)

2 answers

Moving a part by changing its CFrame property without affecting its orientation is easily done with

part.CFrame = (part.CFrame - part.CFrame.p) + newPosition

However, seeing how you're trying to manipulate a tool, I would suggest you look into the Grip property, as it sounds like you want to change the way the character holds onto the tool.

This discussion is preserved as it was. New answers, comments, and votes are closed.