How Do I Make This Hat Rotate?

Situation:


Script:

local UIS = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character

UIS.InputBegan:Connect(function(input, isTyping) -- MASK
	if isTyping then
		return
	elseif input.KeyCode == Enum.KeyCode.K then
		print("hey")

	end		
end)

UIS.InputBegan:Connect(function(input, isTyping) -- HOOD
	if isTyping then
		return
	elseif input.KeyCode == Enum.KeyCode.H then
		local clonedhood = game.ReplicatedStorage.Hood:Clone()
		clonedhood.Parent = player.Character
		clonedhood.Handle.AccessoryWeld.Part1 = char.Head
	end		
end)
1 Like

Change the accessory’s handle rotation y axis by 90, might work but there is probably a better way to do this.

Change the C0 of the clonedhood weld

clonedhood.Handle.AccessoryWeld.C0 = CFrame.Angles(0, math.pi/2, 0)