Tool isnt rotated the right way

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    i want the boxing gloves to be the right way

  2. What is the issue?


  3. What solutions have you tried so far?
    havent found 1 yet but it must be to do with the rotation in the script

local equipEvent  = game.ReplicatedStorage:WaitForChild("BoxingGloves")

equipEvent.OnServerEvent:Connect(function(player, tool)
	if tool:IsDescendantOf(game.Workspace) then
		local rbg = tool.RightBoxingGlove
		local lbg = tool.LeftBoxingGlove
		local Char = player.Character

		local rweld = Instance.new("Motor6D", tool)
		rweld.Part0 = Char.RightHand
		rweld.Part1 = rbg
		rweld.C0 = CFrame.Angles(0, 160, 0)

		local lweld = Instance.new("Motor6D", tool)
		lweld.Part0 = Char.LeftHand
		lweld.Part1 = lbg
		lweld.C1 = CFrame.Angles(0, 160, 0)
	end
end)

You need to adjust the values of C0 and C1 of both Motor6Ds, without knowing the particulars of the boxing glove model I can’t tell you exactly what they should be but with a bit of experimentation you should be able to figure out what CFrames work.

Also, CFrame.Angles() uses radians not degrees, so instead of CFrame.Angles(0, 160, 0) it would be CFrame.Angles(0, math.rad(160), 0) or CFrame.Angles(0, 2.79253, 0)

Can you try something from this category of
WELD.C0 = CFRAME.New (0, 0, 1) * Cframe.angles (0, Math.rad (180), 0)

i manage to find a solution thank u both for the help

local equipEvent  = game.ReplicatedStorage:WaitForChild("BoxingGloves")

equipEvent.OnServerEvent:Connect(function(player, tool)
	if tool:IsDescendantOf(game.Workspace) then
		local rbg = tool:WaitForChild("RightBoxingGlove")
		local lbg = tool:WaitForChild("LeftBoxingGlove")
		local Char = player.Character or player.CharacterAdded:Wait()

		local rweld = Instance.new("Motor6D")
		rweld.Name = "RightGloveWeld"
		rweld.Part0 = Char:WaitForChild("RightHand")
		rweld.Part1 = rbg
		rweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(180), 90, 0)
		rweld.Parent = tool

		local lweld = Instance.new("Motor6D")
		lweld.Name = "LeftGloveWeld"
		lweld.Part0 = Char:WaitForChild("LeftHand")
		lweld.Part1 = lbg
		lweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(180), -90, 0)
		lweld.Parent = tool
	end
end)

You can use this plugin to easily manipulate tool orientation. I got it when it only costed 25 robux, but it now costs $4.99, however, it is extremely worth it.

Link: https://create.roblox.com/store/asset/174577307/Tool-Grip-Editor

If it is indeed a solution, please mark your reply as a solution so this post isn’t open forever.

1 Like