Rotating part on player rotates them (Pretty sure)

This is what is happening (Video given)

This is the part of the script

game.ReplicatedStorage.ParryWeld.OnClientEvent:Connect(function(Player, Char)
    local StarModel = game.Lighting.ParryHead
    local StarClone = StarModel:Clone()
    local FoundPart 
    local angle = math.deg(1)
    local RS = game:GetService("RunService")
    local Rotation
    if not Char.Head:FindFirstChild("ParryHead") then
        local w = Instance.new("Motor6D", StarClone)
        StarClone.Parent = Char.Head
        StarClone.Holder.CFrame = Char.Head.CFrame * CFrame.new(0,0,0)
        FoundPart = Char.Head:FindFirstChild("ParryHead")
        w.Part0 = StarClone.Holder
        w.Part1 = Char.Head
        Rotation = RS.Heartbeat:Connect(function(DeltaTime)
            if FoundPart then
                StarClone.Holder.CFrame = StarClone.Holder.CFrame * CFrame.Angles(0,angle * DeltaTime,0)
            end
        end)
        wait(3)
        Rotation:Disconnect()
        FoundPart:Destroy()
    end
end)

Im using a FireAllClients from a server script if you were wondering that part, but dont think it matters

try w.C0 = w.C0 * CFrame.Angles(0,angle * DeltaTime,0) in the heartbeat loop instead

2 Likes

it works thank you, (Doing this for character limit)