It doesn’t seem to be working but I’ve got a question
- I have the code attaching the motor6d in a function in a local script, the function is called whenever a number key is pressed. Would this be the problem?
local function Attach(ConnectDB)
local ToolM6D = workspace.Motor6D -- Find the motor6D created by server script
ToolM6D.Parent = ViewModel.UpperTorso -- Parent it to viewmodel torso
local Tool = workspace.CurrentCamera:WaitForChild("ViewModel"):FindFirstChildWhichIsA("Model")
if ConnectDB then
ToolM6D.Part0 = workspace.CurrentCamera:WaitForChild("ViewModel").UpperTorso
ToolM6D.Part1 = Tool.BodyAttach
end
if not ConnectM6D then
ToolM6D.Part1 = nil
end
end